Track and Display Scores for Objectives
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.
/scoreboard objectives add <objective: ScoreboardObjectives> dummy [displayName: string]Add objective
/scoreboard objectives remove <objective: ScoreboardObjectives>Remove objectives
/scoreboard objectives listList objectives
/scoreboard objectives setdisplay <displaySlot: ScoreboardDisplaySlotSortable> [objective: ScoreboardObjectives] [sortOrder: ScoreboardSortOrder]Set display
/scoreboard objectives setdisplay belowname [objective: ScoreboardObjectives]Set display below name
/scoreboard players list [playername: targets]List players
/scoreboard players reset <player: targets> [objective: ScoreboardObjectives]Reset player objective
/scoreboard players test <player: targets> <objective: ScoreboardObjectives> <min: wildcard int> [max: wildcard int]Test score
/scoreboard players random <player: targets> <objective: ScoreboardObjectives> <min: int> <max: int>Give random score
/scoreboard players <action: ScoreboardPlayersNumAction> <player: targets> <objective: ScoreboardObjectives> <count: int>Change score, count
/scoreboard players operation <targetName: targets> <targetObjective: ScoreboardObjectives> <operation: operator> <selector: targets> <objective: ScoreboardObjectives>Change score, math operation
| Argument | Type | What it means |
|---|---|---|
action | ScoreboardPlayersNumAction | The numerical action to perform on a player's score. |
count | int | An integer value used to change or set the player's score. |
displayName | string | A text string used as the public display name, which defaults to the objective name if left blank. |
displaySlot | ScoreboardDisplaySlotSortable | The sortable display slot where the scoreboard appears for players to view. |
max | wildcard int | The maximum integer or wildcard integer value for random generation or score testing. |
max | int | The maximum integer or wildcard integer value for random generation or score testing. |
min | wildcard int | The minimum integer or wildcard integer value for random generation or score testing. |
min | int | The minimum integer or wildcard integer value for random generation or score testing. |
objective | ScoreboardObjectives | The internal name of the objective for the game to track. |
operation | operator | The math operator to apply, which must be =, +=, -=, *=, /=, */, <>, <, or >. |
player | targets | A player name string or target selector used to identify the player. |
playername | targets | A target selector, player selector, UUID, unique ID, or * for all score holders when listing players. |
selector | targets | A target selector, player selector, UUID, unique ID, or * for all of the source score holders used as inputs. |
sortOrder | ScoreboardSortOrder | Determines how scores are ordered in the display slot, chosen from ascending or descending. |
targetName | targets | A target selector, player selector, UUID, unique ID, or * identifying the score holders whose scores will be modified. |
targetObjective | ScoreboardObjectives | The objective of the target player that will be changed during a math operation. |
/scoreboard objectives add coins dummy "Gold Coins"Creates a new dummy objective named coins that shows up to players as Gold Coins.
/scoreboard objectives listLists all objectives currently created in the world.
/scoreboard objectives setdisplay belowname health_ptsDisplays the scores for the health_pts objective right below every player's name tag.
/scoreboard players random @p prize_roll 1 100Assigns the nearest player a random score between 1 and 100 on the prize_roll objective.
/scoreboard players test @a[r=10] tickets 5 20Checks if all players within a 10-block radius have a tickets score between 5 and 20.
/scoreboard players operation @r team_points += @s bonus_pointsAdds the executing player's bonus_points score to a random player's team_points score.
/scoreboard players reset Alex parkour_timeResets the parkour_time objective score for the player named Alex.
/scoreboard objectives remove old_questDeletes the old_quest objective and stops tracking its scores.
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.
Run /scoreboard objectives setdisplay belowname [objective] and replace [objective] with the name of the objective you want to show.
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.
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.
/dialogue/execute/function/packstack/reload/reloadpacketlimitconfig/schedule/scriptevent/sendshowstoreoffer/tag/testfor/testforblock/testforblocks/toggledownfall