Build an automated cave carver in Minecraft that creates a block of layered stone and releases six glowing orbs to dig winding tunnels lined with crystals.
Self-building StructuresNatureMysticCyanPinkGreenBuilding ToolMap MakingBlock displaysBlock building (fill/setblock/clone)Rotation math21+ commands
The Autonomous Cave Borrower generates a massive chunk of layered stone, deepslate, and mossy cobblestone right in front of you, then releases six colourful glowing orbs inside it. As the orbs wander through the solid rock, they shatter the stone in their path, carving out open windows, winding tunnels, and caverns.
Watch through the carved openings as the orbs bounce from wall to wall, spraying cyan and purple sparks while leaving behind glowing amethyst clusters and sea lanterns to light up the newly formed cave system.
/scoreboard objectives add c9_timer dummy/fill ~-6 ~ ~-6 ~6 ~10 ~6 stone/fill ~-6 ~ ~-6 ~6 ~3 ~6 deepslate/fill ~-5 ~1 ~-5 ~5 ~9 ~5 tuff replace stone/fill ~-6 ~10 ~-6 ~6 ~10 ~6 mossy_cobblestone/fill ~-2 ~1 ~-6 ~2 ~8 ~6 air/summon block_display ~-4 ~6 ~-4 {Tags:["c9_borer","c9_a"],Rotation:[35f,0f],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.9f,0.9f,0.9f],translation:[-0.45f,-0.45f,-0.45f]}}/summon block_display ~4 ~4 ~-4 {Tags:["c9_borer","c9_a"],Rotation:[145f,0f],Glowing:1b,glow_color_override:16744192,block_state:{Name:"minecraft:shroomlight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.9f,0.9f,0.9f],translation:[-0.45f,-0.45f,-0.45f]}}/summon block_display ~ ~8 ~3 {Tags:["c9_borer","c9_a"],Rotation:[250f,0f],Glowing:1b,glow_color_override:16711935,block_state:{Name:"minecraft:amethyst_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.9f,0.9f,0.9f],translation:[-0.45f,-0.45f,-0.45f]}}/execute as @e[tag=c9_a] at @s run summon block_display ~ ~-2 ~1 {Tags:["c9_borer","c9_b"],Rotation:[80f,0f],Glowing:1b,glow_color_override:65280,block_state:{Name:"minecraft:ochre_froglight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.9f,0.9f,0.9f],translation:[-0.45f,-0.45f,-0.45f]}}/scoreboard players add @e[tag=c9_borer] c9_timer 1/execute as @e[tag=c9_a] at @s run tp @s ~ ~ ~ ~7 ~/execute as @e[tag=c9_b] at @s run tp @s ~ ~ ~ ~-9 ~/execute as @e[tag=c9_borer,scores={c9_timer=14}] at @s run tp @s ~ ~ ~ ~65 ~/execute as @e[tag=c9_borer,scores={c9_timer=28..}] run scoreboard players set @s c9_timer 0/execute as @e[tag=c9_borer] at @s rotated ~ 0 run tp @s ^ ^ ^0.45/execute as @e[tag=c9_a,scores={c9_timer=1..14}] at @s run tp @s ~ ~0.08 ~/execute as @e[tag=c9_a,scores={c9_timer=15..28}] at @s run tp @s ~ ~-0.09 ~/execute at @e[tag=c9_borer] run fill ~-1 ~ ~-1 ~1 ~2 ~1 air/execute as @e[tag=c9_borer,scores={c9_timer=1}] at @s run setblock ~ ~1 ~ air destroy/kill @e[type=item,distance=..22]/execute at @e[tag=c9_borer] run particle dust{color:[0.1,1.0,0.9],scale:2.0} ~ ~0.5 ~ 0.6 0.6 0.6 0 8 force/execute at @e[tag=c9_borer] run particle soul_fire_flame ~ ~0.5 ~ 0.4 0.4 0.4 0.04 4 force/execute as @e[tag=c9_borer] unless entity @s[distance=..6.5] run tp @s ~ ~5 ~ ~135 ~setup #6 Carves an initial central canyon slice through the stone block so you can immediately see inside as the borers start digging outward and across.setup #10 Uses the first three borers tagged <code>c9_a</code> to summon three additional borers tagged <code>c9_b</code> with a green glow and froglight appearance, creating six total excavators.loop #6 Pushes every borer forward by 0.45 blocks per tick along its current horizontal facing direction using local coordinates (<code>^ ^ ^0.45</code>).loop #9 Clears a 3x3x3 pocket of air around each moving orb so they hollow out visible rooms, windows, and archways through the layered rock.loop #10 Uses <code>setblock ~ ~1 ~ air destroy</code> once per cycle to trigger real block-breaking particles and stone crunching sound effects.loop #14 Checks if an orb has wandered farther than 6.5 blocks from the stage centre; if so, it bounces the orb back into the heart of the rock mass with a new rotation.


Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: Looking into a carved-out tunnel within a layered stone and deepslate block, where glowing magenta and green outlined cubes move around emitting bright cyan particles.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let a player control the excavation manually, replace @e[tag=c9_borer] in the loop commands with @a[nbt={SelectedItem:{id:"minecraft:amethyst_shard"}}] and change the relative offsets to ^ ^1 ^4 so holding an amethyst shard carves tunnels wherever you look.
/kill @e[tag=c9_borer]/kill @e[type=item,distance=..25]/fill ~-7 ~ ~-7 ~7 ~12 ~7 air/scoreboard objectives remove c9_timerNo. Most of the carving uses /fill with air, and the periodic /setblock destroy effect is immediately cleaned up by a distance-limited /kill command targeting dropped items.
Yes. Increase the /fill dimensions in the first five setup commands and raise the distance check in the final loop command from 6.5 to match your new rock size.
▶Mythic World-Tree Yggdrasil BloomingSelf-building StructuresExpert20 cmds
▶Bonsai Cherry Blossom Time-Lapse SculptingSelf-building StructuresHard24 cmds
▶Floating Island TerraformerSelf-building StructuresHard24 cmds
▶Instant Procedural Tree GrowerSelf-building StructuresHard23 cmds
▶Procedural Canopy SprouterSelf-building StructuresHard23 cmds
▶Procedural Mountain SculptorSelf-building StructuresHard23 cmds