Create a Custom Boss Bar
Show a custom boss health bar at the top of the screen
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Creates a custom boss bar at the top of the screen with your own name, color, and progress. /bossbar add makes it (the id becomes minecraft:<name>), then /bossbar set adjusts color, style, max, value, and which players see it. Change the value with /bossbar set minecraft:event value <n> to drive a timer or progress meter. Java Edition only.
/bossbar add event {text:"Event Timer"}
/bossbar set minecraft:event color red
/bossbar set minecraft:event players @a118 characters
- Java: yes
- Bedrock: no
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java).
- Run /bossbar add event {text:"Event Timer"} to create it.
- Run /bossbar set minecraft:event players @a so players can see it.
- Update /bossbar set minecraft:event value <n> to move the bar.
Related commands
Display big center-screen text to a player
/title @a title {text:"Welcome!",color:gold,bold:true}Show a smaller second line under a screen title
/title @a subtitle {text:"Good luck out there",color:yellow}Display text just above the hotbar
/title @a actionbar {text:"Objective updated",color:aqua}Display an objective's scores on the right side of the screen
/scoreboard objectives setdisplay sidebar pointsBecome nearly invincible
/effect give @p resistance 999999 255 true