Boss fights from one command block: mounts, riders and a live health bar
GuideJava 1.21.11 – 26.38 min read8 commands
Boss fights built from commands: a Happy Ghast carrying skeleton archers, a Drowned on a Zombie Nautilus, a Camel Husk caravan and a live health boss bar.
A good boss fight needs four things: a boss that looks unlike anything in survival, a health bar, an entrance, and a way to clean up. Here is a complete one in eight commands, plus two mini-bosses built on the mounts added in Mounts of Mayhem (1.21.11).
1. The boss
The Passengers tag puts any mob on any other — here two archers on a Happy Ghast. The boss tag is how every other command finds it without hitting other mobs.
A 100-health Happy Ghast carrying two skeleton archers — one in a netherite helmet. Tagged boss so the commands below can find it.
summon minecraft:happy_ghast ~ ~ ~ {CustomName:{text:"Sky Fortress",color:"red",bold:true},CustomNameVisible:1b,PersistenceRequired:1b,Health:100f,Passengers:[{id:"minecraft:skeleton",equipment:{mainhand:{id:"minecraft:bow",count:1},head:{id:"minecraft:netherite_helmet",count:1}}},{id:"minecraft:skeleton",equipment:{mainhand:{id:"minecraft:bow",count:1}}}],Tags:["boss"],attributes:[{id:"minecraft:max_health",base:100d}]}2. A boss bar that tracks real health
Create the bar once:
A red, notched boss bar for everyone online, sized to the boss's 100 health.
bossbar add arena:boss {text:"Sky Fortress",color:"red",bold:true}
bossbar set arena:boss color red
bossbar set arena:boss style notched_10
bossbar set arena:boss value 100
bossbar set arena:boss players @a- • Run these in order. The bar stays until `bossbar remove arena:boss`; change the fill later with `bossbar set arena:boss value <n>`.
Then link it to the boss. execute store result bossbar … value writes the result of the command after run into the bar; data get … Health returns the boss’s current health. Run it every tick:
The trick most maps get wrong: store the boss's real Health in the bar every tick. Put it in a repeating command block and the bar drains as you hit it.
execute store result bossbar arena:boss value run data get entity @e[tag=boss,limit=1] HealthBuild longer chains like this in the /execute generator — it has store for scores, bossbars, block and entity data and storage.
3. The entrance
A dramatic red title the moment the fight starts.
title @a times 10 60 20
title @a subtitle {text:"Shoot it down",color:"gray"}
title @a title {text:"SKY FORTRESS",color:"dark_red",bold:true}- • Several commands: run them in this order (one per command block, or all in a function file).
The wither's spawn sound for every player, wherever they stand. Pitch 0.6 makes it deeper.
playsound entity.wither.spawn hostile @a ~ ~ ~ 1 0.6 14. Clean up
In a repeating command block: the moment no entity tagged boss is left, the bar is removed from everyone's screen.
execute unless entity @e[tag=boss] run bossbar remove arena:bossTwo mini-bosses
A trident Drowned riding a Zombie Nautilus — the underwater mount from Mounts of Mayhem. A mini-boss for an ocean monument raid.
summon minecraft:zombie_nautilus ~ ~ ~ {PersistenceRequired:1b,Passengers:[{id:"minecraft:drowned",equipment:{mainhand:{id:"minecraft:trident",count:1}}}]}A Camel Husk carrying a spear Husk and a Parched archer. Two riders, one mount — camels seat two.
summon minecraft:camel_husk ~ ~ ~ {PersistenceRequired:1b,Passengers:[{id:"minecraft:husk",equipment:{mainhand:{id:"minecraft:golden_spear",count:1}}},{id:"minecraft:parched",equipment:{mainhand:{id:"minecraft:bow",count:1}}}]}Command block order
- Impulse block: summon the boss, then (chain blocks) create the bar, the title and the sound.
- Repeating block, always active: the live health link.
- Repeating block: the auto clean-up — the bar disappears by itself when the boss dies.
More drops
- Update drop3 commands/effect with tags: one command for a whole set of effects (26.4 snapshot)Four effects from one line, and the tag file you have to write first.Java 26.4 Snapshot 10 · 26.3
- Guide5 commandsHow to get a command block in Minecraft, and why it does nothingOne /give gets the block. A game rule decides whether it ever runs.Java 1.13 → 26.3 · Bedrock
- Next drop · 32,768 is the wall. One game rule moves it; here is the name for your version.Java 1.19.2 → 26.3 · 4 commands