Build a hovering Elder Guardian laser turret in Minecraft Java Edition that sweeps the floor with particle beams and vaporizes intruding mobs on contact.
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.
/scoreboard objectives add c9_timer dummy/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:dark_prismarine/fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 minecraft:sea_lantern/setblock ~ ~ ~ minecraft:dark_prismarine_stairs[facing=east]/setblock ~ ~ ~-1 minecraft:dark_prismarine_stairs[facing=south]/setblock ~ ~ ~1 minecraft:dark_prismarine_stairs[facing=north]/setblock ~-1 ~ ~ minecraft:dark_prismarine_stairs[facing=east]/setblock ~1 ~ ~ minecraft:dark_prismarine_stairs[facing=west]/setblock ~ ~1 ~ minecraft:beacon/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]}/scoreboard players add #tick c9_timer 1/execute if score #tick c9_timer matches 40.. run scoreboard players set #tick c9_timer 0/execute as @e[tag=c9_sentinel] at @s run tp @s ~ ~ ~ ~4.5 30/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/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/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/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/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/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/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/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/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/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/execute as @e[tag=c9_sentinel] at @s anchored eyes positioned ^ ^ ^7.5 run kill @e[tag=c9_target,distance=..2.8]/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"}'}/execute if score #tick c9_timer matches 1 run spreadplayers ~ ~ 5 8 false @e[tag=c9_target,distance=..2]setup #10 Summons the hovering Elder Guardian 4.5 blocks above the stage centre with a 30-degree downward pitch so its eye points toward a circle on the floor.loop #3 Rotates the sentinel by 4.5 degrees every tick while locking its pitch at 30 degrees, completing a full 360-degree sweep every 4 seconds.loop #5 Uses local coordinates (^ ^ ^) anchored at the guardian's eyes to draw the optical laser beam in 1.5-block steps down to the ground impact point at ^ ^ ^9.0.loop #12 Checks a detection zone along the lower half of the laser beam (^ ^ ^7.5 with a 2.8-block radius) and erupts soul fire particles on any tagged target caught in the ray.loop #15 Spawns a glowing Husk intruder every 2 seconds (40 ticks) if fewer than 6 targets exist, then immediately uses spreadplayers in the next command to place it along the laser's patrol ring.


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.
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.
/kill @e[tag=c9_ent]/scoreboard objectives remove c9_timer/fill ~-2 ~ ~-2 ~2 ~2 ~2 minecraft:air/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:grass_blockAdjust 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.
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.
/execute/fill/kill/particle/playsound/scoreboard/setblock/spreadplayers/summon/tp
▶Armor Stand Circle GeneratorRings & OrbitsEasy17 cmds
▶3D Atomic Particle Model in Vanilla MinecraftRings & OrbitsMedium24 cmds
▶Bullet Hell Particle StormRings & OrbitsHard20 cmds
▶Holographic Mob RadarRings & OrbitsEasy23 cmds
▶Orbiting Atomic ParticlesRings & OrbitsMedium24 cmds
▶Sci-Fi Hologram ProjectorRings & OrbitsHard24 cmds