🩸
Fun
/bossbar
Create and control the colorful bar at the top of the screen.
At a glance
Syntax
Syntax
/bossbar add <id> <name>commandtargetcoordsvaluerequiredoptional
See it
What it does
☠ Boss Fight
A boss bar tracks progress
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
Playground
5 tokens · press Enter to run
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.
Keep going