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.
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.
/scoreboard objectives add c9_mine dummy/scoreboard objectives add c9_step dummy/fill ~-5 ~-3 ~-5 ~5 ~-1 ~5 deepslate_bricks/fill ~-4 ~ ~-4 ~4 ~ ~4 iron_bars/fill ~-3 ~-3 ~-3 ~3 ~ ~3 air/fill ~-3 ~-3 ~-3 ~3 ~-1 ~3 stone/fill ~-4 ~ ~-4 ~4 ~6 ~4 polished_deepslate_wall replace air/fill ~-3 ~ ~-4 ~3 ~5 ~4 air/fill ~-4 ~ ~-3 ~4 ~5 ~3 air/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]}}/execute as @e[tag=c9_laser_head] run scoreboard players add @s c9_mine 1/execute as @e[tag=c9_laser_head,scores={c9_mine=1..6}] at @s run tp @s ~0.1666 ~ ~/execute as @e[tag=c9_laser_head,scores={c9_mine=7..}] run scoreboard players add @s c9_step 1/execute as @e[tag=c9_laser_head,scores={c9_mine=7..,c9_step=7..}] at @s run tp @s ~-7 ~ ~1/execute as @e[tag=c9_laser_head,scores={c9_mine=7..,c9_step=7..}] run scoreboard players set @s c9_step 0/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/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/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/execute as @e[tag=c9_laser_head] at @s run particle flame ~ ~-3.5 ~ 0.06 2.2 0.06 0.01 8 force/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/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/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/execute as @e[tag=c9_laser_head,scores={c9_mine=7..}] at @s unless block ~ ~-6.5 ~ air run setblock ~ ~-6.5 ~ air destroy/execute as @e[tag=c9_laser_head,scores={c9_mine=7..}] run scoreboard players set @s c9_mine 0setup #10 Summons a glowing <code>block_display</code> entity shaped like a vertical redstone core to act as the moving laser emitter head.loop #2 Glides the emitter head smoothly across the X-axis by 0.1666 blocks per tick over 6 ticks so it travels exactly 1 block between mining pulses.loop #4 Tracks how many blocks the emitter has crossed using <code>c9_step</code>, shifting the head back to the start of the next Z-row after 7 blocks.loop #7 Draws the outer crimson laser sheath and inner bright orange core from the emitter head straight down into the quarry pit.loop #12 Checks the top stone layers beneath the laser and breaks the highest solid block with <code>setblock ... air destroy</code> so it drops real block items.loop #14 Resets the <code>c9_mine</code> tick timer on the last command of the loop after all movement and block breaking for that step have finished.


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.
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.
/kill @e[tag=c9_rig]/kill @e[type=item,distance=..15]/scoreboard objectives remove c9_mine/scoreboard objectives remove c9_step/fill ~-5 ~-3 ~-5 ~5 ~-1 ~5 dirt/fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 grass_block/fill ~-5 ~ ~-5 ~5 ~7 ~5 airThe 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.
Yes, it uses current particle SNBT options like dust{color:[...],scale:...} and block_display transformation syntax compatible with Java 26.2 and 26.3.
▶Automated Laser EngravingTrails & PathsMedium23 cmds
▶Orbital Particle Excavation BeamTrails & PathsMedium23 cmds
▶Aerodynamic Wind TunnelTrails & PathsMedium22 cmds
▶Autonomous Sweeping Beam TurretTrails & PathsMedium24 cmds
▶Burning Powder Fuse TrailTrails & PathsEasy23 cmds
▶High-Voltage Arc BarrierTrails & PathsMedium24 cmds