1

[1.9] xyz Selectors Not Working

awesomecronin 3/4/16 4:18 pm
689
3/17/2016 6:22 pm
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?
Posted by
awesomecronin
Level 52 : Grandmaster System
39

  Have something to say?

JoinSign in

3

ProHelper
03/17/2016 6:22 pm
Level 1 : New Miner
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.
1
ProHelper
03/17/2016 6:18 pm
Level 1 : New Miner
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.
1
Heklo
03/04/2016 5:05 pm
Level 24 : Expert System
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.
1

Welcome