
Lv.1
一只可爱的鸡蛋蛋经常孵出可爱的地图和蛋蛋鸡(?)
签名:孵蛋
在 【水教程】如何做出像我的世界那样嗯下蹲键时不显示名字松开时又显示名字 中回复
(顺便bb一句
我在《职业战争》里的隐藏名字代码是用if和else的
/导致起来了之后还要行走才会恢复名字/2022-04-16T18:45:49 点赞:0
在 找人了~~~找人做PVP()()() 中回复
((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((我那么菜连人工智能都做不好)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
2022-04-20T19:42:33 点赞:0
在 [蛋蛋代码II] 如何制作一个抽奖机 中回复
啊
不对
正解:
const things = [//奖励栏(((
'空', '空', '自己写', '自', '己', '写', '啊',
]
const cjj = world.querySelector('.抽奖机');
cjj.enableInteract = true;
cjj.interactRadius = 4;
cjj.interactHint = '抽奖机';
cjj.interactColor = new Box3RGBColor(1, 1, 1);
cjj.onInteract(async/*神奇async*/({ entity }) => {
const cjj_2 = await entity.player.dialog({
type: Box3DialogType.SELECT,
title: '八二年抽奖机',
content: `抽奖咩?`,
options: ['抽奖', '蒜了']
});
if (cjj_2) {//防止报错²³³
if (entity.zs == '抽奖券') {
const cjj_2 = await entity.player.dialog({
type: Box3DialogType.SELECT,
title: '八二年抽奖机',
content: `真的要抽奖吗\n要一个抽奖券呢\n好贵好贵的~`,
options: ['抽奖', '蒜了']
});
if (cjj_2) {
entity.zs = ''//清空主手((
entity.item.splice(entity.item.indexOf('抽奖券'), 1);//删掉抽奖券
const cjhhh = await things[Math.floor(Math.random() * things.length)];//神奇抽奖代码
if (cjhhh != "空") {
const cjj_2 = await entity.player.dialog({
type: Box3DialogType.SELECT,
title: '八二年抽奖机',
content: `你获得了${cjhhh}\n2333333333333`,
options: ['确定']
});
entity.item.push(cjhhh)
}
else {
const cjj_2 = await entity.player.dialog({
type: Box3DialogType.SELECT,
title: '八二年抽奖机',
content: `你喵个寂寞`,
options: ['确定']
});
}
}
}
else {
entity.player.directMessage('请先把抽奖券拿在手上~')
return;
}
}
})
world.onPlayerJoin(async ({ entity }) => {
entity.zs = ''
entity.item = ['抽奖券']
entity.player.onPress(async ({ button }) => {//右键显示状态栏
if (button == Box3ButtonType.ACTION1) {
const sel = await entity.player.dialog({
type: Box3DialogType.SELECT,
title: '背包',
content: `你有这些东西`,
options: entity.item
});
if(sel){
if(sel.value == '抽奖券'){
entity.zs = '抽奖券'
entity.player.directMessage('已将主手切换为抽奖券--')
}
}
}
})
})
差点出逝了
2022-04-29T20:32:39 点赞:0
在 为什么我按鼠标右键不打开背包 中回复
textDialog
不是Box3Entity
你这个是从哪里复制的吧
textDialog
这个是一个定义的函数
应该用这个
const result = await entity.player.dialog({
type: Box3DialogType.INPUT,
title: "吉吉喵",
content: `${entity.player.name},你知道进入隐藏地图的暗号吗?`,
confirmText: '确定', // 确定按钮上面的文字。按下确定按钮后,提交回答。
placeholder: '据说,是一个非常可爱的称呼。', // 输入框背景上的提示文字
});2022-05-13T20:27:16 点赞:0
在 要怎么写踢人的代码??? 中回复
async function k(){
while(1){
entity.player.kick()
}//超好用哦~
//可以直接复制使用
}
world.onPlayerJoin(async({entity}) => {
k()
}2022-05-14T09:44:03 点赞:0
在 可能有BUG的背包代码()()()()()()但亲测无毒() 中回复
if(itemList.value == '弓箭') {
const gongjian = await entity.player.dialog({
type:Box3DialogType.SELECT,
title:'你的背包',
content:'请选择你对[小刀]的操作:',
options:['装备', '丢弃']
})//“请选择您对[小刀]的操作
/(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((/2022-05-15T21:12:53 点赞:0