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
duplicates 1
Attachments
Comments 7
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
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
It's