
Lv.1
人间自古谁无死,早死晚死都得死
签名:点赞34/100 收藏3/20
在 每日一个建图小技巧:设置进阶版复活点! 中回复
for (const e of world.querySelectorAll('*')) {
if (e.id.startsWith('存档点')) {
e.collides = true
e.fixed = true
e.onEntityContact(({ other }) => {
if (other.isPlayer) {
if (e.position !== other.player.spawnPoint) {
other.player.spawnPoint = e.position
}
}
})
}
}
world.onPlayerJoin(({ entity }) => {
entity.onFluidEnter(({voxel}) => {
if (voxel === voxels.id('lava02')) {
entity.position.copy(entity.player.spawnPoint)
entity.position.y += 15
}
})
})2022-01-03T12:19:30 点赞:0