The testfor command doesn't have block coordinates, if I'm not mistaken (You should probably check on the wiki). Assuming the armor stand doesn't move, /execute @e[type=ArmorStand,(any other specific targeter)] ~ ~ ~ /testfor @p[x=X,y=Y,z=Z] where X,Y,Z are the coordinates for the player. Alternatively, use r=2 if you want to test for a radius
The testfor command doesn't have block coordinates, if I'm not mistaken (You should probably check on the wiki). Assuming the armor stand doesn't move, /execute @e[type=ArmorStand,(any other specific targeter)] ~ ~ ~ /testfor @p[x=X,y=Y,z=Z] where X,Y,Z are the coordinates for the player. Alternatively, use r=2 if you want to test for a radius
Oh, I understand what are you to say. So, the correct command with your the mistake pointed out should be
No no no, /execute comes with relative coords to execute the command from... Just do this:
/execute @e[type=ArmorStand,tag=whereAreYou] ~2 ~ ~ say @a[c=1,r=1] is east of me!
/execute @e[type=ArmorStand,tag=whereAreYou] ~-2 ~ ~ say @a[c=1,r=1] is west of me!
/execute @e[type=ArmorStand,tag=whereAreYou] ~ ~ ~2 say @a[c=1,r=1] is south of me!
/execute @e[type=ArmorStand,tag=whereAreYou] ~ ~ ~-2 say @a[c=1,r=1] is north of me!
/execute @e[type=ArmorStand,tag=whereAreYou] ~ ~2 ~ say @a[c=1,r=1] is above me!
/execute @e[type=ArmorStand,tag=whereAreYou] ~ ~-2 ~ say @a[c=1,r=1] is below me!
We are moving the location of where the say command is executed to 2 blocks in each direction of the armor stand, meaning if the player is in the armor stand, none of these commands will trigger.
I would have suggested that, but the targeters will not be accurate, so if minor errors are acceptable, then that is definitely the best way if doing this
I am trying to make an armor stand testfor you if you are like 2 blocks west from it and stuff...
Anyone know a way to make it testfor you when you are something from it like ~2 ~ ~ from it?
/execute @e[type=ArmorStand,c=1] ~ ~ ~ /testfor @p ~2 ~ ~
I think that's how you do the command
Just to let you know that if you're using 1.11. It would be like this
This is only for 1.11+(1.11 is still in the snapshot versions so you can temporarily use the ArmorStand for now)
The testfor command doesn't have block coordinates, if I'm not mistaken (You should probably check on the wiki). Assuming the armor stand doesn't move, /execute @e[type=ArmorStand,(any other specific targeter)] ~ ~ ~ /testfor @p[x=X,y=Y,z=Z] where X,Y,Z are the coordinates for the player. Alternatively, use r=2 if you want to test for a radius
Oh, I understand what are you to say. So, the correct command with your the mistake pointed out should be
No no no, /execute comes with relative coords to execute the command from... Just do this:
/execute @e[type=ArmorStand,tag=whereAreYou] ~2 ~ ~ say @a[c=1,r=1] is east of me!
/execute @e[type=ArmorStand,tag=whereAreYou] ~-2 ~ ~ say @a[c=1,r=1] is west of me!
/execute @e[type=ArmorStand,tag=whereAreYou] ~ ~ ~2 say @a[c=1,r=1] is south of me!
/execute @e[type=ArmorStand,tag=whereAreYou] ~ ~ ~-2 say @a[c=1,r=1] is north of me!
/execute @e[type=ArmorStand,tag=whereAreYou] ~ ~2 ~ say @a[c=1,r=1] is above me!
/execute @e[type=ArmorStand,tag=whereAreYou] ~ ~-2 ~ say @a[c=1,r=1] is below me!
We are moving the location of where the say command is executed to 2 blocks in each direction of the armor stand, meaning if the player is in the armor stand, none of these commands will trigger.
I would have suggested that, but the targeters will not be accurate, so if minor errors are acceptable, then that is definitely the best way if doing this