OmniGame logoOmniGame

/scoreboard Command

Creates and manages scoreboard objectives (named counters tracked per entity) and manipulates player/entity scores within those objectives. Supports arithmetic operations, display slots, custom number formatting (since 1.20.3), and criteria like `dummy`, `health`, `playerKillCount`, `deathCount`, etc.

Syntax
Objectives: scoreboard objectives add <objective> <criteria> [<displayName>] scoreboard objectives remove <objective> scoreboard objectives list scoreboard objectives setdisplay <slot> [<objective>] scoreboard objectives modify <objective> displayname <displayName> scoreboard objectives modify <objective> rendertype (hearts|integer) scoreboard objectives modify <objective> displayautoupdate (true|false) Players: scoreboard players set <targets> <objective> <score> scoreboard players add <targets> <objective> <score> scoreboard players remove <targets> <objective> <score> scoreboard players reset <targets> [<objective>] scoreboard players get <target> <objective> scoreboard players list [<target>] scoreboard players enable <targets> <objective> scoreboard players operation <targets> <targetObjective> <operation> <source> <sourceObjective> scoreboard players display name <targets> <objective> <displayName> scoreboard players display numberformat <targets> <objective> (blank|fixed <component>|styled <style>) <operation>: +=, -=, *=, /=, %=, =, <, >, ><
Permission: 2Edition: Both

Examples

scoreboard objectives add kills playerKillCount {"text":"Kills","color":"gold"}scoreboard objectives setdisplay sidebar killsscoreboard players operation @s total += @s bonusscoreboard players display numberformat @a score styled {"color":"aqua"}

Notes

Per-entity score tracking is Java-only (UUID support). Bedrock has a subset: no `players display name`, no `players display numberformat`, no UUID targets. `displayautoupdate` and `numberformat` were added in Java Edition 1.20.3. Score range is -2,147,483,648 to 2,147,483,647.

More commands