How to Use the Bossbar Command in Minecraft

This Minecraft tutorial explains how to use the /bossbar command with screenshots and step-by-step instructions.

You can use the /bossbar command to add, configure or remove a custom bossbar in Minecraft. Let's explore how to use this cheat (game command).

Supported Platforms

The /bossbar command is available in the following versions of Minecraft:

PlatformSupported (Version*)
Java Edition (PC/Mac) Java Edition (PC/Mac)Yes (1.13)
Pocket Edition (PE) Pocket Edition (PE)No
Xbox 360 Xbox 360No
Xbox One Xbox OneNo
PS3 PS3No
PS4 PS4No
Wii U Wii UNo
Nintendo Switch Nintendo SwitchNo
Windows 10 Edition Windows 10 EditionNo
Education Edition Education EditionNo

* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.

Requirements

To run game commands in Minecraft, you have to turn cheats on in your world.

Bossbar Command

Examples

How to Enter the Command

1. Open the Chat Window

The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:

  • For Java Edition (PC/Mac), press the T key to open the chat window.

2. Type the Command

We will cover examples of how to create a bossbar, show the bossbar to players, set the current value of the bossbar, and change the color of the bossbar.

Create a Bossbar

Let's start by showing how to create a new bossbar that has an ID of digminecraft:bossbar1 and "TheChallenge" as the text that appears above the bossbar with the following command:

/bossbar add digminecraft:bossbar1 "TheChallenge"

Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.

bossbar command

Once the command has been entered, the bossbar will be created but it won't yet be visible on the screen. By default, no players have been set up to see the bossbar.

Show the Bossbar to Players

Next, let's update the settings for the bossbar so that the bossbar shows at the top of the game window for all players. We can show the bossbar called digminecraft:bossbar1 to all players with the following command:

/bossbar set digminecraft:bossbar1 players @a

Type the command and press the Enter key to run the command.

bossbar command

Once the command has been entered, you will see the new bossbar appear at the top of the screen. By default, the color of the bossbar is white, the current value of the bossbar is 0, and the max value of the bossbar is 100.

Set the Current Value of the Bossbar

Now, let's set the current value of the boss bar to 100 (so that the progress bar is full) with the following command:

/bossbar set digminecraft:bossbar1 value 100

Type the command and press the Enter key to run the command.

bossbar command

Once the command has been entered, you should see a full progress bar in white since now the current value for the bossbar is set to 100 and the maximum value for this bossbar is 100.

Change the Color of the Bossbar

Next, let's change the color of the bossbar to a different color instead of white. You can change the bossbar to blue, green, pink, purple, red, white or yellow.

Let's change the bossbar to yellow with the following command:

/bossbar set digminecraft:bossbar1 color yellow

Type the command and press the Enter key to run the command.

bossbar command

Once the command has been entered, you should see both the bossbar's text and the progress bar appear in yellow.

bossbar command

Congratulations, you just learned how to use the /bossbar command in Minecraft!