用户:
彩虹字转换器查看:4 回复:3 评论:4 创建时间:2022-06-10T09:18:03
我连个跑酷都不会做😭😭😭😭😭imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E4%BC%A4%E5%BF%83.gif"alt="emotion_编程猫_伤心"
原坏三老旅长我告诉你一个方便一点的
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
评论