Hovering Sentinel Laser Drone

Build an autonomous hovering laser drone in vanilla Minecraft using block displays and command blocks that tracks targets and fires a pulsing beam.

Java EditionWands, Weapons & ToolsMedium21 commandsTested on a real 26.2 & 26.3 server
A glowing blue sentinel drone hovers near a target dummy on a grassy Minecraft arena at night. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 7 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /summon marker ~ ~ ~ {Tags:["c9_ent","c9_center"]}
  3. /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}}}
  4. /summon armor_stand ~ ~3.5 ~-2 {Tags:["c9_ent","c9_drone"],NoGravity:1b,Invisible:1b}
  5. /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]}}
  6. /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]}}
  7. /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]}}

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

  1. /scoreboard players add @e[tag=c9_center] c9_timer 1
  2. /scoreboard players reset @e[tag=c9_center,scores={c9_timer=25..}] c9_timer
  3. /execute as @e[tag=c9_center] at @s run tp @s ~ ~ ~ ~2.5 ~
  4. /execute at @e[tag=c9_center] run tp @e[tag=c9_target] ^ ^ ^4.5 ~2.5 ~
  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
  6. /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 ~ ~ ~ ~ ~
  7. /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 ~ ~ ~ ~ ~
  8. /execute as @e[tag=c9_drone] at @s positioned ~ ~-3.5 ~ if block ~ ~ ~ grass_block run tp @s ~ ~3.65 ~
  9. /execute as @e[tag=c9_drone] at @s facing entity @e[tag=c9_target,limit=1] eyes run tp @s ~ ~ ~ ~ ~
  10. /execute at @e[tag=c9_drone] run tp @e[tag=c9_part] ~ ~ ~ ~ ~
  11. /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
  12. /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
  13. /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
  14. /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 force

How it works

Frames from the test run

Hovering Sentinel Laser Drone - frame 1Hovering Sentinel Laser Drone - frame 2Hovering Sentinel Laser Drone - frame 3

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.

Build it in your world

  1. Stand in the center of a flat open area and run all 7 setup commands in chat to create the scoreboard, target dummy, and drone display parts.
  2. Place a line of 14 Repeating Command Blocks set to Always Active (or 1 Repeating Command Block connected to 13 Chain Command Blocks).
  3. Paste the 14 loop commands in order into the command blocks.
  4. Watch the target dummy orbit the arena while the sentinel drone hovers, maintains distance, and fires its laser every second.
  5. When finished, run the remove commands to clean up all entities and the scoreboard objective.

Use it with real players

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.

Remove it again 2 commands

  1. /kill @e[tag=c9_ent]
  2. /scoreboard objectives remove c9_timer

FAQ

Why does the drone use three separate block displays?

Combining 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.

How do I change the hover height of the drone?

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.

Commands used

/execute/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides