Build an autonomous hovering laser drone in vanilla Minecraft using block displays and command blocks that tracks targets and fires a pulsing beam.
Lasers & BeamsTechnologySpaceCyanBluePvPBoss FightMap MakingBlock displaysArmor standsRotation math21+ commands
The Hovering Sentinel Laser Drone is an autonomous floating turret built with vanilla commands and glowing block displays. It keeps a strict standoff distance from its target, smoothly repositioning itself as the target wanders around the arena while hovering above the ground.
Every second, the drone charges up its sea lantern core with electric sparks and fires a bright laser beam directly at the target dummy, creating fiery impact particles on hit.
/scoreboard objectives add c9_timer dummy/summon marker ~ ~ ~ {Tags:["c9_ent","c9_center"]}/summon armor_stand ~ ~ ~4.5 {Tags:["c9_ent","c9_target"],NoGravity:1b,CustomName:{"text":"Target Dummy","color":"red"},CustomNameVisible:1b,Glowing:1b,equipment:{feet:{id:"minecraft:iron_boots",count:1},legs:{id:"minecraft:iron_leggings",count:1},chest:{id:"minecraft:iron_chestplate",count:1},head:{id:"minecraft:carved_pumpkin",count:1}}}/summon armor_stand ~ ~3.5 ~-2 {Tags:["c9_ent","c9_drone"],NoGravity:1b,Invisible:1b}/summon block_display ~ ~3.5 ~-2 {Tags:["c9_ent","c9_part"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:iron_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.8f,0.4f,0.8f],translation:[-0.4f,1.4f,-0.4f]}}/summon block_display ~ ~3.5 ~-2 {Tags:["c9_ent","c9_part"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.55f,0.55f,0.55f],translation:[-0.275f,1.32f,-0.275f]}}/summon block_display ~ ~3.5 ~-2 {Tags:["c9_ent","c9_part"],Glowing:1b,glow_color_override:16724787,block_state:{Name:"minecraft:dark_prismarine"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.25f,0.25f,1.0f],translation:[-0.125f,1.5f,0.0f]}}/scoreboard players add @e[tag=c9_center] c9_timer 1/scoreboard players reset @e[tag=c9_center,scores={c9_timer=25..}] c9_timer/execute as @e[tag=c9_center] at @s run tp @s ~ ~ ~ ~2.5 ~/execute at @e[tag=c9_center] run tp @e[tag=c9_target] ^ ^ ^4.5 ~2.5 ~/execute at @e[tag=c9_target] run particle dust{color:[1.0,0.6,0.1],scale:1.2} ~ ~0.2 ~ 0.2 0.1 0.2 0 2 force/execute as @e[tag=c9_drone] at @s facing entity @e[tag=c9_target,limit=1] feet positioned ^ ^ ^0.18 positioned ~ ~-0.08 ~ if entity @e[tag=c9_target,distance=4.3..] run tp @s ~ ~ ~ ~ ~/execute as @e[tag=c9_drone] at @s facing entity @e[tag=c9_target,limit=1] feet positioned ^ ^ ^-0.15 positioned ~ ~-0.08 ~ if entity @e[tag=c9_target,distance=..3.9] run tp @s ~ ~ ~ ~ ~/execute as @e[tag=c9_drone] at @s positioned ~ ~-3.5 ~ if block ~ ~ ~ grass_block run tp @s ~ ~3.65 ~/execute as @e[tag=c9_drone] at @s facing entity @e[tag=c9_target,limit=1] eyes run tp @s ~ ~ ~ ~ ~/execute at @e[tag=c9_drone] run tp @e[tag=c9_part] ~ ~ ~ ~ ~/execute at @e[tag=c9_drone] run particle dust{color:[0.1,0.9,1.0],scale:1.3} ~ ~1.3 ~ 0.25 0.1 0.25 0 3 force/execute if score @e[tag=c9_center,limit=1] c9_timer matches 13..19 at @e[tag=c9_drone] run particle electric_spark ^ ^1.6 ^0.8 0.1 0.1 0.1 0.05 5 force/execute if score @e[tag=c9_center,limit=1] c9_timer matches 20..24 at @e[tag=c9_drone] anchored eyes run particle dust{color:[1.0,0.1,0.2],scale:1.6} ^ ^ ^1.2 0 0 0 0 3 force/execute if score @e[tag=c9_center,limit=1] c9_timer matches 20..24 at @e[tag=c9_drone] anchored eyes run particle dust{color:[1.0,0.5,0.1],scale:1.6} ^ ^ ^2.6 0 0 0 0 3 forcesetup #5 Summons the main chassis of the drone using an <code>iron_block</code> display entity with a cyan glowing outline, offset to sit at the invisible armor stand's eye level.loop #6 Faces the target dummy and moves the drone forward by 0.18 blocks along its line of sight while gently descending, but only if the target is more than 4.3 blocks away.loop #7 Backs the drone away by 0.15 blocks if the target gets closer than 3.9 blocks, keeping a steady 4-block standoff distance.loop #8 Checks 3.5 blocks below the drone for the floor and nudges the drone upward so it always hovers above the ground.loop #13 Fires the laser beam between ticks 20 and 24 of the cycle using red and orange dust particles projected along the drone's exact viewing angle.


Recorded on our own test server: 50 frames at about 8.3 fps. Our image check saw: A small glowing cyan block display drone hovers at a distance from a moving target dummy on a grass platform at night, emitting blue sparks in the final frame, though no laser beam is fired in these specific frames and a stray cyan line crosses the sky.
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 drone track and attack a real survival player instead of the target dummy, skip summoning the c9_target armor stand and replace every instance of @e[tag=c9_target,limit=1] and @e[tag=c9_target] in the loop commands with @p[gamemode=survival]. You can also add an instant damage or wither effect on tick 20 when the laser fires.
/kill @e[tag=c9_ent]/scoreboard objectives remove c9_timerCombining an iron block body, a full-brightness sea lantern core, and a dark prismarine barrel gives the turret a distinct sci-fi silhouette and lets each part glow in a different color.
In loop command 8, change the <code>~ ~-3.5 ~</code> check and <code>~ ~3.65 ~</code> teleport offset to a higher or lower value to adjust how high it floats above the floor.
▶Automated Sentinel TurretLasers & BeamsMedium24 cmds
▶DNA Helix Biotic Disintegrator RifleLasers & BeamsHard19 cmds
▶Futuristic Plasma CannonLasers & BeamsMedium24 cmds
▶Orbital Death LaserLasers & BeamsMedium22 cmds
▶Orbital Starter-Base ObliteratorLasers & BeamsMedium21 cmds
▶Orbital Strike Laser BeamLasers & BeamsMedium21 cmds