1
[1.9] xyz Selectors Not Working
I'm working on a map and in 1.9, the xyz selectors aren't working! They worked in the snapshots and pre-releases, but they didn't work in the official release. I've tried every iteration of the command and it still doesn't work. Any ideas?
3
Also, to get the condition if the testfor command that Tedk1 put out there worked or failed, put a Redstone Comparator on the end of the Command Block.
If those commands are not working that Tedk1 specified, then you can also return back a condition from an execute command. For example:
execute @a 100 64 100 setblock 0 100 0 minecraft:redstone_block
Execute All players at x(100) y(64) z(100) to set a redstone block at x(0) y(100) z(0)
or for an entity...
execute @e[type=Zombie,name=Minion_86] 100 64 100 setblock 0 100 0 minecraft:redstone_block
Execute a Zombie named Minion_86 at x(100) y(64) z(100) to set a redstone block at x(0) y(100) z(0)
The name "Minion_86" and the type "Zombie" acts as an identifier for that specific entity.
execute @a 100 64 100 setblock 0 100 0 minecraft:redstone_block
Execute All players at x(100) y(64) z(100) to set a redstone block at x(0) y(100) z(0)
or for an entity...
execute @e[type=Zombie,name=Minion_86] 100 64 100 setblock 0 100 0 minecraft:redstone_block
Execute a Zombie named Minion_86 at x(100) y(64) z(100) to set a redstone block at x(0) y(100) z(0)
The name "Minion_86" and the type "Zombie" acts as an identifier for that specific entity.
Ive experimented and I found out it does work, but differently than normal. It now requires a radius tag: "r=RADIUS" as well.
Ex:
testfor @a[x=100,y=64,z=100] Will target all players, while
testfor @a[x=100,y=64,z=100,r=1] Will target players at the coordinates.
Simpler terms: Radius tags are required.
Ex:
testfor @a[x=100,y=64,z=100] Will target all players, while
testfor @a[x=100,y=64,z=100,r=1] Will target players at the coordinates.
Simpler terms: Radius tags are required.
