mojira.dev
MC-103308

Command Block /testfor Error

I've been using a command block (and comparator) to test for a player within the radius of a certain block to open/close a hidden door on approach.

/testfor @p[x=184,y=66,z=330,r=3]

The above was working in 1.9.4...but with the update to 1.10 it is broken. At first it simply gave an error message "entity UUID is invalid" etc. etc., then by (experimenting) eliminating the " = " 's the command executed but seems to completely ignore the coordinates, finding me anywhere.(have tried and tested with both redstone clock version and auto/repeat)

What has changed/am I doing wrong? Is there a working command for this, or is it truly broken?

Comments 3

The command you've provided is correct and does work. An "invalid UUID" error simply means no targets were found. Ensure that the coordinates are correct for your usage and that the command block is activating correctly.

Hmm..Thanks it is working now, but when I first logged into the new update the existing device was not working and now it is. Weird 😛

...and I did make a typo with another test device lol *guilty face oh well my bad

This does not seem to be resolved. I have tried this command on like every version up from 1.8.8 and it does not work. The command is
/testfor @a[x=250,y=94,z=230,m=2] trying to check for me in Creative mode. No error appears, but it won't work. Removing x=, y=, z=, and m=2 makes the command block completely FORGET the coordinates. Please help me, as this is for my new adventure map. Thanks!

Erik Johnson

(Unassigned)

Unconfirmed

Minecraft 1.10

Retrieved