Skip to content
MC Command Generator

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.

#1Sky FortressMythic

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}]}
Open in /summon Java 26.3 · Java 1.21.6+

2. A boss bar that tracks real health

Create the bar once:

#2The boss barRare

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>`.
Open in /bossbar Java 26.3

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:

#3Live health linkMythic

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] Health
Open in /execute Java 26.3

Build longer chains like this in the /execute generator — it has store for scores, bossbars, block and entity data and storage.

3. The entrance

#4Boss introEpic

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).
#5Wither roarRare

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 1
Open in /playsound Java 26.3

4. Clean up

#8Auto clean-upEpic

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:boss
Open in /execute Java 26.3

Two mini-bosses

#6Nautilus jockeyEpic

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}}}]}
Open in /summon Java 26.3 · Java 1.21.11+
#7Desert caravanEpic

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}}}]}
Open in /summon Java 26.3 · Java 1.21.11+

Command block order

  1. Impulse block: summon the boss, then (chain blocks) create the bar, the title and the sound.
  2. Repeating block, always active: the live health link.
  3. Repeating block: the auto clean-up — the bar disappears by itself when the boss dies.