Three glowing elemental turrets track invaders marching along a dark stone track, firing homing fire, frost, and arcane orbs to guard a beacon core.
SimulationsMysticEndDarkPurpleBlackOrangeMini-gameAdventure MapMap MakingBlock displaysItem displaysSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands
Armored husks march automatically along a winding stone and purpur gauntlet while three levitating elemental sentries lock on and bombard them with homing projectiles. A magenta beacon marks the core at the center of the arena.
Everything runs on command blocks with zero player input, using block-guided pathfinding and smooth block_display rotation so the siege plays out continuously on its own.
/scoreboard objectives add c9t dummy/fill ~-15 ~-1 ~-11 ~12 ~-1 ~-9 minecraft:deepslate_tiles/fill ~10 ~-1 ~-11 ~12 ~-1 ~1 minecraft:cracked_deepslate_tiles/fill ~1 ~-1 ~-1 ~12 ~-1 ~1 minecraft:purpur_block/fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 minecraft:iron_block/setblock ~ ~ ~ minecraft:beacon/setblock ~ ~1 ~ minecraft:magenta_stained_glass/summon minecraft:block_display ~-6 ~1.5 ~-4 {Tags:["c9_turret","c9_fire"],Glowing:1b,teleport_duration:2,block_state:{Name:"minecraft:magma_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.5f,-0.5f,-0.5f],scale:[1f,1f,1f]}}/summon minecraft:block_display ~6 ~1.5 ~-4 {Tags:["c9_turret","c9_frost"],Glowing:1b,teleport_duration:2,block_state:{Name:"minecraft:blue_ice"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.5f,-0.5f,-0.5f],scale:[1f,1f,1f]}}/summon minecraft:block_display ~ ~1.5 ~5 {Tags:["c9_turret","c9_arc"],Glowing:1b,teleport_duration:2,block_state:{Name:"minecraft:amethyst_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.5f,-0.5f,-0.5f],scale:[1f,1f,1f]}}/scoreboard players add #tick c9t 1/execute if score #tick c9t matches 20.. run scoreboard players set #tick c9t 0/execute if score #tick c9t matches 1 positioned ~-14 ~ ~-10 unless entity @e[tag=c9_mob,distance=..2] run summon minecraft:husk ~ ~ ~ {Tags:["c9_mob"],NoAI:1b,Glowing:1b,Silent:1b,equipment:{head:{id:"minecraft:iron_helmet",count:1},chest:{id:"minecraft:chainmail_chestplate",count:1}}}/execute as @e[tag=c9_mob] at @s if block ~ ~-1 ~ minecraft:deepslate_tiles run tp @s ~0.22 ~ ~ -90 0/execute as @e[tag=c9_mob] at @s if block ~ ~-1 ~ minecraft:cracked_deepslate_tiles run tp @s ~ ~ ~0.22 0 0/execute as @e[tag=c9_mob] at @s if block ~ ~-1 ~ minecraft:purpur_block run tp @s ~-0.22 ~ ~ 90 0/kill @e[tag=c9_mob,distance=..2.6]/execute as @e[tag=c9_turret] at @s facing entity @e[tag=c9_mob,limit=1,sort=nearest,distance=..13] eyes run tp @s ~ ~ ~ ~ ~/execute if score #tick c9t matches 4 as @e[tag=c9_fire] at @s if entity @e[tag=c9_mob,distance=..13] run summon minecraft:item_display ~ ~ ~ {Tags:["c9_orb"],Glowing:1b,billboard:"center",teleport_duration:1,item:{id:"minecraft:fire_charge",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.7f,0.7f,0.7f]}}/execute if score #tick c9t matches 10 as @e[tag=c9_frost] at @s if entity @e[tag=c9_mob,distance=..13] run summon minecraft:item_display ~ ~ ~ {Tags:["c9_orb"],Glowing:1b,billboard:"center",teleport_duration:1,item:{id:"minecraft:blue_ice",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.6f,0.6f,0.6f]}}/execute if score #tick c9t matches 16 as @e[tag=c9_arc] at @s if entity @e[tag=c9_mob,distance=..13] run summon minecraft:item_display ~ ~ ~ {Tags:["c9_orb"],Glowing:1b,billboard:"center",teleport_duration:1,item:{id:"minecraft:ender_pearl",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.7f,0.7f,0.7f]}}/execute as @e[tag=c9_orb] at @s facing entity @e[tag=c9_mob,limit=1,sort=nearest,distance=..32] eyes run tp @s ^ ^ ^0.75 ~ ~/execute as @e[tag=c9_orb] at @s if entity @e[tag=c9_mob,distance=..2.0] run damage @e[tag=c9_mob,limit=1,sort=nearest,distance=..2.0] 2 minecraft:magic/execute as @e[tag=c9_orb] at @s if entity @e[tag=c9_mob,distance=..2.0] run kill @ssetup #8 Summons the Pyro turret as a glowing <code>block_display</code> with <code>teleport_duration:2</code> and a centered translation offset so it rotates smoothly around its middle.loop #3 Spawns one glowing armored husk every 20 ticks at the northwest entrance, checking <code>unless entity</code> so waves never stack on top of each other.loop #4 Reads the block directly beneath each invader to steer it east along <code>deepslate_tiles</code>, while the next two loop commands turn it south on cracked tiles and west on purpur.loop #8 Aims every <code>c9_turret</code> toward the nearest invader within 13 blocks using <code>facing entity ... eyes</code>.loop #12 Steers all active elemental orbs toward the closest invader at 0.75 blocks per tick before the final two commands deal magic damage and remove the orb on impact.


Recorded on our own test server: 58 frames at about 9.6 fps. Our image check saw: Glowing armored mobs march along a blackstone and purpur path toward a magenta beacon while three floating elemental blocks shoot projectiles at them.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
You can fight alongside the turrets with no extra setup: because the invaders have NoAI:1b, they keep marching along the track while you intercept survivors with a bow or sword before they reach the central beacon.
/kill @e[tag=c9_turret]/kill @e[tag=c9_mob]/kill @e[tag=c9_orb]/scoreboard objectives remove c9t/fill ~-15 ~-1 ~-11 ~12 ~-1 ~1 minecraft:grass_block/fill ~-1 ~0 ~-1 ~1 ~1 ~1 minecraft:airEach path segment uses a different floor block (deepslate tiles, cracked deepslate tiles, and purpur blocks), and the loop checks the block underneath each husk to decide which direction it moves.
Yes. Increase the damage value in the thirteenth loop command from 2 to a higher number, or add extra matching tick checks in the turret firing commands.
▶Procedural Reaching Abyssal TendrilSimulationsExpert24 cmds
▶Bioluminescent Mycelium Spore Network PulseSimulationsMedium24 cmds
▶Automated Siege Defense GauntletSimulationsExpert24 cmds
▶Autonomous Lane Siege DefenseSimulationsExpert24 cmds
▶Self-Playing Siege GauntletSimulationsHard24 cmds
▶Spreading Glitch InfectionSimulationsMedium23 cmds