All commands
🩸
Fun

/bossbar

Create and control the colorful bar at the top of the screen.

Try in Simulator

At a glance

Syntax

Syntax
/bossbar add <id> <name>
commandtargetcoordsvaluerequiredoptional

See it

What it does

☠ Boss Fight

A boss bar tracks progress

Anatomy

Every part, explained

  1. 1
    /bossbarCommandRequired

    Manages custom boss bars.

  2. 2
    addActionRequired

    Use add, set, remove, or list.

  3. 3
    <id>IDRequired

    A unique name like mypack:fight.

  4. 4
    <name>Display nameRequired

    JSON text shown on the bar.

Your turn

Try it yourself

Playground
5 tokens · press Enter to run

Copy & paste

Examples

/bossbar add fight {"text":"Boss Fight"}

Create a new boss bar.

/bossbar set fight color red

Turn the bar red.

/bossbar set fight players @a

Show it to everyone.

Avoid these

Common mistakes

/bossbar add {"text":"Boss"}
/bossbar add fight {"text":"Boss"}

You must give the bar an ID first.

/bossbar fight add
/bossbar add fight {"text":"Boss"}

The action comes before the ID.

Keep going

Related commands