/bossbar
Create and control the colorful bar at the top of the screen.
Overview
What is the /bossbar command?
The /bossbar command creates and controls custom boss bars — the coloured bar across the top of the screen. You can set the title, colour, style, max and current value, and choose which players see it.
It's perfect for timers, progress meters, health bars for custom bosses, and event countdowns.
When to use it: Use /bossbar to show a custom bar for timers, progress, or boss health to selected players.
At a glance
Syntax
/bossbar add <id> <name>See it
What it does
☠ Boss Fight
Anatomy
Every part, explained
- 1
CommandRequired/bossbarManages custom boss bars.
- 2
ActionRequiredaddUse add, set, remove, or list.
- 3
IDRequired<id>A unique name like mypack:fight.
- 4
Display nameRequired<name>JSON text shown on the bar.
Your turn
Try it yourself
Copy & paste
Examples
/bossbar add fight {"text":"Boss Fight"}Create a new boss bar.
/bossbar set fight color redTurn the bar red.
/bossbar set fight players @aShow it to everyone.
Avoid these
Common mistakes
/bossbar add {"text":"Boss"}/bossbar add fight {"text":"Boss"}You must give the bar an ID first.
/bossbar fight add/bossbar add fight {"text":"Boss"}The action comes before the ID.
Good to know
Frequently asked questions
- How do you create a boss bar with a command?
- Run /bossbar add <id> <name>, then /bossbar set <id> players @a to show it, and adjust value/max as needed.
- How do you change a boss bar's value?
- Use /bossbar set <id> value <n> and /bossbar set <id> max <n>; the bar fills to value/max.
- How do you remove a boss bar?
- Run /bossbar remove <id> to delete it for everyone.
Keep going