Obstacle-Weaving Automaton

Watch a NoAI iron golem navigate a deepslate obstacle course using local-coordinate block probes to vault copper ledges and weave around walls.

Java EditionComplex Contraptions & CinematicsHard24 commandsTested on a real 26.2 & 26.3 server
A glowing golem navigates a dark arena with copper steps and deepslate walls toward a sea lantern. Download the GIF Video & GIF © www.9minecraft.net

SimulationsTechnologyIndustrialBlueOrangeBlackLearningMap MakingBlock displaysSummoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands

Normal Minecraft mobs rely on built-in pathfinding, but Weaver-09 has NoAI:1b and navigates purely through command-driven block sensors. Every tick, local-coordinate probes check the space ahead of the golem to decide whether it should stride forward, vault up a one-block copper step, or swivel around a two-block deepslate wall.

A glowing sea lantern beacon jumps across the corners of the arena on a timer, pulling the automaton diagonally through the cluttered centre while cyan dust particles reveal its forward sensor beam in real time.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 polished_deepslate
  3. /fill ~-5 ~ ~2 ~-3 ~ ~4 waxed_cut_copper
  4. /fill ~3 ~ ~-4 ~5 ~ ~-2 waxed_cut_copper
  5. /fill ~-1 ~ ~-1 ~0 ~1 ~0 deepslate_tiles
  6. /fill ~-4 ~ ~-4 ~-3 ~1 ~-2 deepslate_tiles
  7. /fill ~3 ~ ~2 ~4 ~1 ~4 deepslate_tiles
  8. /summon marker ~ ~ ~ {Tags:["c9_sim","c9_ctrl"]}
  9. /summon block_display ~7 ~ ~-6 {Tags:["c9_sim","c9_target"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.7f,0.7f,0.7f],translation:[-0.35f,0.4f,-0.35f]}}
  10. /summon iron_golem ~-7 ~ ~6 {Tags:["c9_sim","c9_bot"],NoAI:1b,Silent:1b,Invulnerable:1b,Glowing:1b,CustomNameVisible:1b,CustomName:{text:"Weaver-09",color:"aqua"}}

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

  1. /scoreboard players add @e[tag=c9_ctrl] c9_tick 1
  2. /scoreboard players set @e[tag=c9_ctrl,scores={c9_tick=281..}] c9_tick 1
  3. /execute if score @e[tag=c9_ctrl,limit=1] c9_tick matches 1 run tp @e[tag=c9_target] ~7 ~ ~-6
  4. /execute if score @e[tag=c9_ctrl,limit=1] c9_tick matches 71 run tp @e[tag=c9_target] ~-7 ~ ~5
  5. /execute if score @e[tag=c9_ctrl,limit=1] c9_tick matches 141 run tp @e[tag=c9_target] ~6 ~ ~6
  6. /execute if score @e[tag=c9_ctrl,limit=1] c9_tick matches 211 run tp @e[tag=c9_target] ~-6 ~ ~-6
  7. /execute at @e[tag=c9_target] run particle end_rod ~ ~0.9 ~ 0.25 0.5 0.25 0.02 3 force
  8. /execute as @e[tag=c9_bot] at @s facing entity @e[tag=c9_target,limit=1] feet run tp @s ~ ~ ~ ~ 0
  9. /execute as @e[tag=c9_bot] at @s unless block ^ ^0.2 ^1.25 air if block ^ ^1.2 ^1.25 air if block ^ ^2.2 ^1.25 air run tp @s ~ ~1 ~
  10. /execute as @e[tag=c9_bot] at @s unless block ^ ^1.2 ^1.25 air if block ^1.3 ^1.2 ^0.9 air run tp @s ~ ~ ~ ~-70 0
  11. /execute as @e[tag=c9_bot] at @s unless block ^ ^1.2 ^1.25 air unless block ^1.3 ^1.2 ^0.9 air run tp @s ~ ~ ~ ~105 0
  12. /execute as @e[tag=c9_bot] at @s if block ^ ^0.2 ^0.95 air if block ^ ^1.2 ^0.95 air run tp @s ^ ^ ^0.24
  13. /execute as @e[tag=c9_bot] at @s if block ~ ~-0.1 ~ air run tp @s ~ ~-0.25 ~
  14. /execute as @e[tag=c9_bot] at @s run particle dust{color:[0.1,0.95,1.0],scale:1.4} ^ ^1.3 ^1.1 0.2 0.1 0.2 0 4 force

How it works

Frames from the test run

Obstacle-Weaving Automaton - frame 1Obstacle-Weaving Automaton - frame 2Obstacle-Weaving Automaton - frame 3

Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: A glowing-outlined golem with blue particle trails moves across a dark tiled arena past copper steps and deepslate walls toward a glowing sea lantern beacon in the corner.

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. Choose a flat open area at least 21x21 blocks wide and stand at the exact centre block just above the ground.
  2. Run the 10 setup commands in chat or from impulse command blocks relative to that centre position to build the deepslate floor, obstacles, beacon, and golem.
  3. Place 14 command blocks in a chain (1 repeating command block set to Always Active feeding into 13 chain command blocks set to Unconditional and Always Active).
  4. Paste the 14 loop commands in order, wrapping relative arena teleports (loop commands 2 through 5) with execute positioned X Y Z run ... using your arena centre coordinates.
  5. Step back and watch Weaver-09 scan obstacles with its cyan dust beam, vault over the copper platforms, and steer around the deepslate walls.

Use it with real players

To make the automaton follow a real player instead of the automated beacon, skip summoning c9_target and omit loop commands 0 through 6. Then change loop command 7 to /execute as @e[tag=c9_bot] at @s if entity @p[distance=2..24] facing entity @p feet run tp @s ~ ~ ~ ~ 0 so the golem tracks the nearest player while stopping politely two blocks away.

Remove it again 4 commands

  1. /kill @e[tag=c9_sim]
  2. /scoreboard objectives remove c9_tick
  3. /fill ~-9 ~ ~-9 ~9 ~3 ~9 air
  4. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 grass_block

FAQ

Why do the sensor checks lock the golem's pitch to 0 first?

Local coordinates (^left ^up ^forward) tilt up or down with entity pitch. Locking pitch to 0 ensures forward probes always scan parallel to the ground instead of pointing into the floor or sky.

Can I add my own obstacles to the arena?

Yes. Any single-block ledge with two air blocks above it will trigger the vault move, and any wall two or more blocks tall will cause the golem to swivel around it.

Commands used

/execute/fill/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides