Hordes of miniature zombies march along a winding path while four elemental turrets automatically track, target, and blast them with colorful particle beams.
Mob ParadesMysticMedievalGreenBlackRainbowMini-gameMap MakingDecorationBlock displaysArmor standsRiding & passengersSummoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands
This command creation builds a working tower defense diorama right on your stage. A continuous wave of miniature, glowing zombies marches out of a dark portal and follows an S-shaped path toward the nexus beacon at the end of the track.
Four elemental turrets—Fire, Ice, Arcane, and Void—stand on obsidian pedestals along the curves. Using entity targeting and raycast steps, each turret rotates its crystal head toward the nearest monster and fires colorful particle beams that chip away at the wave before it can reach the goal.
/scoreboard objectives add c9_t dummy/scoreboard objectives add c9_hp dummy/fill ~-9 ~-1 ~-5 ~-3 ~-1 ~-3 deepslate_tile_slab[type=bottom]/fill ~-5 ~-1 ~-3 ~-3 ~-1 ~3 deepslate_tile_slab[type=bottom]/fill ~-3 ~-1 ~1 ~3 ~-1 ~3 deepslate_tile_slab[type=bottom]/fill ~3 ~-1 ~-3 ~5 ~-1 ~3 deepslate_tile_slab[type=bottom]/fill ~5 ~-1 ~-3 ~9 ~-1 ~-1 deepslate_tile_slab[type=bottom]/summon armor_stand ~-6 ~0.5 ~1 {NoGravity:1b,Invisible:1b,Marker:1b,Tags:["c9_td","c9_tur","c9_fire"],Passengers:[{id:"minecraft:block_display",Tags:["c9_td"],block_state:{Name:"minecraft:polished_blackstone_wall"},transformation:{scale:[0.8f,1.4f,0.8f],translation:[-0.4f,-0.9f,-0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_td","c9_head"],Glowing:1b,glow_color_override:16733525,block_state:{Name:"minecraft:magma_block"},transformation:{scale:[0.7f,0.7f,0.7f],translation:[-0.35f,0.3f,-0.35f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}]}/summon armor_stand ~-1 ~0.5 ~-2 {NoGravity:1b,Invisible:1b,Marker:1b,Tags:["c9_td","c9_tur","c9_ice"],Passengers:[{id:"minecraft:block_display",Tags:["c9_td"],block_state:{Name:"minecraft:polished_blackstone_wall"},transformation:{scale:[0.8f,1.4f,0.8f],translation:[-0.4f,-0.9f,-0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_td","c9_head"],Glowing:1b,glow_color_override:5636095,block_state:{Name:"minecraft:blue_ice"},transformation:{scale:[0.7f,0.7f,0.7f],translation:[-0.35f,0.3f,-0.35f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}]}/summon armor_stand ~1 ~0.5 ~5 {NoGravity:1b,Invisible:1b,Marker:1b,Tags:["c9_td","c9_tur","c9_arc"],Passengers:[{id:"minecraft:block_display",Tags:["c9_td"],block_state:{Name:"minecraft:polished_blackstone_wall"},transformation:{scale:[0.8f,1.4f,0.8f],translation:[-0.4f,-0.9f,-0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_td","c9_head"],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:amethyst_block"},transformation:{scale:[0.7f,0.7f,0.7f],translation:[-0.35f,0.3f,-0.35f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}]}/execute unless entity @e[tag=c9_void] run summon armor_stand ~6 ~0.5 ~1 {NoGravity:1b,Invisible:1b,Marker:1b,Tags:["c9_td","c9_tur","c9_void"],Passengers:[{id:"minecraft:block_display",Tags:["c9_td"],block_state:{Name:"minecraft:polished_blackstone_wall"},transformation:{scale:[0.8f,1.4f,0.8f],translation:[-0.4f,-0.9f,-0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_td","c9_head"],Glowing:1b,glow_color_override:5592575,block_state:{Name:"minecraft:crying_obsidian"},transformation:{scale:[0.7f,0.7f,0.7f],translation:[-0.35f,0.3f,-0.35f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}]}/scoreboard players add #tick c9_t 1/execute if score #tick c9_t matches 18.. run scoreboard players set #tick c9_t 0/execute if score #tick c9_t matches 0 run summon zombie ~-8 ~-0.5 ~-4 {Silent:1b,NoAI:1b,IsBaby:1b,Glowing:1b,Tags:["c9_td","c9_mob"],armor_items:[{},{},{},{id:"minecraft:NETHERITE_HELMET",count:1}],attributes:[{id:"minecraft:scale",base:0.75d}]}/execute as @e[tag=c9_mob] unless score @s c9_hp matches -100..500 run scoreboard players set @s c9_hp 24/execute as @e[tag=c9_mob] run scoreboard players add @s c9_t 1/execute as @e[tag=c9_mob,scores={c9_t=1..40}] at @s run tp @s ~0.1 ~ ~ ~-90 0/execute as @e[tag=c9_mob,scores={c9_t=41..100}] at @s run tp @s ~ ~ ~0.1 ~ 0/execute as @e[tag=c9_mob,scores={c9_t=101..180}] at @s run tp @s ~0.1 ~ ~ ~-90 0/execute as @e[tag=c9_mob,scores={c9_t=181..220}] at @s run tp @s ~ ~ ~-0.1 ~180 0/execute as @e[tag=c9_mob,scores={c9_t=221..265}] at @s run tp @s ~0.1 ~ ~ ~-90 0/execute as @e[tag=c9_tur] at @s facing entity @e[tag=c9_mob,distance=..6,sort=nearest,limit=1] feet run tp @s ~ ~ ~ ~ ~/execute if score #tick c9_t matches 5 as @e[tag=c9_tur] at @s if entity @e[tag=c9_mob,distance=..6] facing entity @e[tag=c9_mob,distance=..6,sort=nearest,limit=1] eyes positioned ~ ~0.65 ~ run particle dust{color:[1.0,0.3,0.0],scale:1.2} ^ ^ ^1 0.05 0.05 0.05 0 3 force/execute if score #tick c9_t matches 5 as @e[tag=c9_tur] at @s facing entity @e[tag=c9_mob,distance=..6,sort=nearest,limit=1] eyes positioned ~ ~0.65 ~ positioned ^ ^ ^2.2 run particle flame ~ ~ ~ 0.1 0.1 0.1 0.02 6 forcesetup #8 Summons an invisible marker armor stand for the Fire Turret with two block_display passengers: a blackstone wall base and a glowing magma block head.loop #4 Spawns a miniature glowing zombie every 18 ticks at the start of the sunken deepslate track, using the scale attribute to make it fit the diorama path.loop #7 Moves the monsters along the first leg of the winding path based on their individual lifetime timer score (c9_t), turning them to face the direction of travel.loop #12 Makes every turret automatically rotate to face the closest zombie within a 6-block radius.loop #13 Fires bursts of glowing particles along the turret's line of sight toward the targeted monster.


Recorded on our own test server: 41 frames at about 6.8 fps. Our image check saw: Miniature glowing entities march along a dark S-shaped path on a grassy platform while four colored turrets rotate beside the track.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let players place turrets dynamically, give yourself a spawn egg with a custom tag and summon the turret structure wherever that entity lands. You can also replace the fixed zombie path with standard AI zombies pathfinding toward a villager at the end of the track.
/tp @e[tag=c9_td] ~ ~-100 ~/kill @e[tag=c9_td]/fill ~-9 ~-1 ~-5 ~9 ~-1 ~5 grass_block/scoreboard objectives remove c9_t/scoreboard objectives remove c9_hpThey have NoAI enabled and are moved by a tick counter on the c9_t scoreboard. At exact tick milestones (40, 100, 180, 220), they switch direction by 90 degrees.
Yes! Change distance=..6 in the last three loop commands to any radius you want, such as distance=..10 for long-range sniper towers.
▶Carnival Carousel Pegasus StampedeMob ParadesHard24 cmds
▶Charging Vindicator CavalryMob ParadesEasy24 cmds
▶Choreographed Mob PatrolsMob ParadesMedium23 cmds
▶March of the Clone LegionMob ParadesMedium24 cmds
▶Sculk vs. Skeleton WarMob ParadesMedium21 cmds
▶Synchronized Pillager BattalionMob ParadesMedium24 cmds