Laser-Guided Arrows Turret

Build an automated laser turret in Minecraft that fires gravity-defying, piercing arrows along a glowing crimson beam across a target range.

Java EditionWands, Weapons & ToolsEasy24 commandsTested on a real 26.2 & 26.3 server
A laser turret fires a glowing arrow along a red beam through a row of armor stand targets. Download the GIF Video & GIF © www.9minecraft.net

Lasers & BeamsTechnologyRedOrangePvPAdventure MapMini-gameArmor standsSummoned mobsBlock building (fill/setblock/clone)Sounds21+ commands

Normal arrows in Minecraft drop after a short distance and stop at the first mob they hit. This command creation builds an automated laser turret that projects a crimson guidance beam across a firing range and shoots glowing, gravity-defying arrows in a completely flat line.

Each arrow travels along the laser beam at constant speed, piercing straight through an entire row of armoured target dummies before striking the backstop. When a dummy is destroyed, the range automatically spawns a replacement so the turret can keep firing.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /fill ~-12 ~ ~-2 ~12 ~ ~2 polished_deepslate_slab[type=bottom]
  3. /fill ~-12 ~ ~ ~12 ~ ~ sea_lantern
  4. /setblock ~-10 ~ ~ chiseled_polished_blackstone
  5. /setblock ~-10 ~1 ~ dispenser[facing=east]
  6. /setblock ~-10 ~2 ~ redstone_lamp[lit=true]
  7. /setblock ~11 ~1 ~ target
  8. /setblock ~11 ~2 ~ redstone_lamp[lit=true]
  9. /summon marker ~-10 ~1.5 ~ {Tags:["c9_turret"]}
  10. /summon marker ~-6 ~1 ~ {Tags:["c9_pad"]}

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

  1. /scoreboard players add @e[tag=c9_turret] c9_timer 1
  2. /execute if score @e[tag=c9_turret,limit=1] c9_timer matches 1 run summon marker ~-2 ~1 ~ {Tags:["c9_pad"]}
  3. /execute if score @e[tag=c9_turret,limit=1] c9_timer matches 1 run summon marker ~2 ~1 ~ {Tags:["c9_pad"]}
  4. /execute if score @e[tag=c9_turret,limit=1] c9_timer matches 1 run summon marker ~6 ~1 ~ {Tags:["c9_pad"]}
  5. /execute at @e[tag=c9_pad] unless entity @e[tag=c9_dummy,distance=..1.5] run summon armor_stand ~ ~ ~ {Tags:["c9_dummy"],Rotation:[90f,0f],ShowArms:1b,equipment:{head:{id:"minecraft:carved_pumpkin",count:1},chest:{id:"minecraft:chainmail_chestplate",count:1},legs:{id:"minecraft:leather_leggings",count:1},feet:{id:"minecraft:leather_boots",count:1}}}
  6. /particle dust{color:[1.0,0.05,0.1],scale:0.8} ~ ~1.35 ~ 5.5 0 0 0 90 force
  7. /execute at @e[tag=c9_turret,scores={c9_timer=30..}] run summon arrow ~0.8 ~-0.15 ~ {Tags:["c9_arrow"],Motion:[1.6,0.0,0.0],NoGravity:1b,PierceLevel:10b,damage:20.0d,crit:1b,Glowing:1b}
  8. /execute at @e[tag=c9_turret,scores={c9_timer=30..}] run particle flame ~0.8 ~-0.15 ~ 0.1 0.1 0.1 0.05 15 force
  9. /execute at @e[tag=c9_turret,scores={c9_timer=30..}] run playsound minecraft:entity.illusioner.cast_spell master @a ~ ~ ~ 1 1.6
  10. /scoreboard players set @e[tag=c9_turret,scores={c9_timer=30..}] c9_timer 2
  11. /execute as @e[tag=c9_arrow] at @s run data merge entity @s {Motion:[1.6,0.0,0.0],life:1180s}
  12. /execute at @e[tag=c9_arrow] run particle dust{color:[1.0,0.8,0.1],scale:1.2} ~ ~ ~ 0.05 0.05 0.05 0 5 force
  13. /execute at @e[tag=c9_arrow] at @e[tag=c9_dummy,distance=..1.6] run particle crit ~ ~1 ~ 0.3 0.4 0.3 0.2 20 force
  14. /kill @e[tag=c9_arrow,nbt={inGround:1b}]

How it works

Frames from the test run

Laser-Guided Arrows Turret - frame 1Laser-Guided Arrows Turret - frame 2Laser-Guided Arrows Turret - frame 3

Recorded on our own test server: 43 frames at about 8.6 fps. Our image check saw: A turret on the left projects a red particle laser beam through four armor stands with pumpkin heads, and shoots an arrow that destroys the first armor stand.

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 at the centre of a flat open area where you want the 25-block firing range to be built.
  2. Run each of the 10 setup commands once in chat (or from impulse command blocks positioned at the range centre) to build the deepslate walkway, turret dispenser, target block, and markers.
  3. Place 14 repeating command blocks set to Always Active (or one repeating block feeding 13 chain blocks) and paste the loop commands in order.
  4. Make sure the loop commands execute positioned at the exact same centre block used for setup.
  5. Watch the red laser beam appear and the turret begin firing piercing glowing arrows through the row of armoured target dummies.

Use it with real players

To make arrows shot from your own bow follow a laser beam instead of using the turret, remove the turret summon command and replace the arrow movement command with /execute as @p at @s anchored eyes run data modify entity @e[type=arrow,nbt={inGround:0b},limit=1,sort=nearest] Motion set value [1.6,0.0,0.0], or apply {NoGravity:1b,PierceLevel:10b,Glowing:1b} to any newly fired arrow near a player with /execute at @a as @e[type=arrow,distance=..3,tag=!c9_arrow] run data merge entity @s {Tags:["c9_arrow"],NoGravity:1b,PierceLevel:10b,Glowing:1b}.

Remove it again 6 commands

  1. /kill @e[tag=c9_turret]
  2. /kill @e[tag=c9_pad]
  3. /kill @e[tag=c9_dummy]
  4. /kill @e[tag=c9_arrow]
  5. /fill ~-12 ~ ~-2 ~12 ~3 ~2 air
  6. /scoreboard objectives remove c9_timer

FAQ

Why doesn't the arrow slow down or drop over long distances?

Arrows normally lose 1% of their speed every tick due to air drag. By merging a fixed Motion vector into the arrow every tick alongside NoGravity:1b, it keeps a constant velocity forever until it hits a block.

How does one arrow hit all four target dummies in a single shot?

The arrow is summoned with PierceLevel:10b, which is the same NBT tag used by the Piercing crossbow enchantment. It lets the arrow pass through up to 10 entities without stopping.

Commands used

/data/execute/fill/kill/particle/playsound/scoreboard/setblock/summon

Similar creations

Join 9Minecraft News & Guides