When I put "testfor x=7,y=5,z=32" in a command block and hooked it up to a redstone clock so that it would update itself and put a redstone comparitor in front of it...
What I expected to happen was...:
-When I was at coordinates "7 5 32", the comparitor would turn on, powering the redstone in front of it
-When I was not at said coordinates, the comparitor would turn off
What actually happened was...:
As soon as the command was entered in the command block, the comparitor turned on, and refused to turn off no matter where i was (including those coordinates)
Steps to Reproduce:
1. Place a command block
2. Place a redstone comparitor facing out from the command block
3. In the command block, type the following: "testfor @p[x=<your x coordinate>,y=<your y coordinate,z=<your z coordinate>]"
4. Place a redstone repeater facing out from the comparitor
5. Place a redstone lamp so that it gets input from the redstone repeater
6. Hook the command block up to a redstone clock (google how to do this if you don't know)
All other commands and testfor arguments work perfectly for me.
Edit:
At the input of a commenter, I included a maximum search radius argument ("r=<radius>"). Now the command block acts as if the search radius argument was the only argument, turning on when I am in radius and off when I am out of radius, regardless of coordinates.
Linked issues
is duplicated by 9
Attachments
Comments 22
Please do not mark issues as private, unless your bug report is a security issue containing information that may compromise your server/client.
thank you Ferdinand B., I thought no one was going to notice this just because it's already been written off
I suggest you to change the title into something similar to "[Command Block] testfor, tell, tellraw and tp don't accept coordinate-@ arguments", but that's only my thought, so if you think the existing title suits this topic better, go leave it.
I sure notice this as I receive email-notifications about it, so I thought I re-confirm the issue with 1.7.2
And there we are, with a (in my thoughts) really important bug that should be fixed, because it really makes adventure-maps suffer.
mine was forced onto this and marked as resolved >_> so I'll probably just make a new one
Edit: new ticket MC-38817
To all you people saying this is still an issue:
No it's not. The radius argument defaults to infinity if you don't input it. So if you type "/testfor @a[x=0,y=0,z=0]", it will look for all players within a radius of infinity of 0, 0, 0, and it will obviously find all players in the world. If you want to limit the search radius, input a radius argument. In the future, please actually check the correct syntax for commands before posting a bug report.
[^11-1-13[2334@-5gmt]Bueller.png]
[media][media][media][media][media][media][media]