
Lv.1
人生親像桃花枝 有時開花
签名:可以叫我铃竹
在 解答“@天才喵@” 我做了一个跑酷地图,但不知道怎么弄碰到岩浆就喵,谁能帮帮我,呜呜 中回复
这个应该更好:
for (const e of world.querySelectorAll('*')) {
if (e.id.startsWith('存档点')) {
e.onEntityContact(({ other }) => {
if (other.isPlayer) {
other.player.directMessage('已存档')
other.player.spawnPoint = e.position
}
})
}
}
world.onPlayerJoin(({ entity }) => {
world.onVoxelContact(({ voxel, entity }) => {
if (voxel == voxels.id('lava01')) {
entity.position.copy(entity.player.spawnPoint)
entity.position.y += 4
})
})
}) 2021-06-19T09:16:52 点赞:0