Automated Laser Mining Rig

Build an automated industrial laser quarry in vanilla Minecraft that sweeps over a pit, fires a fiery plasma beam, and melts stone and ores on contact.

Java EditionParticle ArtMedium24 commandsTested on a real 26.2 & 26.3 server
An automated laser mining rig fires a fiery red beam to excavate a stone quarry pit. Download the GIF Video & GIF © www.9minecraft.net

Trails & PathsIndustrialTechnologyFireRedOrangeBlackDecorationBuilding ToolLearningBlock displaysBlock building (fill/setblock/clone)21+ commands

This command creation builds a suspended industrial mining frame above a reinforced deepslate quarry pit. A glowing redstone emitter head glides smoothly across the gantry rails, firing a concentrated red and orange laser beam into the ground below.

As the laser sweeps across the stone, it melts away blocks on contact with bursts of lava sparks, flames, and smoke, automatically refilling the quarry with fresh ores when a layer is cleared.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_mine dummy
  2. /scoreboard objectives add c9_step dummy
  3. /fill ~-5 ~-3 ~-5 ~5 ~-1 ~5 deepslate_bricks
  4. /fill ~-4 ~ ~-4 ~4 ~ ~4 iron_bars
  5. /fill ~-3 ~-3 ~-3 ~3 ~ ~3 air
  6. /fill ~-3 ~-3 ~-3 ~3 ~-1 ~3 stone
  7. /fill ~-4 ~ ~-4 ~4 ~6 ~4 polished_deepslate_wall replace air
  8. /fill ~-3 ~ ~-4 ~3 ~5 ~4 air
  9. /fill ~-4 ~ ~-3 ~4 ~5 ~3 air
  10. /summon block_display ~-3 ~5.5 ~-3 {Tags:["c9_rig","c9_laser_head"],Glowing:1b,glow_color_override:16724736,block_state:{Name:"minecraft:redstone_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.4f,0f,-0.4f],scale:[0.8f,1.2f,0.8f]}}

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

  1. /execute as @e[tag=c9_laser_head] run scoreboard players add @s c9_mine 1
  2. /execute as @e[tag=c9_laser_head,scores={c9_mine=1..6}] at @s run tp @s ~0.1666 ~ ~
  3. /execute as @e[tag=c9_laser_head,scores={c9_mine=7..}] run scoreboard players add @s c9_step 1
  4. /execute as @e[tag=c9_laser_head,scores={c9_mine=7..,c9_step=7..}] at @s run tp @s ~-7 ~ ~1
  5. /execute as @e[tag=c9_laser_head,scores={c9_mine=7..,c9_step=7..}] run scoreboard players set @s c9_step 0
  6. /execute if entity @e[tag=c9_laser_head,scores={c9_mine=7..}] positioned ~ ~5.5 ~4 as @e[tag=c9_laser_head,dx=4,dy=1,dz=2] run tp @s ~-3 ~5.5 ~-3
  7. /execute as @e[tag=c9_laser_head] at @s run particle dust{color:[1.0,0.1,0.0],scale:2.2} ~ ~-3.5 ~ 0.03 2.4 0.03 0 45 force
  8. /execute as @e[tag=c9_laser_head] at @s run particle dust{color:[1.0,0.75,0.1],scale:1.4} ~ ~-3.5 ~ 0.01 2.4 0.01 0 30 force
  9. /execute as @e[tag=c9_laser_head] at @s run particle flame ~ ~-3.5 ~ 0.06 2.2 0.06 0.01 8 force
  10. /execute as @e[tag=c9_laser_head] at @s unless block ~ ~-6.5 ~ air run particle lava ~ ~-5.8 ~ 0.2 0.1 0.2 0 4 force
  11. /execute as @e[tag=c9_laser_head] at @s if block ~ ~-6.5 ~ air unless block ~ ~-7.5 ~ air run particle lava ~ ~-6.8 ~ 0.2 0.1 0.2 0 4 force
  12. /execute as @e[tag=c9_laser_head,scores={c9_mine=7..}] at @s if block ~ ~-6.5 ~ air unless block ~ ~-7.5 ~ air run setblock ~ ~-7.5 ~ air destroy
  13. /execute as @e[tag=c9_laser_head,scores={c9_mine=7..}] at @s unless block ~ ~-6.5 ~ air run setblock ~ ~-6.5 ~ air destroy
  14. /execute as @e[tag=c9_laser_head,scores={c9_mine=7..}] run scoreboard players set @s c9_mine 0

How it works

Frames from the test run

Automated Laser Mining Rig - frame 1Automated Laser Mining Rig - frame 2Automated Laser Mining Rig - frame 3

Recorded on our own test server: 58 frames at about 9.6 fps. Our image check saw: A glowing red block slides along a dark stone gantry frame, shooting a vertical beam of red particles and flames that excavates the stone pit below.

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 on a flat open area where you want the centre of the quarry pit to be.
  2. Run each command from the Setup list in chat once to build the deepslate frame, pit, and glowing laser emitter.
  3. Place 14 Repeating Command Blocks (or 1 Repeating followed by 13 Chain Command Blocks) near the build.
  4. Paste the Loop commands into the blocks in exact order and set all of them to Always Active.
  5. Watch the glowing emitter sweep across the gantry, melting away the stone layers below.

Use it with real players

To let players refill the quarry with rich ores on demand or pause the laser, give yourself a lever or run /fill ~-3 ~-3 ~-3 ~3 ~-1 ~3 diamond_ore from a button-activated impulse command block next to the frame.

Remove it again 7 commands

  1. /kill @e[tag=c9_rig]
  2. /kill @e[type=item,distance=..15]
  3. /scoreboard objectives remove c9_mine
  4. /scoreboard objectives remove c9_step
  5. /fill ~-5 ~-3 ~-5 ~5 ~-1 ~5 dirt
  6. /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 grass_block
  7. /fill ~-5 ~ ~-5 ~5 ~7 ~5 air

FAQ

Why did the laser stop breaking blocks after two layers?

The loop is configured to mine the top two layers of stone so the bottom layer of the pit remains intact and holds the dropped items. You can refill the pit anytime by running the stone fill command from setup.

Does this work in Minecraft Java 26.2 and newer?

Yes, it uses current particle SNBT options like dust{color:[...],scale:...} and block_display transformation syntax compatible with Java 26.2 and 26.3.

Commands used

/execute/fill/particle/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides