Lv.1
在 【年度创作者】10月份年度创作者名单,以及创作节的新皮肤发放~ 中回复
吉吉喵大大,太感谢您了,终于领到了,您就是我的再生父母啊,呜呜呜呜呜呜imgsrc="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/9d/sada_thumb.gif"alt="emotion_泪"
2022-11-07T18:15:39 点赞:0
在 太喵了简直天理难安 中回复
(n=>world.querySelectorAll('player').filter(o=>o.player.name==n)[0].player.kick())('踢出你要踢出玩家的名字')
把这段代码放进控制台,他就进不来了,哈哈![]()
2022-11-12T10:54:27 点赞:2
在 找点代码师 中回复
用不到的,我给你代码
密码门
const npc = world.querySelector('#阿塔');
npc.enableInteract = true; // 允许进行互动
npc.interactRadius = 16; // 实体的互动范围
npc.interactHint = npc.id; // 互动提示框显示实体的名称
npc.interactColor = new Box3RGBColor(1,1,1); // 互动提示的文字颜色
npc.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.add(entity.player.facingDirection.scale(5)),
lookTarget: entity,
});
// 如果玩家点击了屏幕其他区域,取消了对话框。
if(!result || result === null){
entity.player.directMessage('无视了我');
return;
}
const surprise = ['密码']
if(surprise.includes(result)){
entity.player.directMessage(`回答正确` );
entity.position.set(133,10,183)
}
});
console.clear()
找钥匙
const npc6c = world.querySelector('#钥匙门'); npc6c.enableInteract = true; // 允许进行互动 npc6c.interactRadius = 2; // 实体的互动范围 npc6c.interactHint = npc6c.id; // 互动提示框显示实体的名称 npc6c.interactColor = new Box3RGBColor(1,0,1); // 互动提示的文字颜色 npc6c.onInteract(async({entity}) => { if(entity.mys == 1){ const result = await entity.player.dialog({ type: Box3DialogType.TEXT, // 对话框的类型,TEXT是文本框。 title: npc6c.id, // 对话框标题为NPC名字,表示正在说话的是NPC lookEye: entity, // 将相机放在玩家位置 lookTarget: npc6c, // 相机镜头对准NPC content: `你打开了通往出口的门`, }); entity.position.set(5,10,17) }else{ const result = await entity.player.dialog({ type: Box3DialogType.TEXT, // 对话框的类型,TEXT是文本框。 title: npc6.id, // 对话框标题为NPC名字,表示正在说话的是NPC lookEye: entity, // 将相机放在玩家位置 lookTarget: npc5, // 相机镜头对准NPC content: `你身上没有钥匙`, }); } }); 寻宝 const npc6 = world.querySelector('#宝箱'); npc6.enableInteract = true; // 允许进行互动 npc6.interactRadius = 2; // 实体的互动范围 npc6.interactHint = npc6.id; // 互动提示框显示实体的名称 npc6.interactColor = new Box3RGBColor(1,0,1); // 互动提示的文字颜色 npc6.onInteract(async({entity}) => { if(entity.ys == 1){ const result = await entity.player.dialog({ type: Box3DialogType.TEXT, // 对话框的类型,TEXT是文本框。 title: npc6.id, // 对话框标题为NPC名字,表示正在说话的是NPC lookEye: entity, // 将相机放在玩家位置 lookTarget: npc5, // 相机镜头对准NPC content: `你打开了宝箱,获得了‘门钥匙’`, }); entity.mys = 1 }else{ const result = await entity.player.dialog({ type: Box3DialogType.TEXT, // 对话框的类型,TEXT是文本框。 title: npc6.id, // 对话框标题为NPC名字,表示正在说话的是NPC lookEye: entity, // 将相机放在玩家位置 lookTarget: npc5, // 相机镜头对准NPC content: `你身上没有钥匙`, }); } });2022-12-03T14:18:44 点赞:0
在 【代码岛3.0】超大地图测试!!夜游黄鹤楼,你来吗? 中回复
那时的皮肤,现在连游客都有,没什么稀罕的,但是对于上岛时间长的岛民来说,他是回忆,更是永远回不去的回忆,黄鹤楼和一起跑酷被官方复原了,围城被岛民复原了,但是巨人屋和天空岛没了,呜呜呜呜,回不去了
这是岛三内测版的海报,呜呜呜呜,我又哭了
2022-12-03T14:42:26 点赞:1