猫史档案馆


求代码急需:蜜码机的代码怎么写?(跪下)

用户:SHEL深空无尽SHEL深空无尽查看:141 回复:8 评论:5 创建时间:2021-04-11T15:36:10


求代码急需:蜜码机的代码怎么写?(跪下)

emotion_思考


回复

上一页第 1 页 / 共 1 页下一页
cool-creepercool-creeper

给我连接,我帮你写

点赞0


评论

e...

在这里写行吗,然后我复制

谢了


SHEL深空无尽SHEL深空无尽

说话呀?皮球?要不要我去拿针?

点赞0


评论


SHEL深空无尽SHEL深空无尽

。。。

点赞0


评论


迷失冷光迷失冷光

蜜码

点赞0


评论

写错了


SKQASKQA

蜜码

点赞0


评论

写错了


1086爱编程1086爱编程

我会

点赞0


评论


1086爱编程1086爱编程

等着

点赞0


评论


1086爱编程1086爱编程

const w = world.querySelector('#密码门');
w.enableInteract = true; // 允许进行互动
w.interactRadius = 2;   // 实体的互动范围
w.interactHint = w.id;; // 互动提示框显示实体的名称
w.interactColor = new Box3RGBColor(1,0,1);  // 互动提示的文字颜色

// 玩家与实体进行交互时触发
w.onInteract(async({entity}) => {
    const result = await entity.player.dialog({
        type: Box3DialogType.INPUT,
        title: "密码门",
        titleTextColor: new Box3RGBAColor(1, 1, 1, 1),
        titleBackgroundColor: new Box3RGBAColor(0, 0, 0, 0.98),
        content: `${entity.player.name},你知道进入密码门的暗号吗?`,
        confirmText: '确定', // 确定按钮上面的文字。按下确定按钮后,提交回答。
        placeholder: '……', // 输入框背景上的提示文字。
        contentTextColor:  new Box3RGBAColor(1, 1, 1, 1),
        contentBackgroundColor: new Box3RGBAColor(0, 0, 0, 0.98),
        lookEye: entity.position.a喵(entity.player.facingDirection.scale(5)),
        lookTarget: entity,
    });
    const surprise = ['密码','密码' ]

    if(surprise.includes(result)){
        entity.position.set(119,9,100)//坐标
    }
});

点赞0


评论