may be:
* "+=" Addition: Add source's score to that of target
* "-=" Subtraction: Subtract source's score from that of target
* "*=" Multiplication: Set target's score to the product of target's and source's scores
* "/=" (Integer) Division: Divide target's score by source's score, and use the result (rounded down) to set the target score.
* "%=" Modulus: Divide target's score by source's score, and use the remainder to set the target score
* "=" Assign: Set target's score to that of source
* "<" Min: Set target's score to source's score only if source has the lesser score.
* ">" Max: Set target's score to source's score only if source has the greater score.
* "><" Swaps target's and source's scores
In all cases except "><", source's score remains unchanged. If target or source isn't tracked by the specified objective, it is set to 0. If more than one score holder is specified as sources, performs the operation once with each source's score. If more than one target score holder is specified, performs the operation for each target one by one.
|}
=== Tags commands ===
{{main|Commands/tag}}
=== Teams commands ===
{{exclusive|java|section=1}}
{{main|Commands/team}}
== NBT format ==
{{exclusive|java|section=1}}
The file '''scoreboard.dat''' in the 'data' folder of a Minecraft world stores the scoreboard data for that world as a {{w|gzip|newtab=1}} compressed [[NBT]] file:
* {{nbt|compound}} The root tag.
**{{nbt|compound|data}}: The scoreboard data.
***{{nbt|list|Objectives}}: A list of compound tags representing objectives.
**** {{nbt|compound}} An objective.
***** {{nbt|string|CriteriaName}}: The criterion of this objective.
***** {{nbt|string|DisplayName}}: The display name of this objective in JSON. If none was specified during the objective's creation, this is set to {"text":"''Value of Name''"}
.
***** {{nbt|string|Name}}: The internal name of this objective.
***** {{nbt|string|RenderType}}: The way the score is displayed. Can be "integer" or "hearts", but defaults to "integer".
***** {{nbt|byte|display_auto_update}}: 1 or 0 (true/false) - Whether the display names in the sidebar automatically updates whenever the score values are changed.
***** {{nbt|compound|format}}: Optional, the default number format for this objective.
****** {{nbt|string|type}}: One of blank
, fixed
, or result
(called styled
in the command).
****** Additional fields based on the type.
*** {{nbt|list|PlayerScores}}: A list of compound tags representing scores tracked by the scoreboard system.
**** {{nbt|compound}} A tracked player/objective pair with a score.
***** {{nbt|int|Score}}: The score this player has in this objective.
***** {{nbt|string|Name}}: The name of the player who has this score in this objective.
***** {{nbt|string|Objective}}: The internal name of the objective that this player has this score in.
***** {{nbt|byte|Locked}}: 1 or 0 (true/false) - false if this objective is "enabled". Meaningful only for objectives with the criteria "trigger", where this must be false before a player can use the /trigger command on it.
***** {{nbt|string|display}}: Optional, the text component used as display name in the sidebar.
***** {{nbt|compound|format}}: Optional, the number format of the player score.
****** {{nbt|string|type}}: One of blank
, fixed
, or result
(called styled
in the command).
****** Additional fields based on the type.
*** {{nbt|list|Teams}}: A list of compound tags representing teams.
**** {{nbt|compound}} A Team.
***** {{nbt|byte|AllowFriendlyFire}}: 1 or 0 (true/false) - true if players on this team can harm each other.
***** {{nbt|byte|SeeFriendlyInvisibles}}: 1 or 0 (true/false) - true if players on this team can see invisible teammates.
***** {{nbt|string|NameTagVisibility}}: The value of the nametagVisibility option of this team.
***** {{nbt|string|DeathMessageVisibility}}: The value of the deathMessageVisibility option of this team. Valid options are: never, hideForOtherTeams, hideForOwnTeam, always
***** {{nbt|string|CollisionRule}}: The value of the collisionrule option of this team. Valid options are: always, pushOwnTeam, never, pushOtherTeams
***** {{nbt|string|DisplayName}}: The display name of this team in JSON. If none was specified during the team's creation, this is set to {"text":"''Value of Name''"}
.
***** {{nbt|string|Name}}: The internal name of this team.
***** {{nbt|string|MemberNamePrefix}}: The prefix prepended to names of players on this team. In JSON format.
***** {{nbt|string|MemberNameSuffix}}: The suffix appended to names of players on this team. In JSON format
***** {{nbt|string|TeamColor}}: The text-based color ("black", "dark_blue", etc.) given to the team. Does not exist if no color is set.
***** {{nbt|list|Players}}: A list of names of players on this team.
****** {{nbt|string}} The name of a player on this team.
*** {{nbt|compound|DisplaySlots}}: A set of slots that display specific objectives. If a slot is empty, its tag is not present.
****{{nbt|string|slot_''n''}}: The internal name of the objective displayed (see below).
{| class="wikitable"
|+Display slots
! No.!!Type!!Name
|-
|0||Player list|| list
|-
| 1||On the sidebar||sidebar
|-
|2 ||Below the player's username||belowName
|-
|3|| rowspan="16" | Team color||sidebar.team.black
|-
|4||sidebar.team.dark_blue
|-
|5 || sidebar.team.dark_green
|-
|6||sidebar.team.dark_aqua
|-
|7||sidebar.team.dark_red
|-
|8||sidebar.team.dark_purple
|-
|9||sidebar.team.gold
|-
| 10||sidebar.team.gray
|-
| 11||sidebar.team.dark_gray
|-
|12||sidebar.team.blue
|-
|13||sidebar.team.green
|-
|14|| sidebar.team.aqua
|-
| 15||sidebar.team.red
|-
|16||sidebar.team.light_purple
|-
| 17|| sidebar.team.yellow
|-
|18||sidebar.team.white
|}
== History ==
{{HistoryTable
|{{HistoryLine|java}}
|{{HistoryLine||1.5|dev=13w04a|Added scoreboard.}}
|{{HistoryLine|||dev=13w05a|Added team-based functionality.}}
|{{HistoryLine||1.7.2|dev=13w36a|Added statistic-based objective criteria.}}
|{{HistoryLine||1.8|dev=14w02a|Entities other than players can now be part of teams and have objective scores.}}
|{{HistoryLine|||dev=14w06a|Added the trigger
and team kill-based objective criteria.
|Added /scoreboard players enable
.
|"*" can be used in a player name argument to represent all players tracked by the scoreboard.
|Added the "objective" argument to /scoreboard players reset
.
|Statistic objective criteria now use named IDs instead of numerical IDs.
|Added the achievement.overpowered
objective criterion.}}
|{{HistoryLine|||dev=14w07a|Added /scoreboard players operation
and /scoreboard players test
.
|Scores for fake players that have a name beginning with "#" don't appear in the sidebar.
|Added team-specific sidebar display slots.|Added the nametagVisibility
team option.}}
|{{HistoryLine|||dev=14w10a|Added the deathMessageVisibility
team option.
|Added a dataTag
argument to /scoreboard players set
, /scoreboard players add
, and /scoreboard players remove
.
|Added the stat.crouchOneCm
, stat.sprintOneCm
, and stat.timeSinceDeath
objective criteria.}}
|{{HistoryLine|||dev=14w25a|Added =
, <
, and >
to /scoreboard players operation
.}}
|{{HistoryLine|||dev=14w29a|Player/entity names in the sidebar are now secondarily sorted by alphabetical order.}}
|{{HistoryLine|||dev=14w30a|Added the stat.talkedToVillager
and stat.tradedWithVillager
objective criteria.}}
|{{HistoryLine|||dev=unknown|Added ><
to /scoreboard players operation
.}}
|{{HistoryLine||1.8.2|Added the stat.cauldronFilled
, stat.cauldronUsed
, stat.armorCleaned
, stat.bannerCleaned
, stat.brewingstandInteraction
, stat.beaconInteraction
, stat.dropperInspected
, stat.hopperInspected
, stat.dispenserInspected
, stat.noteblockPlayed
, stat.noteblockTuned
, stat.flowerPotted
, stat.trappedChestTriggered
, stat.enderchestOpened
, stat.itemEnchanted
, stat.recordPlayed
, stat.furnaceInteraction
, stat.craftingTableInteraction
, stat.chestOpened
objective criteria.}}
|{{HistoryLine||1.9|dev=15w32a|Added the stat.sneakTime
objective criteria.}}
|{{HistoryLine|||dev=15w32b|Added /scoreboard players tag
.
|Added the xp
, food
, and air
objective types.}}
|{{HistoryLine|||dev=15w33a|Added the stat.pickup
and stat.drop
objective criteria.
|Added the armor
, level
objective types.}}
|{{HistoryLine|||dev=15w36a|Added collisionRule
.}}
|{{HistoryLine|||dev=15w49a|Added the stat.aviateOneCm
objective criteria.}}
|{{HistoryLine||1.13|dev=pre7|Added {{cmd|scoreboard objectives modify}}.}}
|{{HistoryLine|||dev=pre8|Added {{cmd|scoreboard objectives modify <''objectiveName''> rendertype ''hearts''|link=none}}, which makes health bars display as hearts, like this: {{Healthbar|12|total=20}}.
|Added {{cmd|scoreboard objectives modify rendertype ''integer''|link=none}}, which makes health bars display as yellow numbers.
|Objective names are now text components, not raw strings.}}
|{{HistoryLine||1.13.1|dev=18w31a|Changed the scoreboard operator {{code|%{{=}}}} from using {{code|%}} to {{code|Math.floorMod}}.}}|{{HistoryLine||1.18|dev=21w37a|Removed 16-character length limits for scoreboards, score holders and team names.}}
|{{HistoryLine||1.20.2|dev=23w31a|The {{cd|belowName}} display slot selector is now {{cd|below_name}}.}}
|{{HistoryLine||1.20.3|dev=23w46a|Added custom display settings for scores in the sidebar.}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.7.0|dev=beta 1.7.0.2|Added basic scoreboard mechanics.
|Added dummy scoreboards.}}
}}
== Issues ==
{{issue list}}
== Gallery ==
=== Screenshots ===
Dirt Dug Dinnerbone.png|A "dirt dug" scoreboard.
Pigs Killed Dinnerbone.png|A "pigs killed" scoreboard.
Deaths by Zombie Dinnerbone.png|A "deaths by zombie" scoreboard.
Scoreboard Objectives.png|A long list of scoreboard objectives.
== Notes ==
{{fnlist}}
== Navigation ==
{{Navbox gameplay}}
{{Navbox Java Edition technical|general}}
[[de:Anzeigetafel]]
[[es:Marcador]]
[[fr:Tableau de score]]
[[ja:スコアボード]]
[[ko:스코어보드]]
[[nl:Scorebord]]
[[pl:Tablica wyników]]
[[pt:Placar]]
[[ru:Система счёта игровых событий]]
[[uk:Табло]]
[[zh:记分板]]