-
Bug
-
Resolution: Works As Intended
-
None
-
Minecraft 1.5
-
Windows 8
Java Version 7 Update 11
-
Unconfirmed
-
Creative
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.
- is duplicated by
-
MC-30435 "/testfor" Coordinate Output Always True
- Resolved
-
MC-34979 /testfor not working with coordinates
- Resolved
-
MC-38417 Location parameters not working when selecting a non-specific player.
- Resolved
-
MC-40797 /testfor with co-ordinates doesn't work?
- Resolved
-
MC-50183 Strange coordinates behavior
- Resolved
-
MC-51835 XYZ doesn't work with /testfor
- Resolved
-
MC-56021 Selector not functioning correctly with x y z
- Resolved
-
MC-73005 command testfor don't work when you put coordinates
- Resolved
-
MC-73256 command testfor dont work with coordinates
- Resolved