This feature is exclusive to Java Edition.
This article describes content that may be included in a future update.
This content has appeared in development versions, but the full update containing it has not been released yet.
Commands/infobox Creates boss bars and allows them to be modified.
bossbar add <id> <name>
will create a boss bar.id
is used to target the boss bar and is in the formnamespace:name
, for example:foo:bar
. If nonamespace
is specified it defaults tominecraft
.name
is the display name of the boss bar and only accepts a JSON text component.
bossbar set <id> name <name>
will change the name of the boss bar.bossbar set <id> color <color>
will change the color of the text (if no color was specified as part of a text component) and the boss bar, defaults towhite
.bossbar set <id> style <style>
will change the style of the boss bar, defaults toprogress
.- Available options are:
notched_6
,notched_10
,notched_12
,notched_20
, andprogress
. notched
will set the amount of segments.progress
will set the amount of segments to 1.
- Available options are:
bossbar set <id> value <value>
will change the current value of the boss bar, defaults to0
.bossbar set <id> max <max>
will change the maximum value of the boss bar, defaults to100
.bossbar set <id> visible <visible>
will change the visibility of the boss bar, defaults totrue
bossbar set <id> players <players>
will change which players can see the boss bar, defaults to none.bossbar remove <id>
will remove the boss bar.bossbar list
will display a list of created boss bars.bossbar get <id> (max|players|value|visible)
will return the requested setting as aresult
of the command