#How to check whether the player is in a certain coordinate space
5 messages · Page 1 of 1 (latest)
Once your question has been answered, please close this post with </resolve:1050379261372006400> command!
e.player.x and the same for Y and Z
specifically,
onEvent('player.tick', event=>{
const p = event.player
if(p.x>0 && p.x <100 && p.y > 40 && p.y < 100 && p.z >-100 & p.z <0){
//do stuff here
player.tell("you are in the splash zone")
}
})
Thank you!