/bossbar add minecraft:my_bar "My Bossbar"The /bossbar command creates and controls the boss bars at the top of the screen. Each bar has a unique ID and persists across restarts until you remove it.
The /bossbar command creates and controls the horizontal progress bars at the top of the screen, the same kind shown during the Ender Dragon and Wither fights. This generator builds the syntax to add, modify, query, and remove your own custom boss bars.
Each bossbar has a unique namespaced ID like minecraft:my_bar, a display name (JSON text with colors and formatting), a current value, a max value, a visibility state, and a player list. You can stack several at once, and they appear vertically from the top of the screen.
There are 7 colors (pink, blue, red, green, yellow, purple, white) and 5 styles: a solid progress bar or one segmented into 6, 10, 12, or 20 notches. Every property can be changed after creation with /bossbar set.
| Property | Options | Description |
|---|---|---|
| name | JSON text | Display name shown on the bar. Supports colors and formatting. |
| color | pink, blue, red, green, yellow, purple, white | Bar fill color. Default is white. |
| style | progress, notched_6, notched_10, notched_12, notched_20 | Bar segmentation. progress is a solid bar. |
| value | integer | Current fill level of the bar. |
| max | integer | Maximum value that fills the bar. Default is 100. |
| visible | true / false | Whether the bar is currently shown to players. |
| players | selector / player names | Which players can see this bossbar. |
Tie a bar to live data: use /execute store result bossbar <id> value run ... in a repeating command block to track a scoreboard or mob health, so the bar fills and empties on its own.
A bossbar is a horizontal progress bar shown at the top of the screen, like the one during the Ender Dragon or Wither fight. With /bossbar commands you can create custom versions with any name, color, style, and value for maps, minigames, or server displays.
There are 7 colors: pink, blue, red, green, yellow, purple, and white. Each color applies to the whole bar. The bar can also use 5 styles: progress (solid), notched_6, notched_10, notched_12, and notched_20, which divide it into segments.
Yes. Minecraft stacks multiple bossbars vertically at the top of the screen. Each one has its own unique ID, so you can create, modify, and remove them independently. This is common for multi-objective minigames or several status indicators at once.
Use /bossbar remove <id> to delete a bossbar permanently. To hide it without deleting, use /bossbar set <id> visible false, then show it again later with visible true. To hide it from specific players, change the list with /bossbar set <id> players <targets>.
Yes. Once created, a bossbar exists until you explicitly remove it with /bossbar remove. It survives server restarts and world reloads, so set it up once and update only its value or visibility as needed.
Browse more Minecraft tools: