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.
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.
/scoreboard objectives add c9_timer dummy/scoreboard players set #clock c9_timer 0/fill ~-9 ~ ~-6 ~9 ~ ~6 polished_andesite/fill ~-8 ~ ~-5 ~8 ~ ~5 cobblestone/fill ~-9 ~1 ~-6 ~9 ~2 ~-6 stone_brick_wall/fill ~-9 ~1 ~6 ~9 ~2 ~6 stone_brick_wall/fill ~-9 ~3 ~-6 ~9 ~3 ~-6 glowstone/fill ~-8 ~1 ~-3 ~1 ~1 ~-3 powered_rail[shape=east_west,powered=true]/fill ~-8 ~1 ~ ~1 ~1 ~ powered_rail[shape=east_west,powered=true]/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}}}/scoreboard players add #clock c9_timer 1/execute if score #clock c9_timer matches 135.. run scoreboard players set #clock c9_timer 1/execute if score #clock c9_timer matches 1 run kill @e[tag=c9_miner]/execute if score #clock c9_timer matches 1 run kill @e[type=item,distance=..18]/execute if score #clock c9_timer matches 1 run fill ~ ~1 ~-5 ~8 ~6 ~5 stone/execute if score #clock c9_timer matches 1 run fill ~1 ~2 ~-4 ~7 ~5 ~4 diamond_ore/execute if score #clock c9_timer matches 1 run fill ~2 ~1 ~-3 ~6 ~6 ~3 gold_ore/execute if score #clock c9_timer matches 1 run fill ~1 ~3 ~-2 ~7 ~4 ~2 emerald_ore/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}/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}/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}/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 ~ ~/execute as @e[tag=c9_miner] at @s run particle flame ~ ~1.8 ~ 0.15 0.2 0.15 0.02 3/execute if score #clock c9_timer matches 45..70 as @e[tag=c9_miner] run data merge entity @s {ignited:1b,Fuse:25s}loop #6 Rebuilds the quarry rock face at the start of every 135-tick cycle and packs the center with diamond, gold, and emerald ore veins.loop #9 Summons the first charged creeper blast unit with <code>NoAI:1b</code>, <code>powered:1b</code>, and <code>Glowing:1b</code> so it marches cleanly down the track without wandering.loop #12 Advances each creeper eastward along the quarry floor until it detects the solid rock face 1.3 blocks ahead.loop #14 Ignites all three creepers' fuses once they reach the rock wall; when their 25-tick fuse runs out, they detonate in sequence and blast the ore veins into collectible items.


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.
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.
/kill @e[tag=c9_miner]/kill @e[tag=c9_actor]/kill @e[type=item,distance=..20]/fill ~-9 ~ ~-6 ~9 ~6 ~6 air/scoreboard objectives remove c9_timerThe 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.
Make sure the mobGriefing game rule is set to true in your world so creeper explosions can shatter the ore blocks into dropped items.