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

How to use the /testfor command on a specific player? - Crop hacker silhouette typing on computer keyboard while hacking system

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 to use the /testfor command on a specific player? - From above of crop anonymous male hacker typing on netbook with data on screen while sitting at desk
How to use the /testfor command on a specific player? - From below of ethnic boy in hoodie controlling robot using panel while standing in light room
How to use the /testfor command on a specific player? - High angle of pensive African American female freelancer in glasses and casual clothes focusing on screen and interacting with netbook while sitting at table with glass of yummy drink on cafe terrace in sunny day



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