How to use the /testfor command on a specific player?

//ads -- adsterra.com -- native banner
?>
So I have this map that me and my brother Zeal Etage (Minecraft name) play together using LAN. I created a command block system using the /testfor
command for a money system that rewards on mob-killing. I have a command like this:
/testfor [name=ZealEtage,score_skeleton_min=1]
but it says the UUID doesn't match. What am I doing wrong?
Best Answer
You need a selector (@r
, @a
, @p
, @e
) before the selector arguments. Try this:
/testfor @a[name=ZealEtage,score_skeleton_min=1]
Pictures about "How to use the /testfor command on a specific player?"



How do you test a player on a particular block?
The /testfor command became obsolete in Minecraft 1.13, and has been replaced by the /execute command*. It will do the same as typing /testfor @e {SelectedItem:{id:"<item>"}} and then putting a comparator to the command block with the command, and then running the command which you wanna run.Minecraft Command Tutorial: Learning How to Use /testfor in Minecraft | 1.12.2 | pre-1.13
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Anete Lusina, Sora Shimazaki, Vanessa Loring, Andrea Piacquadio