mojira.dev
MC-15765

/testfor command not working with player names and modifiers

I tried to create a locked door in Vanilla MC with command blocks using my username, the /testfor command, and the modifier {r=<some number>}. (yes i used square brackets, but they don't show here.) Even when I was within the testing radius, the command always failed. Obviously, the intended result was a piston door that could only be operated by me (yes I was using a comparator). I know that I wired it right because if i take out {r=<some number>} then it works. Help?

Linked issues

Comments 3

Please do not mark issues as private, unless your bug report is a security issue containing information that may compromise your server/client.

Duplicate of MC-9063, see second-last comment.

So in your case:

/testfor @a[name=playername,r=number]

Why do You care

(Unassigned)

Unconfirmed

redstone

Minecraft 1.5.1

Retrieved