Commands/bossbar

From Minecraft Wiki
< Commands(Redirected from Bossbar)
Jump to: navigation, search
Information icon.svg
This feature is exclusive to Java Edition.
bossbar
Restrictions

Operator

First introduced

Java Edition 1.13 (18w05a)

Creates and modifies boss bars.

Syntax[edit]

bossbar add <id> <name>
bossbar get <id> (max|players|value|visible)
bossbar list
bossbar remove <id>
bossbar set <id> (color|max|name|players|style|value|visible)
... color (blue|green|pink|purple|red|white|yellow)
... max <max>
... name <name>
... players [<targets>]
... style (notched_6|notched_10|notched_12|notched_20|progress)
... value <value>
... visible <visible>

Arguments[edit]

<id>

Specifies a unique boss bar. Has the form of Namespaced ID (Note: "namespace:" defaults to "minecraft:" if absent.)

<name>

The display name of the boss bar. Must be a valid raw JSON text.

... add <id> <name>

Create a new boss bar.

... get <id> (max|players|value|visible)

Return the requested setting as a result of the command.

... list

Display a list of existing boss bars.

... remove <id>

Remove an existing bossbar.

... set <id> (color|max|name|players|style|value|visible)

... color (blue|green|pink|purple|red|white|yellow)
Set the text color (if no color was specified as part of a text component) and bar color.
Defaults to white upon creation.
... max <max>
Set the boss bar's maximum value.
Defaults to 100 upon creation.
... name <name>
Set the boss bar's name.
... players [<targets>]
Change the set of players to whom the bar is visible.
Defaults to none upon creation.
... style (progress|notched_6|notched_10|notched_12|notched_20)
Set the boss bar's visual amount of segments: continuous, 6 segments, 10 segments, 12 segments, or 20 segments.
Defaults to progress upon creation.
... value <value>
Set the boss bar's current value.
Defaults to 0 upon creation.
... visible <visible>
Set the boss bar's visibility.
Defaults to true upon creation.

Result[edit]

Fails if bossbar specified with <id> doesn't exist in set mode and remove mode, or if bossbar specified with <id> already exists in add mode,

On success, creates, modifies or lists boss bar(s).

History[edit]

Java Edition
1.1318w05aAdded bossbar