Build a glowing Track-Mounted Auto-Turret in Minecraft that glides around a circular rail, tracks approaching monsters, and blasts them with laser beams.
Lasers & BeamsTechnologyIndustrialRedGoldOrangeMini-gameAdventure MapPvPBlock displaysArmor standsSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)Glowing outlinesRotation math21+ commands
The Track-Mounted Auto-Turret is an automated defense cart that orbits a glowing power core along a circular rail. Built using scaled block displays, the armored turret smoothly glides around the perimeter while its upper cannon independently swivels to lock onto nearby threats.
Whenever hostile targets enter the arena, the turret aims its twin-linked barrel and fires rapid bursts of crimson laser beams and explosive sparks to keep the center platform safe.
/scoreboard objectives add c9_timer dummy/fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 polished_deepslate/fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 sea_lantern/fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 chiseled_deepslate/fill ~-1 ~-1 ~-1 ~1 ~1 ~1 beacon/summon armor_stand ~ ~1 ~ {Tags:["c9_center"],NoGravity:1b,Invisible:1b,Marker:1b}/summon armor_stand ~ ~0.6 ~4.5 {Tags:["c9_turret"],NoGravity:1b,Invisible:1b,Marker:1b}/summon block_display ~ ~0.6 ~4.5 {Tags:["c9_part"],Glowing:1b,glow_color_override:65535,teleport_duration:1,block_state:{Name:"minecraft:iron_block"},transformation:{translation:[-0.8f,-0.6f,-0.8f],scale:[1.6f,0.5f,1.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~0.6 ~4.5 {Tags:["c9_part"],Glowing:1b,glow_color_override:16755200,teleport_duration:1,block_state:{Name:"minecraft:gold_block"},transformation:{translation:[-0.5f,-0.1f,-0.5f],scale:[1.0f,0.8f,1.0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~0.6 ~4.5 {Tags:["c9_part"],Glowing:1b,glow_color_override:16711680,teleport_duration:1,block_state:{Name:"minecraft:redstone_block"},transformation:{translation:[-0.2f,0.1f,0.2f],scale:[0.4f,0.4f,1.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/scoreboard players add @e[tag=c9_center] c9_timer 1/execute if score @e[tag=c9_center,limit=1] c9_timer matches 40.. run scoreboard players set @e[tag=c9_center] c9_timer 0/execute as @e[tag=c9_center] at @s run tp @s ~ ~ ~ ~6 ~/execute at @e[tag=c9_center,limit=1] positioned ^ ^-0.4 ^4.5 run tp @e[tag=c9_turret] ~ ~ ~/execute if score @e[tag=c9_center,limit=1] c9_timer matches 1 unless entity @e[tag=c9_mob,limit=4] run summon husk ~3 ~ ~3 {Tags:["c9_mob"],Glowing:1b,Silent:1b}/execute if score @e[tag=c9_center,limit=1] c9_timer matches 21 unless entity @e[tag=c9_mob,limit=4] run summon husk ~-3 ~ ~-3 {Tags:["c9_mob"],Glowing:1b,Silent:1b}/execute as @e[tag=c9_turret] at @s facing entity @e[tag=c9_center,limit=1] feet run tp @s ~ ~ ~ ~180 0/execute as @e[tag=c9_turret] at @s if entity @e[tag=c9_mob] facing entity @e[tag=c9_mob,sort=nearest,limit=1] feet run tp @s ~ ~ ~ ~ ~/execute at @e[tag=c9_turret,limit=1] run tp @e[tag=c9_part] ~ ~ ~ ~ ~/execute at @e[tag=c9_turret] run particle electric_spark ~ ~-0.4 ~ 0.6 0.1 0.6 0.05 5/execute at @e[tag=c9_turret] run particle flame ^ ^0.3 ^1.8 0.1 0.1 0.1 0.02 2/execute if score @e[tag=c9_center,limit=1] c9_timer matches 10 as @e[tag=c9_turret] at @s if entity @e[tag=c9_mob] run particle sweep_attack ^ ^0.3 ^2.0 0 0 0 0 1/execute if score @e[tag=c9_center,limit=1] c9_timer matches 10..15 at @e[tag=c9_turret] if entity @e[tag=c9_mob] run particle dust{color:[1.0,0.1,0.1],scale:2.0} ^ ^0.3 ^2.5 0.1 0.1 0.1 0 8/execute if score @e[tag=c9_center,limit=1] c9_timer matches 15 at @e[tag=c9_mob,sort=nearest,limit=1] run particle explosion ~ ~1 ~ 0.2 0.2 0.2 0 1loop #3 Rotates the invisible center anchor by 6 degrees every tick to act as a central turntable for the track.loop #4 Teleports the turret core 4.5 blocks forward from the rotating center anchor, moving it smoothly in a circle around the sea lantern perimeter.loop #8 Rotates the turret core to face the nearest target mob so its barrel tracks enemies while gliding along the track.loop #9 Teleports the glowing iron base, golden head, and redstone laser barrel block displays to match the turret core's position and aiming angle.loop #13 Fires a dense stream of bright red laser particles forward from the tip of the cannon barrel during the firing phase of the timer.


Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: A block-display turret with a gold head and red barrels orbits a central cube of beacons, leaving a circular trail of flame particles and shooting red laser particles at a nearby husk.
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 turret defend against any hostile monster or enemy player in survival mode, replace @e[tag=c9_mob] in the targeting and firing commands with @e[type=#minecraft:raiders,distance=..15] or @a[gamemode=survival,distance=2..15], and add a /damage @e[tag=c9_mob,sort=nearest,limit=1] 6 minecraft:magic command on tick 15.
/kill @e[tag=c9_center]/kill @e[tag=c9_turret]/kill @e[tag=c9_part]/kill @e[tag=c9_mob]/scoreboard objectives remove c9_timer/fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 grass_block/fill ~-1 ~ ~-1 ~1 ~1 ~1 airChange the rotation angle in the third loop command from ~6 to a larger number like ~10 for faster movement, or ~3 for a slower glide.
Yes, change the ^4.5 distance in the fourth loop command to match the radius of your custom track ring.
▶Planetary Defense Plasma CannonLasers & BeamsHard24 cmds
▶Autonomous Laser Sentry TurretLasers & BeamsMedium24 cmds
▶Automated Defense TurretsLasers & BeamsMedium26 cmds
▶Automated Sentinel TurretLasers & BeamsMedium24 cmds
▶Autonomous Defense TurretLasers & BeamsMedium24 cmds
▶Autonomous Lightning TurretLasers & BeamsMedium26 cmds