用户:
木久言Z退了查看:1 回复:1 评论:1 创建时间:2023-06-24T20:04:09
存档代码:
for (const e of world.querySelectorAll('*')) {
if (e.id.startsWith('存档点')) {
e.meshScale = e.meshScale.scale(1)
e.onEntityContact(({ other }) => {
if (other.isPlayer) {
if (e.position !== other.player.spawnPoint) {
other.player.directMessage('存档成功!')
other.player.spawnPoint = e.position
}
}
})
}
}点赞0
评论