Exponential Ghast-Spitting Chaos

Provoked by a glowing Snow Golem below, a floating Ghast spits fireballs that burst into full-sized Ghasts mid-air, filling the sky in a chain reaction.

Java EditionMobs & PetsEasy20 commandsTested on a real 26.2 & 26.3 server
A massive swarm of glowing Ghasts crowds around a lone Snow Golem on a green platform. Download the GIF Video & GIF © www.9minecraft.net

Custom MobsNetherFireHorrorWhiteOrangeGreenMini-gameLearningBoss FightParticlesSummoned mobsGlowing outlinesRotation math13-20 commands

A glowing Target Golem stands in the center of the arena firing snowballs into the sky, provoking a floating Ghast above it. Instead of ordinary fireballs, every shot flies across the air with a fiery trail and bursts into a brand-new, full-sized Ghast.

Each newly hatched Ghast quickly joins in and launches its own Ghast-filled fireballs, turning a single mob into a swirling sky-filling swarm while automatically capping and cycling older Ghasts so your world never lags.

1. Setup - type these once 6 commands

  1. /scoreboard objectives add c9_age dummy
  2. /scoreboard objectives add c9_cd dummy
  3. /scoreboard objectives add c9_cnt dummy
  4. /summon minecraft:snow_golem ~ ~ ~ {Tags:["c9_golem"],Invulnerable:1b,Glowing:1b,PersistenceRequired:1b,CustomName:{"text":"Target Golem","color":"aqua"},CustomNameVisible:1b,active_effects:[{id:"minecraft:fire_resistance",duration:-1,amplifier:0,show_particles:0b}]}
  5. /summon minecraft:ghast ~4 ~7 ~-3 {Tags:["c9_ghast","c9_e"],Glowing:1b,PersistenceRequired:1b,Invulnerable:1b}
  6. /scoreboard players set @e[tag=c9_ghast] c9_cd 12

2. Loop - one repeating command block each (Always Active) 14 commands

  1. /execute as @e[tag=c9_golem,distance=5..] run tp @s ~ ~ ~
  2. /execute store result score #ghasts c9_cnt if entity @e[tag=c9_ghast]
  3. /scoreboard players add @e[tag=c9_ghast] c9_cd 1
  4. /scoreboard players add @e[tag=c9_e] c9_age 1
  5. /execute as @e[tag=c9_ghast,scores={c9_cd=18..}] if score #ghasts c9_cnt matches ..16 at @s facing entity @e[tag=c9_golem,limit=1] eyes positioned ~ ~1.5 ~ rotated ~30 ~-40 positioned ^ ^ ^2.8 summon minecraft:fireball run tp @s ~ ~ ~ ~ ~
  6. /execute as @e[type=minecraft:fireball,tag=!c9_ball,distance=..25] run data merge entity @s {Tags:["c9_ball","c9_e"],ExplosionPower:0b}
  7. /scoreboard players set @e[tag=c9_ghast,scores={c9_cd=18..}] c9_cd 0
  8. /execute as @e[tag=c9_ball] at @s run tp @s ^ ^ ^0.65
  9. /execute at @e[tag=c9_ball] run particle minecraft:flame ~ ~ ~ 0.15 0.15 0.15 0.02 4
  10. /execute as @e[tag=c9_ball,scores={c9_age=8..}] at @s run summon minecraft:ghast ~ ~ ~ {Tags:["c9_ghast","c9_e"],Glowing:1b,PersistenceRequired:1b,Invulnerable:1b}
  11. /execute at @e[tag=c9_ball,scores={c9_age=8..}] run particle minecraft:dust{color:[1.0,0.4,0.0],scale:2.5} ~ ~1.5 ~ 0.8 0.8 0.8 0 18
  12. /kill @e[tag=c9_ball,scores={c9_age=8..}]
  13. /execute positioned ~ ~9 ~ as @e[tag=c9_ghast,distance=13..] at @s facing entity @e[tag=c9_golem,limit=1] eyes rotated ~ ~-25 run tp @s ^ ^ ^0.5
  14. /execute if score #ghasts c9_cnt matches 14.. run kill @e[tag=c9_ghast,scores={c9_age=140..},limit=1]

How it works

Frames from the test run

Exponential Ghast-Spitting Chaos - frame 1Exponential Ghast-Spitting Chaos - frame 2Exponential Ghast-Spitting Chaos - frame 3

Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: A single glowing Snow Golem stands on a grass platform surrounded and overwhelmed by a massive, dense swarm of glowing Ghasts.

Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.

Build it in your world

  1. Clear a flat open area at least 35x35 blocks with clear sky above.
  2. Stand at the center of the area and run each command from the setup list once in chat.
  3. Place 14 Repeating, Unconditional, Always Active command blocks side by side near the center.
  4. Paste one loop command into each repeating command block in the exact order listed.
  5. Watch the Snow Golem provoke the starter Ghast and trigger the sky-filling Ghast chain reaction.

Use it with real players

To have the Ghasts target you instead of the golem, skip summoning the Snow Golem and replace @e[tag=c9_golem,limit=1] in loop commands 5 and 13 with @p. If you want the Ghasts to be killable in Survival, remove Invulnerable:1b from the starter and hatched Ghast summon commands.

Remove it again 7 commands

  1. /kill @e[tag=c9_ghast]
  2. /kill @e[tag=c9_ball]
  3. /kill @e[tag=c9_golem]
  4. /scoreboard objectives remove c9_age
  5. /scoreboard objectives remove c9_cd
  6. /scoreboard objectives remove c9_cnt
  7. /fill ~-6 ~ ~-6 ~6 ~1 ~6 minecraft:air replace minecraft:snow

FAQ

Will the fireballs destroy my terrain or builds?

No. Every fireball has its ExplosionPower set to 0b and hatches into a Ghast mid-air after 8 ticks, so the ground stays safe.

Can the Ghasts multiply forever and crash my world?

No. New Ghast-fireballs only launch while 16 or fewer Ghasts are active, and older Ghasts are automatically cleared once 14 or more are in the sky.

Commands used

/data/execute/kill/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides