Commands/scoreboard

These commands manage scoreboard objectives, players, and teams.

list

 * Syntax
 * Description
 * List all existing objectives with their display names and criteria.
 * Result
 * Output
 * Output
 * Output

add

 * Syntax
 * Description
 * Create a new objective with the given internal objective name, specified criterion, and the optional display name.
 * Arguments
 * Specifies the internal objective name.
 * $$, it can also be a double-quoted text.
 * Specifies the criterion of the new objective.
 * $$, "dummy" is the only criterion currently supported.
 * Specifies the display name, defaulting to  when unspecified.
 * $$, must be a raw JSON text. $$, must be a double-quoted text or a unquoted text that isn't a number.
 * Result
 * Output
 * Specifies the display name, defaulting to  when unspecified.
 * $$, must be a raw JSON text. $$, must be a double-quoted text or a unquoted text that isn't a number.
 * Result
 * Output
 * Output

remove

 * Syntax
 * Description
 * Delete the named objective from the scoreboard system. Data is deleted from the objectives list and entity scores, and if it was on a display list it is no longer displayed.
 * Arguments
 * Specifies the internal objective name.
 * $$, must be a existing scoreboard objective name. $$, must be a double-quoted text or a unquoted text that isn't a number.
 * Result
 * Output
 * Result
 * Output
 * Output

setdisplay

 * Syntax
 * Description
 * Display score info for the objective in the given slot. Note that the objective parameter is optional; if no objective is provided, this display slot is cleared (returned to its default state). $$, if slot is  or , there is an additional optional argument   to specify the sort order.
 * Arguments
 * Specifies the slot to display the objective.
 * Valid slots are listed and described in Display Slots.
 * Specifies the internal objective name.
 * $$, must be a existing scoreboard objective name. $$, must be a double-quoted text or a unquoted text that isn't a number.
 * Specifies the sort order.
 * Result
 * Output
 * Specifies the sort order.
 * Result
 * Output
 * Output
 * Output

modify ... displayname

 * Syntax
 * Description
 * Change the display name of the scoreboard in display slots.
 * Arguments
 * Specifies the internal objective name.
 * Specifies the display name.
 * Result
 * Output
 * Specifies the display name.
 * Result
 * Output
 * Result
 * Output
 * Output

modify ... rendertype

 * Syntax
 * Description
 * Change the display format for scores in the player list.
 * Arguments
 * Specifies the internal objective name.
 * Specifies the format.
 * Result
 * Output
 * Specifies the format.
 * Result
 * Output
 * Output
 * Output

list

 * Syntax
 * Description
 * Lists all score holders which are tracked in some way by the scoreboard system. The optional  or   parameter is used to list the scores of particular score holders.
 * Arguments
 * Specifies the score holder(s).
 * $$, only a single score holder can be specified, and  doesn't work. $$, it can be multiple score holders.
 * Result
 * Output
 * $$, only a single score holder can be specified, and  doesn't work. $$, it can be multiple score holders.
 * Result
 * Output
 * Output

get

 * Syntax
 * Description
 * Return the scoreboard value. Can be used in conjunction with the command:
 * Arguments
 * Specifies the score holder.
 * Only a single score holder can be specified, and  doesn't work.
 * Specifies the objective to get score from it.
 * Result
 * Output
 * Specifies the objective to get score from it.
 * Result
 * Output
 * Output
 * Output

set

 * Syntax
 * Description
 * Set the targets' scores in the given objective, overwriting any previous score.
 * Arguments
 * Specifies the score holders.
 * Specifies the objective.
 * $$, must be a existing scoreboard objective name. $$, must be a double-quoted text or a unquoted text that isn't a number.
 * Specifies the score to set to.
 * Result
 * Output
 * $$, must be a existing scoreboard objective name. $$, must be a double-quoted text or a unquoted text that isn't a number.
 * Specifies the score to set to.
 * Result
 * Output
 * Result
 * Output
 * Output

add

 * Syntax
 * Description
 * Increments the targets' scores in that objective by the given amount.
 * Arguments
 * Specifies the score holders.
 * Specifies the objective.
 * $$, must be a existing scoreboard objective name. $$, must be a double-quoted text or a unquoted text that isn't a number.
 * Specifies the score to set to.
 * $$, it can be a negtive number that means decrementing the score.
 * Result
 * Output
 * Specifies the score to set to.
 * $$, it can be a negtive number that means decrementing the score.
 * Result
 * Output
 * Output
 * Output

remove

 * Syntax
 * Description
 * Decrements the targets' scores in that objective by the given amount.
 * Arguments
 * Specifies the score holders.
 * Specifies the objective.
 * ⇭⇭⇭⇭⇭, must be a existing scoreboard objective name. ⇭⇭⇭⇭⇭, must be a double-quoted text or a unquoted text that isn't a number.
 * Specifies the score to set to.
 * ⇭⇭⇭⇭⇭, it can be a negtive number that means incrementing the score.
 * Result
 * Output
 * Specifies the score to set to.
 * ⇭⇭⇭⇭⇭, it can be a negtive number that means incrementing the score.
 * Result
 * Output
 * Output
 * Output

random

 * Syntax
 * Description
 * Sets the targets' scores in that objective to a random number between min and max (inclusive).
 * Arguments
 * Specifies the score holders.
 * Specifies the objective.
 * ⇭⇭⇭⇭⇭, must be a existing scoreboard objective name. ⇭⇭⇭⇭⇭, must be a double-quoted text or a unquoted text that isn't a number.
 * Specifies the min value and max value that the random number is between.
 * Result
 * Output
 * ⇭⇭⇭⇭⇭, must be a existing scoreboard objective name. ⇭⇭⇭⇭⇭, must be a double-quoted text or a unquoted text that isn't a number.
 * Specifies the min value and max value that the random number is between.
 * Result
 * Output
 * Result
 * Output
 * Output

reset

 * Syntax
 * Description
 * Deletes score or all scores for the targets. If  is specified, then only that objective is cleared. Otherwise, this applies to all objectives.
 * Note that this does not merely set the score(s) to 0: it removes the entity from the scoreboard system (or for the given objective) altogether.
 * Arguments
 * Specifies the score holders.
 * Specifies the objective.
 * ⇭⇭⇭⇭⇭, must be a existing scoreboard objective name. ⇭⇭⇭⇭⇭, must be a double-quoted text or a unquoted text that isn't a number.
 * Result
 * Output
 * Specifies the objective.
 * ⇭⇭⇭⇭⇭, must be a existing scoreboard objective name. ⇭⇭⇭⇭⇭, must be a double-quoted text or a unquoted text that isn't a number.
 * Result
 * Output
 * Output

test

 * Syntax
 * Description
 * Tests if target's/targets' score(s) is/are within  and   (Default MAX_INT(2,147,483,647)).
 * Tests if target's/targets' score(s) is/are within  and   (Default MAX_INT(2,147,483,647)).

enable

 * Syntax
 * Description
 * Enables the target player(s) to use the command on the specified objective. This command accepts all entities, but only players are able to actually use the  command. Until this has been done, players that attempt to  that objective fail. Using the  command disables it again.
 * Enables the target player(s) to use the command on the specified objective. This command accepts all entities, but only players are able to actually use the  command. Until this has been done, players that attempt to  that objective fail. Using the  command disables it again.

operation

 * Syntax
 * Description
 * Applies an arithmetic operation altering the target's/targets' score(s) in the target objective, using source target's/targets' score(s) in the source objective as input.
 * Applies an arithmetic operation altering the target's/targets' score(s) in the target objective, using source target's/targets' score(s) in the source objective as input.