Automated Creeper Blast-Mining Quarry

Build an automated open-air stone quarry where a squad of glowing charged creepers march along rail tracks to blast open diamond, gold, and emerald ore veins.

Java EditionMobs & PetsMedium24 commandsTested on a real 26.2 & 26.3 server
Three glowing charged creepers with flame particles move across a cobblestone structure toward a stone wall. Download the GIF Video & GIF © www.9minecraft.net

Mob ParadesIndustrialFireGreenCyanOrangeBuilding ToolMap MakingCinematicArmor standsSummoned mobsBlock building (fill/setblock/clone)21+ commands

This command creation builds an open-air blast-mining quarry right at the center of your world. A Quarry Foreman oversees three glowing, charged creeper blast units as they march in formation down parallel rail tracks toward an ore-rich rock face filled with diamond, emerald, and gold veins.

Once the demolition squad reaches the blasting zone, their fuses ignite in sequence with bright flame warnings. Each detonation shatters a deeper layer of the rock wall, showering the quarry floor with freshly mined blocks and ore drops before the quarry automatically resets for the next shift.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /scoreboard players set #clock c9_timer 0
  3. /fill ~-9 ~ ~-6 ~9 ~ ~6 polished_andesite
  4. /fill ~-8 ~ ~-5 ~8 ~ ~5 cobblestone
  5. /fill ~-9 ~1 ~-6 ~9 ~2 ~-6 stone_brick_wall
  6. /fill ~-9 ~1 ~6 ~9 ~2 ~6 stone_brick_wall
  7. /fill ~-9 ~3 ~-6 ~9 ~3 ~-6 glowstone
  8. /fill ~-8 ~1 ~-3 ~1 ~1 ~-3 powered_rail[shape=east_west,powered=true]
  9. /fill ~-8 ~1 ~ ~1 ~1 ~ powered_rail[shape=east_west,powered=true]
  10. /summon armor_stand ~-7 ~1 ~4 {Tags:["c9_actor","c9_foreman"],CustomName:'{"text":"Quarry Foreman","color":"gold"}',CustomNameVisible:1b,NoGravity:1b,ShowArms:1b,Glowing:1b,Rotation:[-115f,0f],equipment:{mainhand:{id:"minecraft:golden_pickaxe",count:1},head:{id:"minecraft:golden_helmet",count:1},chest:{id:"minecraft:iron_chestplate",count:1},legs:{id:"minecraft:iron_leggings",count:1},feet:{id:"minecraft:iron_boots",count:1}}}

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

  1. /scoreboard players add #clock c9_timer 1
  2. /execute if score #clock c9_timer matches 135.. run scoreboard players set #clock c9_timer 1
  3. /execute if score #clock c9_timer matches 1 run kill @e[tag=c9_miner]
  4. /execute if score #clock c9_timer matches 1 run kill @e[type=item,distance=..18]
  5. /execute if score #clock c9_timer matches 1 run fill ~ ~1 ~-5 ~8 ~6 ~5 stone
  6. /execute if score #clock c9_timer matches 1 run fill ~1 ~2 ~-4 ~7 ~5 ~4 diamond_ore
  7. /execute if score #clock c9_timer matches 1 run fill ~2 ~1 ~-3 ~6 ~6 ~3 gold_ore
  8. /execute if score #clock c9_timer matches 1 run fill ~1 ~3 ~-2 ~7 ~4 ~2 emerald_ore
  9. /execute if score #clock c9_timer matches 2 run summon creeper ~-7 ~1 ~-3 {Tags:["c9_miner","c9_c1"],NoAI:1b,powered:1b,Glowing:1b,Fuse:30s,Invulnerable:1b,Rotation:[-90f,0f],CustomName:'{"text":"Blast Unit #1","color":"aqua"}',CustomNameVisible:1b}
  10. /execute if score #clock c9_timer matches 8 run summon creeper ~-7 ~1 ~ {Tags:["c9_miner","c9_c2"],NoAI:1b,powered:1b,Glowing:1b,Fuse:30s,Invulnerable:1b,Rotation:[-90f,0f],CustomName:'{"text":"Blast Unit #2","color":"aqua"}',CustomNameVisible:1b}
  11. /execute if score #clock c9_timer matches 14 run summon creeper ~-7 ~1 ~3 {Tags:["c9_miner","c9_c3"],NoAI:1b,powered:1b,Glowing:1b,Fuse:30s,Invulnerable:1b,Rotation:[-90f,0f],CustomName:'{"text":"Blast Unit #3","color":"aqua"}',CustomNameVisible:1b}
  12. /execute if score #clock c9_timer matches 2..55 as @e[tag=c9_miner] at @s if block ~1.3 ~ ~ air run tp @s ~0.2 ~ ~
  13. /execute as @e[tag=c9_miner] at @s run particle flame ~ ~1.8 ~ 0.15 0.2 0.15 0.02 3
  14. /execute if score #clock c9_timer matches 45..70 as @e[tag=c9_miner] run data merge entity @s {ignited:1b,Fuse:25s}

How it works

Frames from the test run

Automated Creeper Blast-Mining Quarry - frame 1Automated Creeper Blast-Mining Quarry - frame 2Automated Creeper Blast-Mining Quarry - frame 3

Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: Three glowing, charged creepers with flame particles march across a partially destroyed cobblestone floor toward a large stone wall.

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. Stand in the center of a flat open area where you want your quarry built.
  2. Run each of the 10 setup commands once in chat to construct the quarry floor, walls, glowstone lighting, rails, and Quarry Foreman.
  3. Place a line of 14 Repeating Command Blocks set to Always Active nearby, or one Repeating Command Block chained into 13 Chain Command Blocks.
  4. Paste the 14 loop commands in order into the command blocks. Ensure they execute relative to the center coordinates of the quarry.
  5. Watch the three charged creeper units spawn, glide down the lanes, ignite at the ore wall, and blast the diamond, gold, and emerald veins apart.

Use it with real players

To run this quarry manually on demand instead of on an automatic clock, replace the scoreboard reset in the second loop command with a button or lever wired to set #clock c9_timer 1, and remove the item cleanup command so you can walk into the blast crater with your own character to collect the mined diamonds, emeralds, and gold ore.

Remove it again 5 commands

  1. /kill @e[tag=c9_miner]
  2. /kill @e[tag=c9_actor]
  3. /kill @e[type=item,distance=..20]
  4. /fill ~-9 ~ ~-6 ~9 ~6 ~6 air
  5. /scoreboard objectives remove c9_timer

FAQ

Why don't the creepers destroy the quarry floor when they explode?

The creepers detonate right against the dense multi-layered ore wall at elevation Y+1, which absorbs the bulk of the blast and rebuilds itself every cycle while the setup foundation remains intact.

What if the creepers don't break blocks when they explode?

Make sure the mobGriefing game rule is set to true in your world so creeper explosions can shatter the ore blocks into dropped items.

Commands used

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

Similar creations

Join 9Minecraft News & Guides