Command Reference
Minecraft /bossbar Command
developerJava Only
Creates and modifies custom boss health bars at the top of the screen (e.g. for custom boss fights).
Version Compatibility
Java Edition:1.21.4 (1.13+)
Command Syntax
Java Edition
/bossbar add <id> <name> | /bossbar set <id> <option> <value> | /bossbar remove <id>Arguments Explained
actionadd / set / get / list / removeRequiredModify, show, or delete boss bars.
idResource IDRequiredUnique namespace ID for the custom boss bar.
nameJSON TextDisplay name of the boss bar (e.g. {"text":"King Slime"}).
Practical Examples
/bossbar add raid_tracker "Raid Defense"Creates a custom boss bar with the display title "Raid Defense".
/bossbar set raid_tracker players @aMakes the boss bar visible to all online players.
/bossbar set raid_tracker value 50Sets the fill amount of the boss bar to 50%.
Important Notes
Java exclusive. Great for mapmakers looking to add custom HUD overlays without installing mods.
Ready to build your command?
Use our interactive generator to create error-free /bossbar commands with a visual interface.
Open Command Generator