News
Game
Guides
Downloads
Versions
/bossbar
COMMANDS CHAT & DISPLAY CHEATS · LEVEL 2 5 SUBCOMMANDS Added in 1.14 or earlier

/bossbar command in Minecraft

/bossbar creates a bar at the top of the screen, like the one of a boss fight, and sets its name, color, style, value and players. Map makers use it for timers, progress bars, capture points and boss fights built with commands.

Syntax

/bossbar add <id> <name>
/bossbar get <id> (max|players|value|visible)
/bossbar list
/bossbar remove <id>
/bossbar set <id> (color|max|name|players|style|value|visible)
All 25 forms
  • /bossbar add <id> <name>
  • /bossbar get <id> max
  • /bossbar get <id> players
  • /bossbar get <id> value
  • /bossbar get <id> visible
  • /bossbar list
  • /bossbar remove <id>
  • /bossbar set <id> color blue
  • /bossbar set <id> color green
  • /bossbar set <id> color pink
  • /bossbar set <id> color purple
  • /bossbar set <id> color red
  • /bossbar set <id> color white
  • /bossbar set <id> color yellow
  • /bossbar set <id> max <max>
  • /bossbar set <id> name <name>
  • /bossbar set <id> players
  • /bossbar set <id> players <targets>
  • /bossbar set <id> style notched_10
  • /bossbar set <id> style notched_12
  • /bossbar set <id> style notched_20
  • /bossbar set <id> style notched_6
  • /bossbar set <id> style progress
  • /bossbar set <id> value <value>
  • /bossbar set <id> visible <visible>
/bossbar add
/bossbar add <id> <name>
ArgumentExpectsWhat it does
idResource IDUnique ID of the bar, such as blockaria:timer. Without a namespace, minecraft: is added.
nameJSON textJSON text shown above the bar, for example "Time left" or {"text":"Boss","color":"red"}.
/bossbar get
/bossbar get <id> (max|players|value|visible)
ArgumentExpectsWhat it does
idResource IDUnique ID of the bar, such as blockaria:timer. Without a namespace, minecraft: is added.
All 4 forms
  • /bossbar get <id> max
  • /bossbar get <id> players
  • /bossbar get <id> value
  • /bossbar get <id> visible
/bossbar list
/bossbar list
/bossbar remove
/bossbar remove <id>
ArgumentExpectsWhat it does
idResource IDUnique ID of the bar, such as blockaria:timer. Without a namespace, minecraft: is added.
/bossbar set
/bossbar set <id> (color|max|name|players|style|value|visible)
ArgumentExpectsWhat it does
idResource IDUnique ID of the bar, such as blockaria:timer. Without a namespace, minecraft: is added.
maxWhole numberat least 1Highest value of the bar, 1 or more. A new bar uses 100.
nameJSON textJSON text shown above the bar, for example "Time left" or {"text":"Boss","color":"red"}.
targetsoptionalPlayer selectorone or severalPlayers who see the bar, like @a. Leave it out to remove every player from the bar.
valueWhole numberat least 0Current filling, from 0 up to the maximum. Often copied from a score with /execute store.
visibletrue / falsetrue shows the bar to its players, false hides it without deleting it.
All 18 forms
  • /bossbar set <id> color blue
  • /bossbar set <id> color green
  • /bossbar set <id> color pink
  • /bossbar set <id> color purple
  • /bossbar set <id> color red
  • /bossbar set <id> color white
  • /bossbar set <id> color yellow
  • /bossbar set <id> max <max>
  • /bossbar set <id> name <name>
  • /bossbar set <id> players
  • /bossbar set <id> players <targets>
  • /bossbar set <id> style notched_10
  • /bossbar set <id> style notched_12
  • /bossbar set <id> style notched_20
  • /bossbar set <id> style notched_6
  • /bossbar set <id> style progress
  • /bossbar set <id> value <value>
  • /bossbar set <id> visible <visible>

Examples

Create a timer bar

/bossbar add blockaria:timer "Time left"

Creates a bar named Time left. Nobody sees it yet.

Java 26.3

Show it to all players

/bossbar set blockaria:timer players @a

Every online player now sees the bar at the top of the screen.

Java 26.3

Set a five minute scale

/bossbar set blockaria:timer max 300

With one point per second, the full bar now stands for five minutes.

Java 26.3

Fill the bar

/bossbar set blockaria:timer value 120

The bar is filled to 120 out of 300, so 40 percent.

Java 26.3

Turn it red

/bossbar set blockaria:timer color red

A red bar signals that time is running out.

Java 26.3

Split it into segments

/bossbar set blockaria:timer style notched_10

The notched_10 style divides the bar into 10 segments, easier to read at a glance.

Java 26.3

Read the current value

/bossbar get blockaria:timer value

Shows the value in chat and returns it to /execute store.

Java 26.3

Remove the bar

/bossbar remove blockaria:timer

Deletes the bar for every player.

Java 26.3
Build your command

Fill in the fields, then copy the command.

Command generator

From creation to display

A new bar stays invisible until you assign players. The usual order is bossbar add blockaria:timer "Time left", then bossbar set blockaria:timer players @a. A new bar starts at a value of 0 out of 100, in white, with the progress style. Change max and value to fill it, and color or style for the look, like the bars of the Wither or the Ender Dragon. Custom bars are saved with the world and come back after a restart.

Linking a bar to a score

A bar does not update by itself. Copy a score into it with /execute: execute store result bossbar blockaria:timer value run scoreboard players get Timer countdown. Run this every tick from a /function or a Repeating Command Block, and the bar follows the /scoreboard value. bossbar get returns the value, maximum, player count or visibility, which you can store too.

Common errors

  • A bossbar already exists with the ID: choose another ID or remove the old bar.
  • No bossbar exists with the ID: check the namespace, timer means minecraft:timer.
  • Players who join later only see the bar once you run set players again with a selector that includes them.

✓ Checked in Java Edition 26.3 · updated 2 November 2026

/bossbar: FAQ

Why can I not see my boss bar?

A bar only shows to the players you assign. Run /bossbar set blockaria:timer players @a, with your own ID, and check that visible is set to true.

How do I delete a boss bar?

Run /bossbar remove followed by its ID, for example /bossbar remove blockaria:timer. /bossbar list shows the IDs of all custom bars.

How do I use /bossbar?

Type it in the chat with cheats on: /bossbar add <id> <name>.

Who can use /bossbar?

Cheats on, or operator level 2.

Related commands