All commands
🩸
FunJava Bedrock -

/bossbar

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

🪨This command is Java Edition only - Bedrock has no direct equivalent.

Overview

What is the /bossbar command?

The /bossbar command creates and controls custom boss bars — the coloured bar across the top of the screen. You can set the title, colour, style, max and current value, and choose which players see it.

It's perfect for timers, progress meters, health bars for custom bosses, and event countdowns.

When to use it: Use /bossbar to show a custom bar for timers, progress, or boss health to selected players.

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.

Good to know

Frequently asked questions

How do you create a boss bar with a command?
Run /bossbar add <id> <name>, then /bossbar set <id> players @a to show it, and adjust value/max as needed.
How do you change a boss bar's value?
Use /bossbar set <id> value <n> and /bossbar set <id> max <n>; the bar fills to value/max.
How do you remove a boss bar?
Run /bossbar remove <id> to delete it for everyone.

Keep going

Related commands