用户:
可爱的电电猴查看:3 回复:2 评论:3 创建时间:2022-12-10T16:35:19
求助!!!!急需跑酷存档点代码以及碰到方块white_grass就重生回存档点的代码!!!
名探酱world.onVoxelContact(({entity,voxel})=>{ if(!entity.isPlayer)return;//如果碰到方块的不是玩家,则跳过 constvoxelName=voxels.name(voxel);//将方块id转换名称 if(voxelName==='white_grass'){ entity.player.position.copy(entity.player.spawnPoint) entity.position.y+=2 } }); 跑酷存档点代码自己去找吧,或者给个链接
点赞1
评论