Discord

Minecraft /bossbar generator: create custom progress bars

Boss bars are the bars at the top of the screen that normally show up only during fights with the Ender Dragon and the Wither. In Java Edition, the /bossbar command lets you create custom boss bars with any text, color, style and value. Our boss bar generator lets you set every parameter visually, see a live preview and copy the finished commands into the game.

Boss bars are a useful tool for adventure map makers, server admins and minigame organizers. You can use them as round timers, health bars for custom bosses, quest progress indicators, or even colorful info banners that every player can see. Combined with command blocks and a scoreboard, boss bars become a dynamic part of the interface that updates in real time.

1ID and name

Unique identifier, e.g. custom:boss_dragon, minigame:timer
Name color preview

2Bar color

3Bar style

4Values and visibility

Defaults to 100. Sets the full length of the bar.
0 = empty bar, 100 = full bar.

5Assign to players

6Live preview

In-game boss bar preview
My Boss Bar

7Generated commands

Create boss bar
/bossbar add custom:my_bar {"text":"My Boss Bar"}
Set name
/bossbar set custom:my_bar name {"text":"My Boss Bar"}
Set color
/bossbar set custom:my_bar color purple
Set style
/bossbar set custom:my_bar style progress
Set max value
/bossbar set custom:my_bar max 100
Set value
/bossbar set custom:my_bar value 100
Assign to players
/bossbar set custom:my_bar players @a
Visibility
/bossbar set custom:my_bar visible true
Paste the commands into Minecraft Java Edition chat one by one. Requires operator permissions or a command block. Boss bars only work in Java Edition: Bedrock Edition does not support the /bossbar command.

How the /bossbar command works

Boss bars in Minecraft Java Edition are controlled by a handful of subcommands. Every boss bar has a unique ID in the format namespace:name, so you never mix it up with another one. Here is the full list of subcommands:

Boss bar colors: all 7 options

Minecraft offers seven boss bar colors. A color only changes how the bar looks, not how it works. The colors are:

You can change a boss bar's color during the game with /bossbar set <id> color <color>. It is handy for switching from green to red when a boss's health drops below 30%, for example.

Boss bar styles: how the bar is segmented

A boss bar's style defines how the bar is visually divided:

Segmentation is purely visual and does not affect the value or behavior of the boss bar. For example, you can have a boss bar with a max of 1000 and the notched_10 style, and each segment will stand for 100 units of value.

Boss bar name: JSON formatting

A boss bar's name uses the JSON text component format, the same one used by /tellraw and /title. The simplest form is an object with a text field:

{"text":"Ender Dragon","color":"red","bold":true}

You can use the 16 Minecraft colors (dark_red, red, gold, yellow, dark_green, green, aqua, dark_aqua, dark_blue, blue, light_purple, dark_purple, white, gray, dark_gray, black), as well as these styles: bold, italic, underlined, strikethrough and obfuscated (random scrambled characters).

Our generator automatically builds a correct JSON object with the text color you pick, so you do not have to write the JSON by hand.

Practical uses for boss bars

Countdown timer for minigames

The most popular use for custom boss bars is timers. Create a boss bar with max = the time in seconds, then lower the value by 1 every second (with a repeating command block or a data pack). Players see how much time is left, and you can switch the color from green to yellow (below 50%) and red (below 20%) for extra tension.

Health bar for a custom boss

If you make your own boss with /summon and want it to have a health bar like a real boss, create a boss bar with max = the boss's health points. Then use /execute store to read the mob's current HP and write it into the boss bar's value. The result: players see a health bar that shrinks with every hit.

Quest progress indicator

On adventure maps, a boss bar can show quest progress. For example, "3/10 diamonds collected": set max to 10 and update the value each time a player breaks a diamond block (detected through a scoreboard). The boss bar's name updates dynamically from a JSON text component tied to the scoreboard.

Info banner on a server

Some servers use boss bars as permanent info banners. For example, a white boss bar at 100/100 with the name "Welcome to the server - /spawn /shop /help". The boss bar is always visible and needs no interaction from the player. Segmented styles (notched_6, notched_10) add a decorative division.

Zone warnings: PvP, safe, warzone

When a player enters a PvP zone (detected by position with execute), you can show a red boss bar saying "PvP zone - watch out!" and hide it when the player leaves the zone. That is clearer than a chat message, because the boss bar stays visible at the top of the screen the whole time.

Boss bars and Bedrock Edition

The /bossbar command is only available in Java Edition. Bedrock Edition (Windows, consoles, mobile) does not support custom boss bars. The only way to show a boss bar in Bedrock is to summon a real boss (Wither, Ender Dragon) or to use an add-on with a custom entity type. Some Bedrock adventure maps use a hidden Wither (for example in the void below Y=-64) as a "fake" boss bar, but that is a hack with many limitations.

Advanced boss bar techniques

Dynamic name updates

The /bossbar set <id> name command updates the text in real time. Combined with /execute store and a scoreboard, you can display changing values, e.g. "Time: 45s", where 45 counts down every second. This needs a data pack or a chain of command blocks, but the result looks professional.

Conditional display

Use /bossbar set <id> visible false and true together with /execute if so the boss bar only shows up under certain conditions, e.g. only at night, only in the Nether, only during a boss fight. That avoids having too many bars on screen.

Changing color based on value

You can change a boss bar's color dynamically based on its value. In a data pack: if value > 50, color = green; if value > 20, color = yellow; if value <= 20, color = red. This gives players visual feedback without making them read numbers.

Limits and best practices

Frequently asked questions

How do I create a boss bar in Minecraft?

Use the command /bossbar add <id> <name>. For example, /bossbar add custom:timer {"text":"Time left"} creates a boss bar with the given ID and name. Then set the color, style and value and assign it to players with /bossbar set commands.

Do boss bars work in Bedrock Edition?

No, the /bossbar command is only available in Java Edition. In Bedrock Edition, the only ways to show a boss bar are to summon a boss (Wither, Ender Dragon) or to use an add-on. There is no native command for creating custom boss bars.

How do I remove a boss bar?

Use the command /bossbar remove <id>. For example, /bossbar remove custom:my_bar permanently deletes the boss bar from the game. To only hide it (without deleting it), use /bossbar set <id> visible false. You can switch it back on later.

How many boss bar colors are there?

Minecraft Java Edition offers 7 boss bar colors: pink, blue, red, green, yellow, purple and white. The default color is white. You change the color with /bossbar set <id> color <color>.

What do the boss bar styles (notched) mean?

A boss bar's style defines how the bar is segmented. The available styles are progress (solid, no divisions), notched_6 (6 segments), notched_10 (10), notched_12 (12) and notched_20 (20). Segments are visual divisions of the bar, useful for showing boss fight phases, timer stages or quest progress.

How do I change a boss bar's value during the game?

Use the command /bossbar set <id> value <value>. You can combine it with a command block and a redstone clock to update the value automatically every tick.

Can I show several boss bars at once?

Yes, you can have several boss bars active at the same time. Each one needs a unique ID. Boss bars are displayed one under another at the top of the screen. In practice, more than 3-4 bars can block your view, so it is worth limiting their number.

How do I give a boss bar a colored name?

A boss bar's name uses the JSON text component format. Instead of plain text, give a JSON object with a color field, e.g. {"text":"Dragon","color":"red"}. You can also combine colors and styles (bold, italic) in an extra array. Our generator automatically builds the correct JSON format with the color you pick.

Related tools and guides