Labyrinth Path-Tracing Runner

A glowing husk chases a villager through a 21x21 puzzle grid, painting a neon concrete trail along the shortest path and resetting after each capture.

Java EditionMobs & PetsEasy24 commandsTested on a real 26.2 & 26.3 server
A glowing husk chases a villager through a quartz and prismarine arena while leaving colored blocks behind. Download the GIF Video & GIF © www.9minecraft.net

Custom MobsTechnologyCyanOrangeRainbowLearningMini-gameSummoned mobsBlock building (fill/setblock/clone)21+ commands

Watch a glowing husk hunt down a fleeing villager inside a 21x21 labyrinth of quartz and prismarine walls. As the husk navigates the corridors, it turns the dark deepslate floor underneath into a colorful ribbon of concrete blocks that maps out its shortest path.

Both mobs glow and leave colored dust particles so you can track every turn from above. Whenever the husk tags the villager—or when the 20-second round ends—the floor wipes clean and both runners reset to opposite corners for a fresh chase.

1. Setup - type these once 10 commands

  1. /fill ~-10 ~-1 ~-10 ~10 ~-1 ~10 deepslate_tiles
  2. /fill ~-10 ~ ~-10 ~10 ~1 ~10 quartz_bricks
  3. /fill ~-9 ~ ~-9 ~9 ~1 ~9 air
  4. /fill ~-5 ~ ~-6 ~-5 ~1 ~6 prismarine_bricks
  5. /fill ~5 ~ ~-6 ~5 ~1 ~6 prismarine_bricks
  6. /fill ~-9 ~ ~-3 ~1 ~1 ~-3 prismarine_bricks
  7. /fill ~-1 ~ ~3 ~9 ~1 ~3 prismarine_bricks
  8. /scoreboard objectives add c9_t dummy
  9. /summon villager ~7 ~ ~7 {Tags:["c9_villager"],Invulnerable:1b,PersistenceRequired:1b,Glowing:1b,CustomName:{"text":"Runner","color":"aqua"}}
  10. /summon husk ~-7 ~ ~-7 {Tags:["c9_husk"],IsBaby:0b,PersistenceRequired:1b,Glowing:1b,CustomName:{"text":"Path-Tracer","color":"gold"},attributes:[{id:"minecraft:follow_range",base:80.0}],active_effects:[{id:"minecraft:speed",amplifier:3b,duration:-1,show_particles:0b}],equipment:{head:{id:"minecraft:sea_lantern",count:1}}}

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

  1. /scoreboard players add #t c9_t 1
  2. /execute if score #t c9_t matches 400.. run scoreboard players set #t c9_t 0
  3. /execute if score #t c9_t matches 0 run fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 deepslate_tiles
  4. /execute if score #t c9_t matches 0 run tp @e[tag=c9_villager] ~7 ~ ~7
  5. /execute if score #t c9_t matches 0 run tp @e[tag=c9_husk] ~-7 ~ ~-7
  6. /scoreboard players add #c c9_t 1
  7. /execute if score #c c9_t matches 20.. run scoreboard players set #c c9_t 0
  8. /execute if score #c c9_t matches 0..4 at @e[tag=c9_husk] if block ~ ~-1 ~ deepslate_tiles run setblock ~ ~-1 ~ lime_concrete
  9. /execute if score #c c9_t matches 5..9 at @e[tag=c9_husk] if block ~ ~-1 ~ deepslate_tiles run setblock ~ ~-1 ~ cyan_concrete
  10. /execute if score #c c9_t matches 10..14 at @e[tag=c9_husk] if block ~ ~-1 ~ deepslate_tiles run setblock ~ ~-1 ~ magenta_concrete
  11. /execute if score #c c9_t matches 15..19 at @e[tag=c9_husk] if block ~ ~-1 ~ deepslate_tiles run setblock ~ ~-1 ~ yellow_concrete
  12. /execute at @e[tag=c9_husk] run particle dust{color:[1.0,0.7,0.1],scale:1.5} ~ ~1.1 ~ 0.25 0.4 0.25 0 4
  13. /execute at @e[tag=c9_villager] run particle dust{color:[0.1,0.95,1.0],scale:1.4} ~ ~1.1 ~ 0.25 0.4 0.25 0 3
  14. /execute at @e[tag=c9_villager] if entity @e[tag=c9_husk,distance=..1.5] run scoreboard players set #t c9_t 399

How it works

Frames from the test run

Labyrinth Path-Tracing Runner - frame 1Labyrinth Path-Tracing Runner - frame 2Labyrinth Path-Tracing Runner - frame 3

Recorded on our own test server: 66 frames at about 9.4 fps. Our image check saw: A glowing husk leaves a small colorful block trail and orange particles while chasing a glowing villager trailing cyan particles inside a quartz-walled deepslate arena with two prismarine cross barriers, though the husk climbs onto the wall.

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. Find a flat open area at least 25x25 blocks wide and set game difficulty to Easy, Normal, or Hard so the husk stays spawned.
  2. Stand in the center of your chosen area and run each of the 10 setup commands in order in chat (or place them in impulse command blocks at the center).
  3. Place 14 repeating command blocks set to Always Active and Unconditional just below or beside the center, adjusted if needed so relative coordinates align with your arena center.
  4. Paste one loop command into each repeating command block.
  5. Fly above the labyrinth to watch the husk trace the shortest route in bright concrete and reset automatically after each catch.

Use it with real players

To play as the runner yourself, remove the villager with /kill @e[tag=c9_villager], switch to Survival or Adventure mode inside the maze, and delete the two loop commands that reference @e[tag=c9_villager] so the husk chases you instead while still painting its shortest route.

Remove it again 5 commands

  1. /kill @e[tag=c9_husk]
  2. /kill @e[tag=c9_villager]
  3. /scoreboard objectives remove c9_t
  4. /fill ~-10 ~-1 ~-10 ~10 ~-1 ~10 grass_block
  5. /fill ~-10 ~ ~-10 ~10 ~1 ~10 air

FAQ

Why did the husk disappear or not spawn?

Husks are hostile mobs and will despawn immediately if the world difficulty is set to Peaceful. Switch to Easy, Normal, or Hard before running the setup commands.

Why does the villager survive when the husk reaches it?

The villager is summoned with <code>Invulnerable:1b</code> so it cannot be killed or converted into a zombie villager. Instead, the loop detects when the husk gets within 1.5 blocks and cleanly resets the maze for another run.

Commands used

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

Similar creations

Join 9Minecraft News & Guides