Lv.1
本人长时间待在神岛,不过有时间也会看看猫站的情况
在 【紧急求助】有哪位大佬帮忙看一下哪里出了问题 中回复
world.createEntity({ mesh:'mesh/树1.vb', position :[3,13.28,7] , meshScale:[1/16,1/16,1/16] })
2022-01-30T19:21:28 点赞:0
在 box3如何实现模型交互的效果(回赞.收藏] 中回复
//先在场景中放置一个名称为NPC的实体。 constnpc=world.querySelector('#NPC'); npc.enableInteract=true;//允许进行互动 npc.interactRadius=16;//实体的互动范围 npc.interactHint=npc.id;//互动提示框显示实体的名称 npc.interactColor=newBox3RGBColor(1,1,1);//互动提示的文字颜色 //玩家与实体进行交互时触发 npc.onInteract(async({entity})=>{ constresult=awaitentity.player.dialog({ type:Box3DialogType.TEXT,//对话框的类型,TEXT是文本框。 title:npc.id,//对话框标题为NPC名字,表示正在说话的是NPC lookEye:entity,//将相机放在玩家位置 lookTarget:npc,//相机镜头对准NPC content:`你好,${entity.player.name},很高兴认识你。`, }); }); https://docs.box3.codemao.cn/box3dialogcall.html
2022-02-08T09:49:56 点赞:0
在 【代码岛3内测第15弹!重磅登场!】对话框!地图模板!七大更新 中回复
imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%82%B9%E8%B5%9E.gif"alt="emotion_编程猫_点赞"imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%82%B9%E8%B5%9E.gif"alt="emotion_编程猫_点赞"
2022-02-22T10:08:10 点赞:0
在 哈哈农场农产品价格(实用帖) 中回复
imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%82%B9%E8%B5%9E.gif"alt="emotion_编程猫_点赞"
2022-02-24T10:26:13 点赞:0
在 【岛三工具】齐活!懒癌福音之SQL生成器!只用写一次字段就可以完成SQL的工具! 中回复
imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E5%8A%A0%E6%B2%B9.gif"alt="emotion_编程猫_加油"
2022-02-27T10:07:06 点赞:0
在 虚空跑酷的弹跳如何解决 中回复
for (const e of world.querySelectorAll('*')) {//下面跳入虚空的要结合存档的代码来写
if (e.id.startsWith('出生点')) {
e.collides = true
e.fixed = true
e.onEntityContact(({ other }) => {
if (other.isPlayer) {
if (e.position !== other.player.spawnPoint) {
other.player.directMessage('到达新的重生点')
other.player.spawnPoint = e.position
}
}
})
}
}
world.onPlayerJoin(async ({ entity }) => {
while (true) {
await sleep(喵);
if (entity.position.y <= -5) {//‘-5’是跳入虚空的高度,可以改
entity.position.copy(entity.player.spawnPoint)//回到存档点
entity.position.y += 4
}
}
})2022-08-31T14:27:29 点赞:1
在 怎么隐身啊 中回复
world.onPlayerJoin(({ entity }) => {//玩家进入地图后
entity.player.invisible = true;// 让玩家隐形
})
entity.player.invisible = true;//这个就是加在你写的代码中就可以了
2022-10-06T15:57:58 点赞:0