/bossbar

Jump to navigation Jump to search
BlockSprite rose.png: Sprite image for rose in Minecraft
This page describes content that exists only in outdated versions of Minecraft.
 
This feature was present in earlier versions of the game but has since been removed.
This feature is exclusive to Bedrock Edition.
 
/bossbar
Permission level
required

Unknown

Restrictions

None

Creates and modifies boss bars.

Syntax[edit | edit source]

bossbar . . .
  • ... add <id: string> <name: json>
  • ... get <id: string> <max|players|value|visible>
  • ... list
  • ... remove <id: string>
  • ... set <id: string> . . .
    • ... color <color: BossbarColor>
    • ... max <max: int>
    • ... name <name: json>
    • ... players <players: target>
    • ... value <value: int>
    • ... visible <visible: Boolean>

Arguments[edit | edit source]

id: string: basic_string

Must be a string. And it must be a single word that has no space or a double-quoted string (When quoted, \ can be used to escape characters).

name: json: Json::Value

It must be a JSON [NBT Compound / JSON Object]Object.

color: BossbarColor: enum

Must be a string. And it must be a single word that has no space or a double-quoted string (When quoted, \ can be used to escape characters).

max: int: int

Must be a [Int]32-bit integer number (from -2147483648 (-231) to 2147483647 (231-1) ).

players: target: CommandSelector<Player>

Must be a player name or a target selector.

value: int: int

Must be a [Int]32-bit integer number (from -2147483648 (-231) to 2147483647 (231-1) ).

visible: Boolean: enum

Must be a [Boolean]Boolean (either true or false).

Result[edit | edit source]

This section of the article is empty.
 
You can help by expanding it.

History[edit | edit source]

This section of the article is empty.
 
You can help by expanding it.

Navigation[edit | edit source]