Build an automated tabletop tower defense game in vanilla Minecraft where glowing arcane towers fire laser beams at tiny marching husks along an S-shaped path.
Custom MobsMedievalMysticCyanGoldBlueMini-gameMap MakingItem displaysSummoned mobsBlock building (fill/setblock/clone)Glowing outlinesRotation math21+ commands
Miniature Siege Defense transforms a patch of ground into a live tabletop tower defense board using vanilla commands and entity scale attributes. Tiny glowing husks march out of a crimson spawn portal and follow a winding S-shaped path toward a floating beacon crystal while three automated arcane towers track and zap them with bright cyan laser beams.
Everything runs automatically without mods or data packs. The towers lock onto the nearest invader in range, fire continuous particle rays and lightning bursts, and defeat the miniature monsters in pops of soul fire flame before they reach the goal.
/scoreboard objectives add c9_t dummy/scoreboard objectives add c9_st dummy/fill ~-9 ~-1 ~-7 ~9 ~-1 ~7 mossy_stone_bricks/fill ~-8 ~-1 ~-5 ~-3 ~-1 ~-3 mud_bricks/fill ~-5 ~-1 ~-3 ~-3 ~-1 ~5 mud_bricks/fill ~-5 ~-1 ~3 ~2 ~-1 ~5 mud_bricks/fill ~ ~-1 ~-5 ~2 ~-1 ~5 mud_bricks/fill ~ ~-1 ~-5 ~8 ~-1 ~-3 mud_bricks/setblock ~-2 ~ ~ polished_deepslate_wall/summon marker ~ ~ ~ {Tags:["c9_all","c9_ctrl"]}/scoreboard players add @e[tag=c9_ctrl] c9_t 1/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 1 run summon item_display ~-2 ~1.7 ~ {Tags:["c9_all","c9_tower"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:conduit"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.3f,1.3f,1.3f]}}/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 1 run summon item_display ~-6.5 ~1.7 ~1 {Tags:["c9_all","c9_tower"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:conduit"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.3f,1.3f,1.3f]}}/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 1 run summon item_display ~4 ~1.7 ~ {Tags:["c9_all","c9_tower"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:conduit"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.3f,1.3f,1.3f]}}/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 1 run summon item_display ~7 ~1.2 ~-4 {Tags:["c9_all","c9_goal"],Glowing:1b,glow_color_override:16766720,item:{id:"minecraft:beacon"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.2f,1.2f,1.2f]}}/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 18.. run summon husk ~-7.5 ~ ~-4 {Tags:["c9_all","c9_mob"],NoAI:1b,Silent:1b,Glowing:1b,attributes:[{id:"minecraft:scale",base:0.45d}],equipment:{head:{id:"minecraft:golden_helmet",count:1}}}/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 18.. run scoreboard players set @e[tag=c9_ctrl] c9_t 2/execute as @e[tag=c9_mob] unless score @s c9_st matches 1.. run scoreboard players set @s c9_st 1/execute as @e[tag=c9_mob] at @s run scoreboard players add @s c9_t 1/execute as @e[tag=c9_mob,scores={c9_t=1..28}] at @s run tp @s ~0.12 ~ ~ facing ~1 ~ ~/execute as @e[tag=c9_mob,scores={c9_t=29..95}] at @s run tp @s ~ ~ ~0.12 facing ~ ~ ~1/execute as @e[tag=c9_mob,scores={c9_t=96..138}] at @s run tp @s ~0.12 ~ ~ facing ~1 ~ ~/execute as @e[tag=c9_mob,scores={c9_t=139..205}] at @s run tp @s ~ ~ ~-0.12 facing ~ ~ ~-1/execute as @e[tag=c9_tower] at @s facing entity @e[tag=c9_mob,distance=..7,sort=nearest,limit=1] feet positioned ^ ^ ^1.2 run particle dust{color:[0.0,1.0,1.0],scale:1.6} ^ ^ ^1.2 0.45 0.35 0.45 0 18 forceloop #6 Summons a miniature husk every 16 ticks at the start of the S-shaped path using the <code>minecraft:scale</code> attribute set to 0.45 and a golden helmet so it never burns in sunlight.loop #10 Moves each miniature husk along the five segments of the mud brick path based on its personal tick timer <code>c9_t</code>, turning corners cleanly at each bend.loop #14 Makes every arcane conduit tower face the closest miniature husk within 7 blocks and project a bright stream of cyan laser dust particles between the tower and the target.


Recorded on our own test server: 60 frames at about 9.8 fps. Our image check saw: A top-down view of a stone brick grid with an S-shaped path where tiny glowing entities walk toward a golden glowing crystal while three cyan-outlined towers shoot blue particle beams at them.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let real players place towers during a match, summon a tower wherever a player drops a named conduit item using /execute at @e[type=item,nbt={Item:{id:"minecraft:conduit"}}] run summon item_display ~ ~1.7 ~ {Tags:["c9_all","c9_tower"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:conduit"}} followed by killing the dropped item entity.
/kill @e[tag=c9_all]/scoreboard objectives remove c9_t/scoreboard objectives remove c9_st/fill ~-9 ~-1 ~-7 ~9 ~2 ~7 air/fill ~-9 ~-1 ~-7 ~9 ~-1 ~7 grass_blockThe helmets make them easy to spot from a top-down camera angle and prevent them from catching fire if you play the board during daytime.
Adjust the <code>minecraft:scale</code> base value in loop command 6 to change their size, or alter the step distance in the teleport commands (0.12 blocks per tick) to speed them up.
▶Lumbering Walking Castle BossCustom MobsExpert20 cmds
▶Fury of the Sentient GreatswordCustom MobsHard20 cmds
▶Temple Guardian MinibossCustom MobsExpert24 cmds
▶Combat-Ready Villager GuardianCustom MobsMedium21 cmds
▶Illusionist Pillager Boss DuelCustom MobsHard24 cmds
▶Matrix Volley EvasionCustom MobsMedium22 cmds