Minecraft /bossbar command
Creates a bar like the Ender Dragon's; you set its name, color and fill.
Syntax
/bossbar add <id> <name>
/bossbar set <id> (name|color|style|value|max|players|visible) <value>
/bossbar remove <id>
/bossbar get <id> (value|max|players|visible)
Parts in square brackets are optional, parts in angle brackets are required. You do not type the brackets: Put your own value in their place.
Arguments
| Argument | What it does |
|---|---|
| <id> | A namespaced ID, for example og:timer. |
| value / max | The bar's fill and its maximum. |
Examples
/bossbar add og:timer {"text":"Time left"}
Creates a new bar.
/bossbar set og:timer players @a
Shows the bar to everyone.
/bossbar set og:timer value 30
Sets the fill to 30.
Good to know
- Often used on countdown, event and minigame maps.
- If the player list is empty, nobody sees the bar.
How do I run this command?
Press T in game to open chat (or press / directly), type the command and press Enter. While typing, Tab completes the options. This command counts as a cheat: It needs cheats enabled in a singleplayer world, and operator permission on a server (operator (level 2)).
Related commands
🧱 More Blocks and structures
Minecraft is a product of Mojang Studios. This tool is an independent helper made for players and is not affiliated with Mojang or Microsoft.