Track-Mounted Auto-Turret

Build a glowing Track-Mounted Auto-Turret in Minecraft that glides around a circular rail, tracks approaching monsters, and blasts them with laser beams.

Java EditionWands, Weapons & ToolsMedium24 commandsTested on a real 26.2 & 26.3 server
An automated gold and red turret orbits a central beacon core, firing red lasers at a husk. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 polished_deepslate
  3. /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 sea_lantern
  4. /fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 chiseled_deepslate
  5. /fill ~-1 ~-1 ~-1 ~1 ~1 ~1 beacon
  6. /summon armor_stand ~ ~1 ~ {Tags:["c9_center"],NoGravity:1b,Invisible:1b,Marker:1b}
  7. /summon armor_stand ~ ~0.6 ~4.5 {Tags:["c9_turret"],NoGravity:1b,Invisible:1b,Marker:1b}
  8. /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]}}
  9. /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]}}
  10. /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]}}

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

  1. /scoreboard players add @e[tag=c9_center] c9_timer 1
  2. /execute if score @e[tag=c9_center,limit=1] c9_timer matches 40.. run scoreboard players set @e[tag=c9_center] c9_timer 0
  3. /execute as @e[tag=c9_center] at @s run tp @s ~ ~ ~ ~6 ~
  4. /execute at @e[tag=c9_center,limit=1] positioned ^ ^-0.4 ^4.5 run tp @e[tag=c9_turret] ~ ~ ~
  5. /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}
  6. /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}
  7. /execute as @e[tag=c9_turret] at @s facing entity @e[tag=c9_center,limit=1] feet run tp @s ~ ~ ~ ~180 0
  8. /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 ~ ~ ~ ~ ~
  9. /execute at @e[tag=c9_turret,limit=1] run tp @e[tag=c9_part] ~ ~ ~ ~ ~
  10. /execute at @e[tag=c9_turret] run particle electric_spark ~ ~-0.4 ~ 0.6 0.1 0.6 0.05 5
  11. /execute at @e[tag=c9_turret] run particle flame ^ ^0.3 ^1.8 0.1 0.1 0.1 0.02 2
  12. /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
  13. /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
  14. /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 1

How it works

Frames from the test run

Track-Mounted Auto-Turret - frame 1Track-Mounted Auto-Turret - frame 2Track-Mounted Auto-Turret - frame 3

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.

Build it in your world

  1. Stand in the middle of a flat open area and run each of the setup commands once in chat to build the glowing perimeter track, central beacon core, and turret parts.
  2. Place a line of 14 repeating command blocks nearby and set all of them to Always Active.
  3. Paste one loop command into each repeating command block in order.
  4. Ensure the repeating command blocks are executed relative to the exact center of the arena platform so the track and spawns align.
  5. Watch the glowing auto-turret orbit the beacon core, lock onto spawning husks, and blast them with laser particles.

Use it with real players

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.

Remove it again 7 commands

  1. /kill @e[tag=c9_center]
  2. /kill @e[tag=c9_turret]
  3. /kill @e[tag=c9_part]
  4. /kill @e[tag=c9_mob]
  5. /scoreboard objectives remove c9_timer
  6. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 grass_block
  7. /fill ~-1 ~ ~-1 ~1 ~1 ~1 air

FAQ

How do I make the turret move faster or slower along the track?

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

Can I change the size of the track?

Yes, change the ^4.5 distance in the fourth loop command to match the radius of your custom track ring.

Commands used

/execute/fill/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides