猫史档案馆


岛3代码求助

用户:可爱的电电猴可爱的电电猴查看:1 回复:2 评论:1 创建时间:2022-12-11T15:13:45


求碰到方块 ice 1秒方块就会碎,过2秒又会恢复的代码!emotion_编程猫_溜了溜了emotion_编程猫_溜了溜了emotion_编程猫_溜了溜了


回复

上一页1 页 / 共 1下一页
名探酱名探酱

world.onVoxelContact(async({entity,voxel,x,y,z})=>{if(voxel!=voxels.id('ice')||!entity.isPlayer)return
voxels.setVoxel(x,y,z,0);await sleep(2000);voxels.setVoxel(x,y,z,'ice')})

点赞0


评论


名探酱名探酱

world.onVoxelContact(async({entity,voxel,x,y,z})=>{
if(voxel!=voxels.id('ice')||!entity.isPlayer)return
voxels.setVoxel(x,y,z,0);
await sleep(2000);
voxels.setVoxel(x,y,z,'ice')})

点赞0


评论