Commands/scoreboard

These commands manage scoreboard objectives, players, and teams.

list

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


 * 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
 * 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
 * Result


 * 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
 * $$, must be a existing scoreboard objective name. ⇭⇭⇭⇭⇭, must be a double-quoted text or a unquoted text that isn't a number.
 * Result


 * 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
 * ⇭⇭⇭⇭⇭, 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
 * Result


 * Output

modify ... displayname

 * Syntax
 * Description
 * Change the display name of the scoreboard in display slots.
 * Arguments
 * Arguments

modify ... rendertype

 * Syntax
 * Description
 * Change the display format of health bars.
 * Change the display format of health bars.

list

 * Syntax
 * Description
 * Lists all entities which are tracked in some way by the scoreboard system. The optional  or   parameter is used to list the scores of a particular entity.
 * Lists all entities which are tracked in some way by the scoreboard system. The optional  or   parameter is used to list the scores of a particular entity.

get

 * Syntax
 * Description
 * Return the scoreboard value. Can be used in conjunction with the command:
 * Return the scoreboard value. Can be used in conjunction with the command:

set

 * Syntax
 * Description
 * Set the target's/targets' score(s) in the given objective, overwriting any previous score.
 * Set the target's/targets' score(s) in the given objective, overwriting any previous score.

add

 * Syntax
 * Description
 * Increments the target's/targets' score(s) in that objective by the given amount.
 * Increments the target's/targets' score(s) in that objective by the given amount.

remove

 * Syntax
 * Description
 * Decrements the target's/targets' score(s) in that objective by the given amount.
 * Decrements the target's/targets' score(s) in that objective by the given amount.

random

 * Syntax
 * Description
 * Sets the target's/targets' score(s) in that objective to a random number between min and max (inclusive)
 * Sets the target's/targets' score(s) in that objective to a random number between min and max (inclusive)

reset

 * Syntax
 * Description
 * Deletes score or all scores for the target. 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 altogether (or for the given objective).
 * Deletes score or all scores for the target. 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 altogether (or for the given objective).

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.