Automated Laser Engraving

Build an automated floating laser emitter in Minecraft Java using commands that shoots a glowing beam to carve a scorching pattern into the ground.

Java EditionParticle ArtMedium23 commandsTested on a real 26.2 & 26.3 server
A floating beacon hovers above a stone platform while engraving a square outline of magma blocks. Download the GIF Video & GIF © www.9minecraft.net

Trails & PathsTechnologyFireIndustrialRedOrangeBlackDecorationCinematicMap MakingParticlesBlock displaysScoreboard timersExecute chainsBlock building (fill/setblock/clone)Glowing outlinesRotation math21+ commands

Watch a high-tech floating beacon hover above a stone slate and fire a concentrated red laser beam onto the surface below. As the cutting point glides along a square path, it scorches the stone into glowing magma and dark deepslate while throwing up bright sparks, lava droplets, and heavy smoke.

This command creation uses a moving target entity and a raycasting step entity to draw a solid line of dust particles between the overhead emitter and the moving ground point every tick.

1. Setup - type these once 9 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 polished_andesite
  3. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~-6 polished_deepslate
  4. /fill ~-6 ~-1 ~6 ~6 ~-1 ~6 polished_deepslate
  5. /fill ~-6 ~-1 ~-5 ~-6 ~-1 ~5 polished_deepslate
  6. /fill ~6 ~-1 ~-5 ~6 ~-1 ~5 polished_deepslate
  7. /summon block_display ~ ~6 ~ {Tags:["c9_las","c9_em"],Glowing:1b,block_state:{Name:"minecraft:beacon"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.2f,1.2f,1.2f],translation:[-0.6f,-0.6f,-0.6f]}}
  8. /summon marker ~-4 ~ ~-4 {Tags:["c9_las","c9_tar"]}
  9. /summon marker ~ ~6 ~ {Tags:["c9_las","c9_ray"]}

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

  1. /scoreboard players add #t c9_t 1
  2. /execute if score #t c9_t matches 160.. run scoreboard players set #t c9_t 0
  3. /execute if score #t c9_t matches 0 run fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 polished_andesite
  4. /execute if score #t c9_t matches 0 run tp @e[tag=c9_tar] ~-4 ~ ~-4
  5. /execute if score #t c9_t matches 1..40 as @e[tag=c9_tar] at @s run tp @s ~0.2 ~ ~
  6. /execute if score #t c9_t matches 41..80 as @e[tag=c9_tar] at @s run tp @s ~ ~ ~0.2
  7. /execute if score #t c9_t matches 81..120 as @e[tag=c9_tar] at @s run tp @s ~-0.2 ~ ~
  8. /execute if score #t c9_t matches 121..159 as @e[tag=c9_tar] at @s run tp @s ~ ~ ~-0.2
  9. /execute as @e[tag=c9_ray] at @e[tag=c9_em] facing entity @e[tag=c9_tar,limit=1] feet run tp @s ~ ~ ~ ~ ~
  10. /execute as @e[tag=c9_ray] at @s run tp @s ^ ^ ^0.95
  11. /execute at @e[tag=c9_ray] run particle dust{color:[1.0,0.1,0.1],scale:1.4} ~ ~ ~ 0.05 0.05 0.05 0 4 force
  12. /execute as @e[tag=c9_ray] at @s facing entity @e[tag=c9_tar,limit=1] feet run tp @s ^ ^ ^0.95
  13. /execute at @e[tag=c9_ray] run particle dust{color:[1.0,0.4,0.1],scale:1.2} ~ ~ ~ 0.05 0.05 0.05 0 4 force
  14. /execute at @e[tag=c9_tar] run setblock ~ ~-1 ~ magma_block

How it works

Frames from the test run

Automated Laser Engraving - frame 1Automated Laser Engraving - frame 2Automated Laser Engraving - frame 3

Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: A floating beacon hovers above a stone platform as a square path of magma blocks forms below, though the red laser beam only reaches a short distance beneath the beacon.

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. Make sure cheats are enabled in your world and switch to Creative mode.
  2. Stand at the center of a flat area where you want the engraving slate to appear.
  3. Run each command from the Setup list in chat one by one to build the slate and summon the emitter and markers.
  4. Place 14 Repeating Command Blocks near your stage and set every one of them to Always Active.
  5. Paste one command from the Loop list into each repeating command block.
  6. Watch the floating beacon trace a glowing magma square into the stone platform and reset automatically every 8 seconds.

Use it with real players

To let a player aim the engraving laser manually, remove loop commands 1 through 7 and replace them with /execute at @p anchored eyes run tp @e[tag=c9_tar,limit=1] ^ ^ ^5 so the laser target follows where you look.

Remove it again 3 commands

  1. /kill @e[tag=c9_las]
  2. /scoreboard objectives remove c9_t
  3. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 grass_block

FAQ

Can I change the block that the laser carves into the floor?

Yes. Change magma_block at the end of the final loop command to any block you like, such as gilded_blackstone, crying_obsidian, or sea_lantern.

How do I change the color of the laser beam?

Edit the RGB values inside dust{color:[1.0,0.1,0.1],scale:1.4} in the loop commands. For example, use [0.1,0.8,1.0] for a cyan plasma laser.

Commands used

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

Similar creations

Join 9Minecraft News & Guides