hello i need help with this. my plan is when i do right click with a eye of ender it's scan all player around him of 3 block and tp all this player to the player who have made the right click.
But the player can be more than 3 block above and under
i got this for now but idk how to continue.
But the player can be more than 3 block above and under
i got this for now but idk how to continue.
Code:
on right click with eye of ender:
if {start} is "on":
if player has permission "sk.endermage":
cancel event
loop all players:
if distance between player's location and loop-player <= 3:
loop-player is not player
teleport loop-player to player