Targetting players with a specific score doesn't seem to work
How can I target a player with a specific score? For example: Set the score of Score to 100 for every player with 1 Point in the scoreboard objective ScoreB. I tried
/scoreboard players add @a[score_Score_min=1] Score 1
and it actually worked. But then i set the score for a "player" named "Test" to 1 and it didn't get points. What did I do wrong?
Best Answer
It sounds like "Test" is not a real player.
The problem in this case is that target selectors like @a[...] can only resolve / find entities that exist somewhere in the world and are loaded.
This means that while you can change the scores of fake or offline players (scoreboard scores are stored in scoreboard.dat rather than playerdata) by specifying their name directly, i.e.
/scoreboard players set Rayset Score 29
You can not use target selectors unless there is an entity to resolve.
If an entity exists, your command is correct. @a[score_Score_min=1] resolves all player entities with a Score score of at least 1.
Pictures about "Targetting players with a specific score doesn't seem to work"



How do you test if a player is holding a certain item?
The syntax for the scoreboard would be "/scoreboard objectives add Money dummy" without parenthesis. To place this scoreboard to the sidebar, Minecraft players can then use the command "/scoreboard objectives setdisplay sidebar Money" which should display the scoreboard to the right of the screen.How do you detect what a player is looking at?
Via the /scoreboard objectives setdisplay command (see command reference), players' scores in specific objectives can be displayed in certain 'slots' in-game. Each 'display slot' can show one objective at a time, and multiple 'display slots' may be used for the same or different objectives.HOW TO COMPLETE FUTTIES DYNAMIC DUO OBJECTIVES FAST! - 94 Mason Mount \u0026 94 James Objective - FIFA 22
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Mike, Joe Calomeni, Pixabay, Pixabay
