Commands/scoreboard

From Minecraft Wiki
Jump to: navigation, search

These commands manage scoreboard objectives, players, and teams.

Syntax[edit]

  • Java Edition
scoreboard objectives (add|list|modify|remove|setdisplay)
... add <objective> <criterion> [<displayName>]
... list
... modify <objective> displayname <displayName>
... modify <objective> rendertype (hearts|integer)
... remove <objective>
... setdisplay <slot> [<objective>]
scoreboard players (add|enable|get|list|operation|remove|reset|set)
... add <targets> <objective> <score>
... enable <targets> <objective>
... get <target> <objective>
... list [<target>]
... operation <targets> <targetObjective> <operation> <source> <sourceObjective>
... remove <targets> <objective> <score>
... reset <targets> [<objective>]
... set <targets> <objective> <score>
  • Bedrock Edition
scoreboard objectives add <objective: string> dummy [displayName: string]
scoreboard objectives list
scoreboard objectives remove <objective: string>
scoreboard objectives setdisplay <list|sidebar> [objective: string] [ascending|descending]
scoreboard objectives setdisplay belowname [objective: string]
scoreboard players list [playername: target]
scoreboard players reset <player: target> [objective: string]
scoreboard players test <player: target> <objective: string> <min: wildcard int> [max: wildcard int]
scoreboard players random <player: target> <objective: string> <min: int> [max: int]
scoreboard players <set|add|remove> <player: target> <objective: string> <count: int>
scoreboard players operation <targetName: targets> <targetObjective: string> <operation: operator> <selector: target> <objective: string>

Arguments[edit]

History[edit]

Java Edition
1.513w04aAdded /scoreboard.
1.13pre7Added /scoreboard objectives modify <objectiveName> displayname <displayName>.
pre8Added /scoreboard objectives modify <objectiveName> rendertype hearts, which makes health bars display as hearts, like this: .
Added /scoreboard objectives modify <objectiveName> rendertype integer, which makes health bars display as yellow numbers.
Objective names are now text components, not raw strings.
Bedrock Edition
1.7.0beta 1.7.0.2Added /scoreboard.

See also[edit]