Copy-ready starting examples
/scoreboard objectives add money dummy/scoreboard players add @p money 10/scoreboard objectives setdisplay sidebar moneyHow to build it
- Choose an objective name and display name.
- Select dummy, deaths, kills or another suitable criterion.
- Generate initialization, updates and a display slot.
Common mistakes
- Setting a score before creating the objective.
- Using spaces or an excessively long internal name.
- Using a Java-only criterion in Bedrock.
Edition and version notes
Bedrock supports fewer criteria. Use dummy and update values from commands when cross-edition compatibility matters.
Build and inspect a scoreboard objective
In Java Edition, start with /scoreboard objectives add coins dummy to create an objective. Then use /scoreboard players set @p coins 10 and /scoreboard objectives setdisplay sidebar coins to see the value in the sidebar. The objective name must match exactly in every command.
A scoreboard value is only a number until other commands react to it. To build a shop, establish how points are earned, checked and deducted; avoid immediately wiring payment commands into a live server without a controlled test of insufficient funds and repeated button presses.