Sweeping Optical Security Sentinel

Build a hovering Elder Guardian laser turret in Minecraft Java Edition that sweeps the floor with particle beams and vaporizes intruding mobs on contact.

Java EditionParticle ArtMedium26 commandsTested on a real 26.2 & 26.3 server
A floating Elder Guardian turret sweeps a glowing red laser beam across the arena to eliminate targets. Download the GIF Video & GIF © www.9minecraft.net

Rings & OrbitsTechnologyOceanRedCyanBlueAdventure MapMini-gameMap MakingSummoned mobsBlock building (fill/setblock/clone)SoundsRotation math21+ commands

The Sweeping Optical Security Sentinel turns an Elder Guardian into a floating automated laser turret perched atop a dark prismarine and beacon pedestal. It continuously rotates over the arena, projecting a glowing red optical laser beam down to the floor where a burning scorching point traces a circle around the base.

Wandering test targets periodically spawn around the perimeter. When the sweeping laser crosses their path, the sentinel triggers a high-energy discharge that vaporizes the intruder in a burst of soul fire, flash particles, and thunderous sound effects.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:dark_prismarine
  3. /fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 minecraft:sea_lantern
  4. /setblock ~ ~ ~ minecraft:dark_prismarine_stairs[facing=east]
  5. /setblock ~ ~ ~-1 minecraft:dark_prismarine_stairs[facing=south]
  6. /setblock ~ ~ ~1 minecraft:dark_prismarine_stairs[facing=north]
  7. /setblock ~-1 ~ ~ minecraft:dark_prismarine_stairs[facing=east]
  8. /setblock ~1 ~ ~ minecraft:dark_prismarine_stairs[facing=west]
  9. /setblock ~ ~1 ~ minecraft:beacon
  10. /summon minecraft:elder_guardian ~ ~4.5 ~ {Tags:["c9_ent","c9_sentinel"],NoAI:1b,NoGravity:1b,Silent:1b,Glowing:1b,Invulnerable:1b,Rotation:[0.0f,30.0f]}

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

  1. /scoreboard players add #tick c9_timer 1
  2. /execute if score #tick c9_timer matches 40.. run scoreboard players set #tick c9_timer 0
  3. /execute as @e[tag=c9_sentinel] at @s run tp @s ~ ~ ~ ~4.5 30
  4. /execute as @e[tag=c9_sentinel] at @s run particle minecraft:electric_spark ~ ~0.5 ~ 0.6 0.6 0.6 0.05 4 force
  5. /execute as @e[tag=c9_sentinel] at @s anchored eyes run particle minecraft:dust{color:[1.0,0.1,0.1],scale:1.5} ^ ^ ^1.5 0.05 0.05 0.05 0 3 force
  6. /execute as @e[tag=c9_sentinel] at @s anchored eyes run particle minecraft:dust{color:[1.0,0.15,0.0],scale:1.4} ^ ^ ^3.0 0.05 0.05 0.05 0 3 force
  7. /execute as @e[tag=c9_sentinel] at @s anchored eyes run particle minecraft:dust{color:[1.0,0.2,0.0],scale:1.3} ^ ^ ^4.5 0.05 0.05 0.05 0 3 force
  8. /execute as @e[tag=c9_sentinel] at @s anchored eyes run particle minecraft:dust{color:[1.0,0.25,0.0],scale:1.3} ^ ^ ^6.0 0.05 0.05 0.05 0 3 force
  9. /execute as @e[tag=c9_sentinel] at @s anchored eyes run particle minecraft:dust{color:[1.0,0.3,0.0],scale:1.4} ^ ^ ^7.5 0.05 0.05 0.05 0 4 force
  10. /execute as @e[tag=c9_sentinel] at @s anchored eyes run particle minecraft:dust{color:[1.0,0.4,0.1],scale:1.6} ^ ^ ^9.0 0.1 0.1 0.1 0 5 force
  11. /execute as @e[tag=c9_sentinel] at @s anchored eyes positioned ^ ^ ^9.0 run particle minecraft:lava ~ ~ ~ 0.2 0.1 0.2 0 2 force
  12. /execute as @e[tag=c9_sentinel] at @s anchored eyes positioned ^ ^ ^7.5 as @e[tag=c9_target,distance=..2.8] at @s run particle minecraft:soul_fire_flame ~ ~1 ~ 0.4 0.8 0.4 0.15 45 force
  13. /execute as @e[tag=c9_sentinel] at @s anchored eyes positioned ^ ^ ^7.5 as @e[tag=c9_target,distance=..2.8] at @s run playsound minecraft:entity.elder_guardian.curse master @a ~ ~ ~ 1.5 1.8
  14. /execute as @e[tag=c9_sentinel] at @s anchored eyes positioned ^ ^ ^7.5 run kill @e[tag=c9_target,distance=..2.8]
  15. /execute if score #tick c9_timer matches 1 unless entity @e[tag=c9_target,limit=6] run summon minecraft:husk ~ ~1 ~ {Tags:["c9_ent","c9_target"],Glowing:1b,Silent:1b,CustomName:'{"text":"Intruder","color":"red"}'}
  16. /execute if score #tick c9_timer matches 1 run spreadplayers ~ ~ 5 8 false @e[tag=c9_target,distance=..2]

How it works

Frames from the test run

Sweeping Optical Security Sentinel - frame 1Sweeping Optical Security Sentinel - frame 2Sweeping Optical Security Sentinel - frame 3

Recorded on our own test server: 58 frames at about 9.7 fps. Our image check saw: A glowing Elder Guardian floats above a dark prismarine and beacon pedestal, rotating and firing a red particle beam in a circle on the ground while hitting husk targets with blue flame particles.

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 area where you want the sentinel tower to sit.
  2. Run each command from the Setup list in chat or put them in a chain of impulse command blocks triggered once.
  3. Place 16 repeating command blocks (or 1 repeating followed by 15 chain command blocks, all set to Always Active) near the stage.
  4. Paste each command from the Loop list into the repeating/chain blocks in order.
  5. If your command blocks are not at the exact centre of the turret base, wrap the coordinate-based loop commands with execute positioned X Y Z run so they stay aligned with the pedestal.

Use it with real players

To make the sentinel target real survival players instead of test Husks, replace tag=c9_target in loop commands 12, 13, and 14 with type=minecraft:player,gamemode=survival, and swap the /kill command for /damage @s 12 minecraft:magic so players take heavy laser damage instead of dying instantly. You can then omit the last two loop commands that spawn the test mobs.

Remove it again 4 commands

  1. /kill @e[tag=c9_ent]
  2. /scoreboard objectives remove c9_timer
  3. /fill ~-2 ~ ~-2 ~2 ~2 ~2 minecraft:air
  4. /fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:grass_block

FAQ

How do I change the radius of the laser sweep on the floor?

Adjust the pitch angle (the 30 in the teleport command tp @s ~ ~ ~ ~4.5 30). A lower pitch like 20 pushes the beam farther out, while a steeper pitch like 45 pulls the circle closer to the pedestal.

Why does the Husk spawn at the centre before moving outward?

Summoning at the centre and immediately running spreadplayers in the same tick randomizes the mob's position between 5 and 8 blocks away without needing extra marker entities.

Commands used

/execute/fill/kill/particle/playsound/scoreboard/setblock/spreadplayers/summon/tp

Similar creations

Join 9Minecraft News & Guides