Skip to content
/SLASHPLAY

How to make a custom boss bar in Minecraft

Type /bossbar add event "Event ends soon" in chat as an operator, then /bossbar set event players @a to show the bar to everyone.

bossbar

Creates and controls custom boss bars at the top of the screen, for timers, events or progress displays.

/bossbar <add <id> <name>|set <id> <property> <value>|get <id> <property>|remove <id>|list>

Examples

/bossbar add event {"text":"Event ends soon","color":"gold"}

Creates a bar called event.

/bossbar set event players @a

Shows it to everyone online.

/bossbar set event value 50

Fills it halfway.

Arguments

idOptional
Bar ID, for example event or mymap:timer.
nameOptional
Text component shown on the bar, for add.
propertyOptional
color, max, name, players, style, value or visible.

What it does

A new bar is hidden from everyone until you add players with set <id> players. Each bar has a value and a max (100 by default), a color, a style (progress or notched_6, notched_10, notched_12, notched_20) and a visibility flag. Combine it with execute store result bossbar to drive it from scores.

Good to know

  • Needs operator permission level 2.

Run it on your server

On a SLASHPLAY server, type it in the Console tab without the leading slash; in game, operators type it in chat with the slash. New to this? Start a Minecraft server first.

Your own
Minecraft server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.