mojira.dev
MC-81478

Entity "name" and "CustomName" selector arguments not working.

What I thought would happen:

Using

testfor @e[name=TEST]

or

testfor @e[CustomName=TEST]

would result in finding any entities with name TEST.

What actually happened:

Block outputs "UUID is in the wrong format (etc.)" for "name" and "Found @" for "CustomName." After replacing the block from CustomName to name the command block is still outputting "Found @" but doesn't seem to be functioning beyond that. I.E. there's no redstone output.

Linked issues

Attachments

Comments 7

It's

testfor @e {CustomName:"TEST"}

That results in the output:

{CustomName:"TEST' is not a valid number.

EDIT: I was using it on /execute, my bad. But the setup you showed still results in an error along the lines of "cant find string "CustomName="TEST"""

works fine for me

testfor @e[name=TEST]
OR
testfor @e {CustomName:"TEST"}

both work

make sure an entity with that name actually exists

"Found TEST" - see screenshots

Well the issue Im getting now is that if "TEST" doesn't exist it breaks the command block, I.E. if I test if there's a "TEST" it will output an error, then if I actually put a TEST and try again there's no result.

You have to check the results by Redstone, see new screenshots and http://minecraft.gamepedia.com/Testfor#testfor

No horses were harmed for this test
/me hides horse meat

I was doing that. I'll have another look at my codes and see if I have a mistake somewhere. Thanks for the help (and the laugh)

Aerotactics

(Unassigned)

Unconfirmed

Minecraft 1.8.7

Retrieved