Create and Customize Boss Bars on Screen
The /bossbar command lets you create and manage custom boss bars at the top of the screen in Minecraft Java Edition. You can control the bar's text, color, segmented style, maximum value, and current fill level.
Map makers and server operators use this command to display custom boss health, countdown timers, quest progress, or server announcements to specific players.
/bossbar add <id> <name>/bossbar get <id> max/bossbar get <id> players/bossbar get <id> value/bossbar get <id> visible/bossbar list/bossbar remove <id>/bossbar set <id> color blue/bossbar set <id> color green/bossbar set <id> color pink/bossbar set <id> color purple/bossbar set <id> color red/bossbar set <id> color white/bossbar set <id> color yellow/bossbar set <id> max <max>/bossbar set <id> name <name>/bossbar set <id> players [<targets>]/bossbar set <id> style notched_10/bossbar set <id> style notched_12/bossbar set <id> style notched_20/bossbar set <id> style notched_6/bossbar set <id> style progress/bossbar set <id> value <value>/bossbar set <id> visible <visible>/bossbar add <id> <name>/bossbar set <id> players [<targets>]/bossbar set <id> value <value>/bossbar set <id> max <max>/bossbar set <id> visible <visible>/bossbar get <id> value/bossbar list/bossbar remove <id>| Argument | Type | What it means |
|---|---|---|
<id> | resource ID | A namespaced resource ID used to identify the boss bar, such as <code>custom:timer</code>. |
<name> | text component | A JSON or SNBT text component that sets the title shown above the bar, such as <code>{"text":"Hello","color":"gold"}</code>. |
<max> | whole number at least 1 | A whole number of at least 1 that defines the maximum capacity of the bar. |
<targets> | target selector players only | A player name, UUID, or target selector like <code>@a</code> or <code>@p</code> that selects which players see the bar. |
<value> | whole number at least 0 | A whole number of at least 0 that sets how much of the bar is currently filled. |
<visible> | true / false | A true or false setting that controls whether the bar is currently displayed on screen. |
/bossbar add custom:king {"text":"Skeleton King","color":"red"}Creates a new boss bar with the ID <code>custom:king</code> and a red title.
/bossbar set arena:wave players @aMakes the boss bar named <code>arena:wave</code> appear on the screen for all online players.
/bossbar set quest:mana color blueChanges the bar color of <code>quest:mana</code> to blue.
/bossbar set event:timer style notched_10Splits the <code>event:timer</code> boss bar into 10 visual segments.
/bossbar set dungeon:shield max 500Sets the maximum fill capacity of the <code>dungeon:shield</code> bar to 500.
/bossbar set raid:progress value 75Fills the <code>raid:progress</code> boss bar up to a value of 75.
/bossbar set lobby:news visible falseHides the <code>lobby:news</code> bar from the screen while keeping its settings and assigned players.
/bossbar remove temp:countdownDeletes the <code>temp:countdown</code> boss bar when it is no longer needed.
Measured from the game files of every Java release from 1.13 to 26.3.
Minecraft Bedrock Edition does not have the /bossbar command.
A newly created boss bar is invisible until you assign players to it using /bossbar set and make sure its visibility is set to true.
You need permission level 2, which means you must be a server operator or have cheats enabled in your single-player world.
The command has been available in Minecraft Java Edition since version 1.13.
/data/execute/function/random/return/schedule/scoreboard/tag/team/trigger