/bossbar
Creates and manages custom boss bars displayed at the top of players' screens. Boss bars can show progress, notifications, and custom messages.
Syntax
/bossbar <add|get|list|remove|set> ...Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| action | literal | Required | add = create; get = query value; list = show all; remove = delete; set = modify properties. |
| id | resource | Optional | The boss bar ID (namespaced, e.g., my_pack:my_bar). |
| arguments | various | Optional | Varies by action. For set: color, max, name, players, style, value, visible. |
Examples
/bossbar add my_server:timer {"text":"Event Timer","color":"gold"}Creates a new boss bar with the ID "my_server:timer" and gold-colored text.
/bossbar set my_server:timer players @aShows the timer boss bar to all players.
/bossbar set my_server:timer value 75Sets the boss bar's current value to 75 (out of max).
Common Mistakes
- Forgetting to set 'players', a new boss bar is not visible until players are assigned.
- Not setting 'max' before 'value', the default max is 100 but if your scale differs, set max first.
Notes
Boss bar properties: name (display text), color (pink/blue/red/green/yellow/purple/white), style (progress/notched_6/notched_10/notched_12/notched_20), max, value, visible, players. Boss bars persist across server restarts.
Related Commands
Need a Minecraft server?
Try these commands on Astroworld or host your own server.
Try Astroworld Hosting