GameplayJava
/bossbar
Creates named boss bars at the top of the screen and updates their text, color, style (segments), value, max, and visibility. Commonly driven by a scoreboard value to show timers or progress in datapacks and minigames.
Syntax
Alternate forms:
Parameters
- action
- literal
- add / get / list / remove / set.
- idoptional
- namespaced ID
- Bar ID, e.g. mypack:timer.
- propertyoptional
- literal
- players, color, value, max, visible, name, style.
Examples
Create a boss bar.
Show it to all players.
Set the bar's filled value.
Permission level
/bossbar requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.