用户:
燃烧吧丨小宇宙查看:2 回复:3 评论:2 创建时间:2022-12-26T18:54:22
告诉岛三里跑酷遇到岩浆返回重生点的代码,谢谢~!
名探酱world.onVoxelContact(({ entity, voxel }) => {
if (!entity.isPlayer) return;
const voxelName = voxels.name(voxel); // 将方块id转换名称
if (voxelName == '方块名称') {
entity.player.forceRespawn()
}
})
点赞1
评论
world.onVoxelContact(({ entity, voxel }) => {
if (!entity.isPlayer) return;
const voxelName = voxels.name(voxel); // 将方块id转换名称
if (voxelName == '方块名称') {
entity.player.kick();
}
})
点赞1
评论