用户:
企鹅vItY查看:1 回复:1 评论:1 创建时间:2022-06-05T23:01:04
话不多说直接上代码(自行修改掉到水里代码)
world.onPlayerJoin(({ entity }) => {
entity.onFluidEnter(() => {//当玩家掉到水里
entity.position.copy(entity.player.spawnPoint)
entity.position.y += 4
entity.player.directMessage('你 喵 了')
})
})