How to get /testfor to only find one player with a score value?
//ads -- adsterra.com -- native banner
?>
I set up a huge randomiser that gives you a random score on a scoreboard called 'say'. There is also a constant /testfor command running to detect a player with each of the possibilities of the randomiser, but no matter what, somebody is always being detected.
I used the command
testfor @p[score_say=13]
(13 is one of the possibilities). I need help making it so that it doesn't always detect every player, but only the player with the score.
Pictures about "How to get /testfor to only find one player with a score value?"



How do you use Testfor scores?
The correct syntax for score selectors is /testfor (player)[scores={objective=number}] . However that command only selects one number. To select a minimum number you need to use a scoreboard test. You can select a range of numbers in target selectors, for example, 0..Minecraft Tutorial | How To Test For A Player's Score
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Kaique Rocha, Pixabay, RF._.studio, RF._.studio
