/scoreboard Command in Minecraft Bedrock Edition

Track and Display Scores for Objectives

Bedrock EditionLogic & ScoreboardPermission: Game DirectorsCheats: YesJava version →

The /scoreboard command in Minecraft Bedrock Edition tracks and displays scores for various objectives. It requires cheats to be enabled and a Game Directors permission level to run.

Players and map makers use this command to manage points, show objectives below player names, test if a score falls within a certain range, and perform math operations between different scores.

Syntax (11 forms)

  1. /scoreboard objectives add <objective: ScoreboardObjectives> dummy [displayName: string]

    Add objective

  2. /scoreboard objectives remove <objective: ScoreboardObjectives>

    Remove objectives

  3. /scoreboard objectives list

    List objectives

  4. /scoreboard objectives setdisplay <displaySlot: ScoreboardDisplaySlotSortable> [objective: ScoreboardObjectives] [sortOrder: ScoreboardSortOrder]

    Set display

  5. /scoreboard objectives setdisplay belowname [objective: ScoreboardObjectives]

    Set display below name

  6. /scoreboard players list [playername: targets]

    List players

  7. /scoreboard players reset <player: targets> [objective: ScoreboardObjectives]

    Reset player objective

  8. /scoreboard players test <player: targets> <objective: ScoreboardObjectives> <min: wildcard int> [max: wildcard int]

    Test score

  9. /scoreboard players random <player: targets> <objective: ScoreboardObjectives> <min: int> <max: int>

    Give random score

  10. /scoreboard players <action: ScoreboardPlayersNumAction> <player: targets> <objective: ScoreboardObjectives> <count: int>

    Change score, count

  11. /scoreboard players operation <targetName: targets> <targetObjective: ScoreboardObjectives> <operation: operator> <selector: targets> <objective: ScoreboardObjectives>

    Change score, math operation

Arguments

ArgumentTypeWhat it means
actionScoreboardPlayersNumActionThe numerical action to perform on a player's score.
countintAn integer value used to change or set the player's score.
displayNamestringA text string used as the public display name, which defaults to the objective name if left blank.
displaySlotScoreboardDisplaySlotSortableThe sortable display slot where the scoreboard appears for players to view.
maxwildcard intThe maximum integer or wildcard integer value for random generation or score testing.
maxintThe maximum integer or wildcard integer value for random generation or score testing.
minwildcard intThe minimum integer or wildcard integer value for random generation or score testing.
minintThe minimum integer or wildcard integer value for random generation or score testing.
objectiveScoreboardObjectivesThe internal name of the objective for the game to track.
operationoperatorThe math operator to apply, which must be =, +=, -=, *=, /=, */, <>, <, or >.
playertargetsA player name string or target selector used to identify the player.
playernametargetsA target selector, player selector, UUID, unique ID, or * for all score holders when listing players.
selectortargetsA target selector, player selector, UUID, unique ID, or * for all of the source score holders used as inputs.
sortOrderScoreboardSortOrderDetermines how scores are ordered in the display slot, chosen from ascending or descending.
targetNametargetsA target selector, player selector, UUID, unique ID, or * identifying the score holders whose scores will be modified.
targetObjectiveScoreboardObjectivesThe objective of the target player that will be changed during a math operation.

Examples

Tips

Common mistakes

Bedrock vs Java

In Minecraft Java Edition, the /scoreboard command allows different criteria when adding objectives (/scoreboard objectives add <objective> <criteria> [<displayName>]) rather than only using dummy. Java Edition also includes a modify subcommand to change an existing objective's display name or auto-update settings (/scoreboard objectives modify <objective> displayname <displayName>), which is not available in Bedrock Edition.

See /scoreboard in Java Edition →

FAQ

How do I show a score under a player's name in Bedrock Edition?

Run /scoreboard objectives setdisplay belowname [objective] and replace [objective] with the name of the objective you want to show.

How do I clear a player's score on the scoreboard?

Use the /scoreboard players reset <player> [objective] command to wipe a player's score for a specific objective, or leave the objective blank to reset all of their scores.

Can I give a player a random score with commands?

Yes, Bedrock Edition has a built-in subcommand for this: run /scoreboard players random <player> <objective> <min> <max> to pick a random whole number between your minimum and maximum values.

Related commands

/dialogue/execute/function/packstack/reload/reloadpacketlimitconfig/schedule/scriptevent/sendshowstoreoffer/tag/testfor/testforblock/testforblocks/toggledownfall

More on 9Minecraft