/bossbar

Cheats / op 2Java 26.3

Creates and edits custom boss bars at the top of the screen. Its basic form is /bossbar add <id> <name>; it has 25 syntax forms and 6 arguments. Permission: Cheats / op 2.

Who can use it
Cheats / op 2
Syntax forms
25
Arguments
6

/bossbar syntax

Game data

Every form the game accepts. Words in <angle brackets> are arguments you fill in; everything else is typed as is.

/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 examples

Ready-to-paste examples (cheats on). @s is you, @p the nearest player, @a everyone, @e every entity.

/bossbar add metabot:raid "Raid"
Creates a boss bar titled "Raid".
/bossbar set metabot:raid players @a
Shows it to every player.
/bossbar remove metabot:raid
Removes the boss bar.

/bossbar arguments

What each argument expects, with the limits the game enforces.

/bossbar arguments
ArgumentExpectsLimits
<id>Namespaced ID (minecraft:…)—
<name>JSON text component—
<max>Whole numberat least 1
<targets>Target selector or player name (@s, @p, @a, @e, @r)players only · one or more
<value>Whole numberat least 0
<visible>true or false—

Other commands

Data: Minecraft Java Edition 26.3 game files. How we source this

Creates and edits custom boss bars at the top of the screen. It has 25 syntax forms and can be run by: Cheats / op 2.

See Also

🔍

Help us maintain accuracy! If you notice incorrect stats, missing data, or any issues, your feedback directly improves the quality of our data for the entire community.

Report an Issue

/bossbar FAQ (Java 26.3)

What does /bossbar do in Minecraft?

Creates and edits custom boss bars at the top of the screen.

What is the syntax of /bossbar?

The basic form is /bossbar add <id> <name>. All forms are listed above.

What is an example of /bossbar?

/bossbar add metabot:raid "Raid" — Creates a boss bar titled "Raid".

Do you need cheats for /bossbar?

Yes: Cheats / op 2. In singleplayer turn on Allow Cheats (or open to LAN with cheats).