/bossbar Generator for Minecraft

You can see the version in the launcher and in the bottom-left corner of the game's main menu

A boss bar is the bar with a name at the top of the screen, like the Ender Dragon's or the Wither's. Set its text, colour and fill, and the /bossbar commands appear below step by step.



Boss bar appearance
Any word in Latin letters without spaces, like boss. The commands below use it to find this boss bar
Distance to targets
The bar appears at the top of these players' screens
Step 1. Creating the boss bar
26 characters
Step 2. Showing the boss bar to the chosen player
34 characters
Step 3. Setting how full the boss bar is
33 characters

How to use the command in game

  1. 1
    Turn on commands

    In a single-player world, press Esc, choose "Open to LAN", turn on "Allow Commands" (called "Allow Cheats" in older versions) and click "Start LAN World". On a server, only an operator (op) can run commands.

  2. 2
    Paste the command into the chat

    Copy the command with the button above. In game, press T, paste it with Ctrl+V and press Enter.

  3. 3
    Long command? Use a command block

    The chat fits up to 256 characters. For a longer command, get a command block with /give @p command_block (you need Creative Mode), place it and right-click it. Paste the command into the top field, click "Done", put a lever next to the block and switch it on.

Description

The /bossbar command shows a bar at the top of the screen, like the Ender Dragon's or the Wither's, but with your own text. Pick the colour, the bar style and how full it is, and the editor lists the commands in the order you need to enter them. You can configure:

Bar colour. Seven options to choose from. White is the default.

Bar style. Five styles, differing in how many segments divide the bar. The plain progress style is the default.

Fill. A number from 0 to 100 setting how full the bar appears. It starts completely full.

Bar ID. The bar's unique identifier — the handle you use to change its style, colour and fill later.

Bar name

  • Text formatting: bold, italic, underlined, strikethrough and obfuscated (magic) text. Combine them freely to build your own look.

  • Special characters. Insert the special characters Minecraft supports directly into your text.

  • Minecraft colours and the hex colours added in 1.16. The palette offers three colour models — RGB, HSV and hex. Select some text, pick a colour, and the editor converts it into the form the game expects.

  • Gradients. Add, move and recolour the gradient's key points, or remove the ones you do not need. The text updates as you change the settings, so it is easy to land on the look you want.

  • Keybind. A dynamic element that is replaced with the name of the key bound to the action you choose. It follows each player's own control settings and language.

  • Selector. A dynamic element that is replaced with the entities matching the selector you choose. When several entities match and the selector sets no target limit, their names are joined by a separator you can change.

  • Translatable text. A dynamic element that is replaced with a localised string looked up by key in the game's language files or in a resource pack. You can supply fallback text to use when no translation exists for the key.

  • Preview. Replaces every dynamic element with a plausible value, so you can see the bar's name roughly as players will.

Templates

Save your work as a template to load, reuse or edit later. Templates live in your browser's storage and are completely private — clearing the site's data removes all of them.

Worth knowing

One of the generated commands can be too long to type into chat, which is limited to 256 characters (100 before 1.11). For anything longer, paste the command into a command block and power it with a lever or button. Note that the @s selector does not work in command blocks — swap it for another selector so the command behaves.

How do you create a boss bar in Minecraft?

The bar under the top of the screen is not one command but a set: /bossbar add creates a bar with an id, /bossbar set gives it a name, colour, segment style, maximum and current value, and players decides who sees it. You have to carry that id through every line, and that is usually where people get lost. The generator above assembles the whole sequence: set up how the bar looks and take the finished set of commands.

Other tools in this category