
Lv.1
宁可三日不吃饭,不可一日无代码。
签名:代码岛建筑&代码编写ing......
在 【Box3干货教程贴】自动感应门怎么做 中回复
顶
顶顶
顶顶顶
顶顶顶顶
顶顶顶顶顶
顶顶顶顶
顶顶顶
顶顶
顶
顶顶
顶顶顶
顶顶顶顶
顶顶顶顶顶
顶顶顶顶
顶顶顶
顶顶
顶
顶顶
顶顶顶
顶顶顶顶
顶顶顶顶顶
顶顶顶顶
顶顶顶
顶顶
顶
2020-08-13T20:47:08 点赞:0
在 [box3]技巧分享:如何替换世界中指定的方块? 中回复
顶
顶顶
顶顶顶
顶顶顶顶
顶顶顶顶顶
顶顶顶顶顶顶
顶顶顶顶顶顶顶
顶顶顶顶顶顶顶顶
顶顶顶顶顶顶顶顶顶
顶顶顶顶顶顶顶顶
顶顶顶顶顶顶顶
顶顶顶顶顶顶
顶顶顶顶顶
顶顶顶顶
顶顶顶
顶顶
顶
2020-08-22T08:39:03 点赞:0
在 [Box3视频教程] 如何实现在游玩模式"放置"方块 中回复
怎么打开玩家的3D光标?是这样吗?
world.onPress(({ button,raycast: { voxelIndex,normal}})=>{;//监听按下预越事什
if (button == Box3ButtonType.ACTIONO){//如果是actione,即电脑端的左键
voxels.setVoxel(voxelIndex.x,voxelIndex.y,voxelIndex.z,0);//破坏点击到的方块
}else if (button == Box3ButtonType.ACTION1){//如果是action1,对应电脑端右键
let v = voxelIndex.add(normal);//用点击到的方块坐标加上法向量,得到邻边方块位置
voxels.setVoxel(v.x,v.y,v.z, 'white');//设置邻边方块为白色,当然还可以自定义
}
});
world.onPlayerJoin(({entity})=>{//监听玩家进入事件
entity.player.enable3Dcursor =true;//打开玩家的3D光标
});2020-08-22T10:19:16 点赞:0
在 https://shequ.codemao.cn/community/347293 中回复
https://shequ.codemao.cn/community/347293
2020-10-24T10:16:50 点赞:0
在 【岛3圣诞创作节】获奖名单公布!最大赢家居然是……进来领奖励! 中回复
顶
顶顶
顶顶顶
顶顶顶顶
顶顶顶顶顶
顶顶顶顶顶顶
顶顶顶顶顶
顶顶顶顶
顶顶顶
顶顶
顶
2020-12-24T21:22:04 点赞:0