Autonomous Scout Mech

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.

Java EditionMobs & PetsExpert24 commandsTested on a real 26.2 & 26.3 server
A two-legged stone mech with a glowing cyan visor patrols a dark grassy field. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /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}]}
  3. /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]}}
  4. /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]}}
  5. /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]}}
  6. /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]}}
  7. /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]}}
  8. /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]}}
  9. /summon slime ~6 ~ ~4 {Tags:["c9_target","c9_ent"],Size:1,Glowing:1b,PersistenceRequired:1b}
  10. /summon slime ~-5 ~ ~-5 {Tags:["c9_target","c9_ent"],Size:1,Glowing:1b,PersistenceRequired:1b}

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

  1. /scoreboard players add @e[tag=c9_mech] c9_timer 1
  2. /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]
  3. /execute at @e[tag=c9_mech] run tp @e[tag=c9_part] ~ ~ ~ ~ ~
  4. /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]}}
  5. /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]}}
  6. /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]}}
  7. /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]}}
  8. /execute as @e[tag=c9_mech,scores={c9_timer=10}] at @s run playsound minecraft:block.anvil.step master @a ~ ~ ~ 0.6 0.6
  9. /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
  10. /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}
  11. /execute as @e[tag=c9_proj] at @s facing entity @e[tag=c9_target,sort=nearest,limit=1] feet run tp @s ^ ^ ^0.85
  12. /execute as @e[tag=c9_proj] at @s run particle minecraft:flame ~ ~0.2 ~ 0.12 0.12 0.12 0.02 6
  13. /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
  14. /scoreboard players set @e[tag=c9_mech,scores={c9_timer=20..}] c9_timer 0

How it works

Frames from the test run

Autonomous Scout Mech - frame 1Autonomous Scout Mech - frame 2Autonomous Scout Mech - frame 3

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.

Build it in your world

  1. Create a flat arena and run each command from the Setup list once in chat or impulse command blocks.
  2. Place 14 repeating command blocks (or 1 repeating block followed by 13 chain blocks) set to Always Active.
  3. Paste each command from the Loop list in order into the repeating command blocks.
  4. Watch the Autonomous Scout Mech stride toward the glowing slimes, kicking up smoke and blasting them with homing plasma.

Use it with real players

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.

Remove it again 2 commands

  1. /kill @e[tag=c9_ent]
  2. /scoreboard objectives remove c9_timer

FAQ

Why does the mech move smoothly even though it is teleported every tick?

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

Can I change the blocks used for the mech's body?

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.

Commands used

/damage/data/execute/particle/playsound/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides