用户:
༺༽༾ཊ源代码(养佬中)ཏ༿༼༻查看:8 回复:11 评论:8 创建时间:2020-11-27T15:43:45
如题如题,告诉我并成功的可以有50源码币奖励
迷失冷光
//方法一
world.onPlayerJoin(({entity})=>{
world.onTick(()=>{
if(entity.position.y < -10){
//打入虚空了,你想作甚?
}
})
})
//方法二
const area = world.addTrigger({
selector: 'player',
bounds: {
lo: [-50,-50,-50],
hi: [305,-10,305],
},
})
area.onEnter(({entity})=>{
//进来了
})
点赞0
评论