Build a towering two-legged walker out of vanilla block displays that patrols the arena, swings its heavy stone legs, and blasts targets with plasma.
Custom MobsTechnologyIndustrialCyanBlackOrangeBoss FightAdventure MapPvPBlock displaysSmooth animation (interpolation)Summoned mobsSoundsRotation math21+ commands
The Autonomous Scout Mech is a towering two-legged walker built entirely out of vanilla block displays and driven by an invisible iron golem AI core. As it patrols the arena, its heavy smooth stone and deepslate legs swing back and forth using smooth display interpolation, kicking up smoke and deep anvil footsteps with every stride.
A glowing sea lantern visor scans for nearby hostile targets while twin shoulder-mounted dispensers lock on and fire homing flame projectiles.
/scoreboard objectives add c9_timer dummy/summon iron_golem ~ ~ ~ {CustomName:{"text":"Scout Mech","color":"aqua"},Tags:["c9_mech","c9_ent"],Silent:1b,Invulnerable:1b,PersistenceRequired:1b,active_effects:[{id:"minecraft:invisibility",duration:999999,show_particles:0b},{id:"minecraft:slowness",amplifier:1,duration:999999,show_particles:0b}]}/summon block_display ~ ~ ~ {Tags:["c9_part","c9_body","c9_ent"],teleport_duration:2,interpolation_duration:4,block_state:{Name:"minecraft:smooth_stone"},transformation:{translation:[-0.75f,1.7f,-0.75f],scale:[1.5f,1.4f,1.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~ ~ {Tags:["c9_part","c9_visor","c9_ent"],teleport_duration:2,brightness:{sky:15,block:15}, glow_color_override:65535,Glowing:1b,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.55f,2.3f,0.1f],scale:[1.1f,0.45f,0.75f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~ ~ {Tags:["c9_part","c9_gun_l","c9_ent"],teleport_duration:2,block_state:{Name:"minecraft:dispenser",Properties:{facing:"south"}},transformation:{translation:[0.75f,2.4f,-0.4f],scale:[0.55f,0.55f,1.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~ ~ {Tags:["c9_part","c9_gun_r","c9_ent"],teleport_duration:2,block_state:{Name:"minecraft:dispenser",Properties:{facing:"south"}},transformation:{translation:[-1.3f,2.4f,-0.4f],scale:[0.55f,0.55f,1.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~ ~ {Tags:["c9_part","c9_leg_l","c9_ent"],teleport_duration:2,interpolation_duration:7,block_state:{Name:"minecraft:polished_deepslate"},transformation:{translation:[0.3f,0.0f,-0.3f],scale:[0.55f,1.8f,0.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~ ~ {Tags:["c9_part","c9_leg_r","c9_ent"],teleport_duration:2,interpolation_duration:7,block_state:{Name:"minecraft:polished_deepslate"},transformation:{translation:[-0.85f,0.0f,-0.3f],scale:[0.55f,1.8f,0.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon slime ~6 ~ ~4 {Tags:["c9_target","c9_ent"],Size:1,Glowing:1b,PersistenceRequired:1b}/summon slime ~-5 ~ ~-5 {Tags:["c9_target","c9_ent"],Size:1,Glowing:1b,PersistenceRequired:1b}/scoreboard players add @e[tag=c9_mech] c9_timer 1/execute as @e[tag=c9_mech,scores={c9_timer=1..}] at @s run tp @s ~ ~ ~ facing entity @e[tag=c9_target,sort=nearest,limit=1]/execute at @e[tag=c9_mech] run tp @e[tag=c9_part] ~ ~ ~ ~ ~/execute if score @e[tag=c9_mech,limit=1] c9_timer matches 1 run data merge entity @e[tag=c9_leg_l,limit=1] {start_interpolation:0,transformation:{translation:[0.3f,0.1f,0.25f],scale:[0.55f,1.8f,0.6f],left_rotation:[-0.25f,0f,0f,0.968f],right_rotation:[0f,0f,0f,1f]}}/execute if score @e[tag=c9_mech,limit=1] c9_timer matches 1 run data merge entity @e[tag=c9_leg_r,limit=1] {start_interpolation:0,transformation:{translation:[-0.85f,0.1f,-0.75f],scale:[0.55f,1.8f,0.6f],left_rotation:[0.25f,0f,0f,0.968f],right_rotation:[0f,0f,0f,1f]}}/execute if score @e[tag=c9_mech,limit=1] c9_timer matches 11 run data merge entity @e[tag=c9_leg_l,limit=1] {start_interpolation:0,transformation:{translation:[0.3f,0.1f,-0.75f],scale:[0.55f,1.8f,0.6f],left_rotation:[0.25f,0f,0f,0.968f],right_rotation:[0f,0f,0f,1f]}}/execute if score @e[tag=c9_mech,limit=1] c9_timer matches 11 run data merge entity @e[tag=c9_leg_r,limit=1] {start_interpolation:0,transformation:{translation:[-0.85f,0.1f,0.25f],scale:[0.55f,1.8f,0.6f],left_rotation:[-0.25f,0f,0f,0.968f],right_rotation:[0f,0f,0f,1f]}}/execute as @e[tag=c9_mech,scores={c9_timer=10}] at @s run playsound minecraft:block.anvil.step master @a ~ ~ ~ 0.6 0.6/execute as @e[tag=c9_mech,scores={c9_timer=10}] at @s run particle minecraft:campfire_cosy_smoke ~ ~0.1 ~ 0.5 0.05 0.5 0.01 6/execute as @e[tag=c9_mech,scores={c9_timer=16}] at @s if entity @e[tag=c9_target,distance=..16] anchored eyes positioned ^ ^0.4 ^1.2 run summon area_effect_cloud ~ ~ ~ {Tags:["c9_proj","c9_ent"],Duration:28,Radius:0.1f}/execute as @e[tag=c9_proj] at @s facing entity @e[tag=c9_target,sort=nearest,limit=1] feet run tp @s ^ ^ ^0.85/execute as @e[tag=c9_proj] at @s run particle minecraft:flame ~ ~0.2 ~ 0.12 0.12 0.12 0.02 6/execute as @e[tag=c9_proj] at @s if entity @e[tag=c9_target,distance=..2.2] run damage @e[tag=c9_target,distance=..2.5,limit=1] 12 minecraft:magic/scoreboard players set @e[tag=c9_mech,scores={c9_timer=20..}] c9_timer 0setup #2 Summons an invisible iron golem tagged <code>c9_mech</code> that provides natural pathfinding and targeting AI while the block displays render the mech chassis around it.loop #3 Teleports all <code>c9_part</code> block displays to the mech core every tick, matching its yaw rotation smoothly using <code>teleport_duration:2</code>.loop #4 Uses <code>data merge</code> at tick 1 and tick 11 to alternate the quaternion rotation and translation of the left and right leg displays, creating a smooth walking animation.loop #10 Fires an area effect cloud projectile from the shoulder cannons every cycle when a target is within 16 blocks.


Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: A two-legged blocky mech made of smooth stone and deepslate with a glowing cyan visor walks across a grassy field at night, emitting smoke at its feet and a fiery projectile.
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 mech defend players against all hostile monsters instead of only tagged targets, replace tag=c9_target in the loop commands with type=#minecraft:raiders or type=zombie.
/kill @e[tag=c9_ent]/scoreboard objectives remove c9_timerEvery block display is summoned with teleport_duration set to 2 and interpolation_duration set to 7, which tells the Minecraft client to smoothly blend position and leg rotation between ticks.
Yes! Edit the block_state Name in the setup commands from smooth_stone or polished_deepslate to any block you like, such as iron_block or netherite_block.
/damage/data/execute/particle/playsound/scoreboard/summon/tp
▶Da Vinci Ornithopter Griffin AutomatonCustom MobsExpert24 cmds
▶Steampunk Espresso Machine GolemCustom MobsHard23 cmds
▶Procedural Strider AutomatonCustom MobsExpert24 cmds
▶Tactical Mob Breach SquadCustom MobsMedium24 cmds
▶Ancient Laser-Lock Spider AutomatonCustom MobsExpert24 cmds
▶Clockwork Battalion SkirmishCustom MobsMedium24 cmds