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.

What is /bossbar used for?

What /bossbar is for

Creates custom boss bars at the top of the screen and updates their text, color, style, value, max, and visibility.

When to use /bossbar

Show timers, progress, or objectives in maps and minigames — commonly driven live by a /scoreboard value.

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.

Command builder

Fill in the options below to generate a ready-to-paste /bossbar command.

add / get / list / remove / set.

optional

Bar ID, e.g. mypack:timer.

optional

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.