Minecraft:Commands/bossbar: Difference between revisions
From SAS Gaming Wiki
More actions
imported>Aed8814 m →History: This page is about the command, so the history should be about the command too. |
Remove broken links to missing pages |
||
| Line 9: | Line 9: | ||
== Syntax == | == Syntax == | ||
:<code>bossbar add <id> <name></code> | :<code>bossbar add <id> <name></code> | ||
::Create a new bossbar (stored in | ::Create a new bossbar (stored in level.dat <code>CustomBossEvents</code>). | ||
:<code>bossbar get <id> (max|players|value|visible)</code> | :<code>bossbar get <id> (max|players|value|visible)</code> | ||
::Return the requested setting as a <code>result</code> of the command. | ::Return the requested setting as a <code>result</code> of the command. | ||
| Line 88: | Line 88: | ||
{{Navbox commands}} | {{Navbox commands}} | ||
de:Befehl/bossbar | |||
es:Comandos/bossbar | |||
ja:コマンド/bossbar | |||
pt:Comandos/bossbar | |||
ru:Команды консоли/bossbar | |||
uk:Команди консолі/bossbar | |||
zh:命令/bossbar | |||
Revision as of 15:43, 9 April 2026
|
For the {{{Description}}} of the same name, see [[{{{Destination}}}]]. |
Template:Exclusive Template:Infobox command Creates, modifies and lists bossbars.
Syntax
bossbar add <id> <name>- Create a new bossbar (stored in level.dat
CustomBossEvents).
- Create a new bossbar (stored in level.dat
bossbar get <id> (max|players|value|visible)- Return the requested setting as a
resultof the command.
- Return the requested setting as a
bossbar list- Display a list of existing bossbars.
bossbar remove <id>- Remove an existing bossbar.
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
whiteupon creation.
- Set the text color (if no color was specified as part of a text component) and bar color. Defaults to
... max <max>- Set the bossbar's maximum value. Defaults to
100upon creation.
- Set the bossbar's maximum value. Defaults to
... name <name>- Set the bossbar's name.
... players [<targets>]- Change the set of players to whom the bar is visible. Defaults to none upon creation.
... style (notched_6|notched_10|notched_12|notched_20|progress)- Set the bossbar's visual amount of segments: continuous, 6 segments, 10 segments, 12 segments, or 20 segments. Defaults to
progressupon creation.
- Set the bossbar's visual amount of segments: continuous, 6 segments, 10 segments, 12 segments, or 20 segments. Defaults to
... value <value>- Set the bossbar's current value. Defaults to
0upon creation.
- Set the bossbar's current value. Defaults to
... visible <visible>- Set the bossbar's visibility. Defaults to
trueupon creation.
- Set the bossbar's visibility. Defaults to
Arguments
- Specifies a unique bossbar.
- Template:Arg desc
- Specifies the display name of the bossbar.
- Template:Arg desc
- Specifies the bossbar's maximum value.
- Template:Arg desc
- Specifies the set of players to whom the bar is visible.
- If not specified, the boss bar is invisible to any player.
- Template:Arg desc
- Specifies the bossbar's current value.
- Template:Arg desc
- Specifies the bossbar's visibility.
- Template:Arg desc
Result
Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table
Output
Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table
History
de:Befehl/bossbar es:Comandos/bossbar ja:コマンド/bossbar pt:Comandos/bossbar ru:Команды консоли/bossbar uk:Команди консолі/bossbar zh:命令/bossbar