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
2Bar color
3Bar style
4Values and visibility
5Assign to players
6Live preview
7Generated commands
/bossbar add custom:my_bar {"text":"My Boss Bar"}/bossbar set custom:my_bar name {"text":"My Boss Bar"}/bossbar set custom:my_bar color purple/bossbar set custom:my_bar style progress/bossbar set custom:my_bar max 100/bossbar set custom:my_bar value 100/bossbar set custom:my_bar players @a/bossbar set custom:my_bar visible trueHow 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:
- /bossbar add <id> <name> - creates a new boss bar with the given ID and display name (JSON format).
- /bossbar set <id> name <name> - changes the display name of an existing boss bar.
- /bossbar set <id> color <color> - changes the color of the bar (7 colors available).
- /bossbar set <id> style <style> - changes the style (solid or segmented).
- /bossbar set <id> max <value> - sets the maximum value (100 by default).
- /bossbar set <id> value <value> - sets the current value (how full the bar is).
- /bossbar set <id> players <selector> - assigns the boss bar to players (who gets to see it).
- /bossbar set <id> visible true/false - turns visibility on or off.
- /bossbar remove <id> - permanently deletes the boss bar.
- /bossbar list - lists all registered boss bars.
- /bossbar get <id> value/max/players/visible - reads the current value.
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:
- pink - the default color of the Ender Dragon's bar. Bright and easy to see.
- blue - muted, fits water themes and calm timers.
- red - aggressive, ideal for boss health bars and warnings.
- green - positive, good for quest progress bars and regeneration.
- yellow - cautionary, fits countdown timers and danger zones.
- purple - the default color of the Wither's bar. Dark and mysterious.
- white - neutral, the default color of newly created boss bars.
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:
- progress - a solid bar with no divisions. The simplest and most commonly used style.
- notched_6 - 6 segments. Ideal for showing 6 phases of a boss fight or 6 rounds of a minigame.
- notched_10 - 10 segments. Good for showing progress as a percentage (each segment = 10%).
- notched_12 - 12 segments. Fits hourly timers (each segment = 5 minutes of the hour) or monthly ones.
- notched_20 - 20 segments. The finest division: each segment = 5% of the bar. Useful for precise indicators.
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
- Don't overdo the number: Technically there is no limit on boss bars, but more than 3-4 at once blocks the view and annoys players.
- Use readable names: Short, descriptive names (30-40 characters max) work best. Text that is too long gets cut off on smaller screens.
- Remove unused ones: Run
/bossbar removeonce an event is over. Forgotten boss bars use (a tiny amount of) server memory and clutter the list. - Test at different resolutions: Boss bars look different on 1080p and 4K screens. Make sure the text is readable.
- Namespace: Use a namespace that matches your project (e.g.
my_map:timer) to avoid ID collisions with other data packs.
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
- All online minecraft.pl tools
- /effect command generator - status effects
- /give command generator - giving items
- /summon command generator - summoning mobs
- /execute command generator - advanced command chains
- Minecraft commands and cheats - full list of commands
- Redstone guide - mechanisms and automation
- Mob encyclopedia - every entity in the game