Create Custom Bossbars with a Live Preview
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 bossbars.
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.
Live Preview
See the exact bar color, notch divisions, and text formatting in real time as you edit, matching the in-game HUD at the top of the screen.
Visual Target Selector
Choose players by gamemode, distance, experience level, coordinates, tags, teams, or scoreboard objectives without memorizing selector syntax.
Bossbar Properties
name - JSON text component: the display name shown on the bar. Supports colors and formatting.
color - pink, blue, red, green, yellow, purple, or white: the bar fill color. Default is white.
style - progress, notched_6, notched_10, notched_12, or notched_20: how the bar is segmented. progress is a solid bar.
value and max - integers: the current fill level and the maximum that fills the bar. Max defaults to 100.
visible - true or false: whether the bar is currently shown to players.
players - a selector or 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.
How to use this tool
- Give the bossbar a unique ID and a display name.
- Choose the bar color, notch style, and current value.
- Select which players see the bar with the target selector.
- Copy the generated commands into chat, a command block, or a function file.
Bossbar FAQ
What is a bossbar in Minecraft?
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.
How many bossbar colors are available in Minecraft?
There are 7 colors: pink, blue, red, green, yellow, purple, and white. The bar can also use 5 styles: progress (solid), notched_6, notched_10, notched_12, and notched_20, which divide it into segments.
Can you have multiple bossbars at the same time in Minecraft?
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.
How do I remove a bossbar?
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.
Why can't I see the bossbar in game?
A bossbar is invisible until players are assigned to it. Generate the Update Players command with a selector like @a and make sure Visibility is set to True.
Do bossbars persist after a server restart?
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.