Checking if a mob is in a certain XY location

Zemetor

Member
Joined
Jun 21, 2007
Messages
91
Reaction score
0
Points
6
Location
Iceland
Is it possible to check if a mob is in a certain XY location and is it possible to target a mob by XY location?
 
Sure is.

First you get the actual location by targeting the mob and doing /echo ${Target.LocYX} then you flip those numbers because the devs hate us and use XY in the other stuff lol.

So, you have your known location and you flipped it to get the XY value. Now it is as simple as /target ${Spawn[loc X Y; radius 10]}

You could also do ${Target.X} and ${Target.Y} then place them in to a variable to call them as ${Spawn[loc ${TarX} ${TarY}; radius 10]}
 
Sure is.

First you get the actual location by targeting the mob and doing /echo ${Target.LocYX} then you flip those numbers because the devs hate us and use XY in the other stuff lol.

So, you have your known location and you flipped it to get the XY value. Now it is as simple as /target ${Spawn[loc X Y; radius 10]}

You could also do ${Target.X} and ${Target.Y} then place them in to a variable to call them as ${Spawn[loc ${TarX} ${TarY}; radius 10]}
Thanks dude... works like a charm