用户:BCM墨水瓶查看:6 回复:3 评论:6 创建时间:2020-06-24T19:38:32
如何让传送门只传送指定人物
world.onEntityContact(({entity,other})=>{
if(entity.isPlayer&&!other.isPlayer){
if(other.hasTag('传送门')){
if(entity.player.name==='指定的人'){
entity.position.set(0,0,0);//传送位置
}
}
}
})点赞0
评论