Create a Scoreboard Objective
Set up a scoreboard counter to track a value
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Creates a scoreboard objective — a named counter you can attach to players. The dummy criterion means the score only changes when a command changes it, which is what most minigames use. The last argument is the display name (an SNBT text component on Java, a quoted string on Bedrock). After creating it you set scores with /scoreboard players set <player> points <n>.
/scoreboard objectives add points dummy {text:"Points"}55 characters
- Java: yes
- Bedrock: yes
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java, / on Bedrock).
- Paste the command, renaming 'points' to your objective name.
- Press Enter to create the objective.
- Add points with /scoreboard players add @s points 1.
Related commands
Display an objective's scores on the right side of the screen
/scoreboard objectives setdisplay sidebar pointsAutomatically count how many players each player kills
/scoreboard objectives add kills playerKillCount {text:"Kills"}Automatically count how many times each player dies
/scoreboard objectives add deaths deathCount {text:"Deaths"}Become nearly invincible
/effect give @p resistance 999999 255 true