Autonomous Parkour Runner

An AI-controlled entity automatically navigates and leaps across a dynamically generated spiral obstacle course with glowing pads and particle trails.

Java EditionMobs & PetsHard24 commandsTested on a real 26.2 & 26.3 server
An armored figure navigates a rising spiral parkour course of floating platforms at night. Download the GIF Video & GIF © www.9minecraft.net

Custom MobsTechnologyFireWhiteCyanOrangeMini-gameLearningArmor standsSummoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands

Watch an armored parkour runner autonomously calculate jumps across a rising spiral obstacle course. The runner detects when it lands on a platform, faces the next dynamically generated pad, and launches itself forward with a burst of fire and cyan particles.

As the runner climbs the glowing emerald and sea lantern course, a course builder continually constructs new jump pads ahead while old platforms collapse behind, resetting smoothly once the summit is reached.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_jump dummy
  2. /scoreboard objectives add c9_step dummy
  3. /scoreboard objectives add c9_build dummy
  4. /fill ~-12 ~ ~-12 ~12 ~20 ~12 air
  5. /fill ~8 ~ ~-1 ~10 ~ ~1 stone_bricks
  6. /fill ~8 ~1 ~-1 ~10 ~1 ~1 quartz_slab
  7. /setblock ~9 ~ ~ sea_lantern
  8. /setblock ~9 ~1 ~ lime_carpet
  9. /summon armor_stand ~9 ~1.1 ~ {Tags:["c9_gen"],NoGravity:1b,Invisible:1b,Rotation:[0f,0f]}
  10. /summon zombie ~9 ~1.1 ~ {Tags:["c9_runner"],CustomName:{"text":"Parkour AI","color":"aqua","bold":true},CustomNameVisible:1b,NoAI:0b,Silent:1b,Glowing:1b,IsBaby:0b,equipment:{head:{id:"minecraft:golden_helmet"},chest:{id:"minecraft:diamond_chestplate"},legs:{id:"minecraft:golden_leggings"},feet:{id:"minecraft:diamond_boots"}},active_effects:[{id:"minecraft:fire_resistance",amplifier:1,duration:999999,show_particles:0b}]}

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

  1. /execute as @e[tag=c9_gen] run scoreboard players add @s c9_build 1
  2. /execute as @e[tag=c9_gen,scores={c9_build=1..14}] at @s rotated ~32 0 positioned ^ ^0.9 ^4.3 run tp @s ~ ~ ~ ~32 0
  3. /execute as @e[tag=c9_gen,scores={c9_build=1..14}] at @s run fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 stone_bricks
  4. /execute as @e[tag=c9_gen,scores={c9_build=1..14}] at @s run fill ~-1 ~ ~-1 ~1 ~ ~1 quartz_slab
  5. /execute as @e[tag=c9_gen,scores={c9_build=1..14}] at @s run setblock ~ ~-1 ~ sea_lantern
  6. /execute as @e[tag=c9_gen,scores={c9_build=1..14}] at @s run setblock ~ ~ ~ lime_carpet
  7. /execute as @e[tag=c9_gen,scores={c9_build=1..14}] at @s run summon marker ~ ~0.1 ~ {Tags:["c9_node","c9_new"]}
  8. /execute as @e[tag=c9_gen,scores={c9_build=1..14}] run scoreboard players operation @e[tag=c9_new] c9_step = @s c9_build
  9. /tag @e[tag=c9_new] remove c9_new
  10. /execute as @e[tag=c9_runner] at @s if block ~ ~ ~ lime_carpet run scoreboard players add @s c9_jump 1
  11. /execute as @e[tag=c9_runner,scores={c9_jump=5}] at @s run setblock ~ ~ ~ red_carpet
  12. /execute as @e[tag=c9_runner,scores={c9_jump=5}] at @s facing entity @e[tag=c9_node,sort=nearest,limit=1] feet run data modify entity @s Motion set value [0.0,0.56,0.0]
  13. /execute as @e[tag=c9_runner,scores={c9_jump=5}] at @s facing entity @e[tag=c9_node,sort=nearest,limit=1] feet run summon area_effect_cloud ^ ^0.5 ^-0.9 {Radius:0.1f,Duration:2,Effects:[{id:"minecraft:instant_health",amplifier:1,duration:1}]}
  14. /execute as @e[tag=c9_runner] at @s run particle dust{color:[0.1,0.9,1.0],scale:1.2} ~ ~0.9 ~ 0.15 0.25 0.15 0 3 force

How it works

Frames from the test run

Autonomous Parkour Runner - frame 1Autonomous Parkour Runner - frame 2Autonomous Parkour Runner - frame 3

Recorded on our own test server: 69 frames at about 9.8 fps. Our image check saw: A glowing armored armor stand or entity floats along a rising spiral of floating stone and quartz platforms, though there is no movement across the provided frames.

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. Stand at the center of an open flat area with at least 15 blocks of clearance in every direction.
  2. Run each of the 9 setup commands in chat to create the scoreboards, build the starting pad, and summon the course builder and Parkour AI runner.
  3. Place 14 repeating command blocks (or 1 repeating block chained into 13 chain command blocks), all set to Always Active.
  4. Paste the loop commands in order into the command blocks.
  5. Watch the spiral course build itself in under a second and the Parkour AI leap from pad to pad.

Use it with real players

To race against the AI or turn yourself into the automated runner, give yourself the tag with /tag @s add c9_runner. Note that direct Motion NBT modifications do not work on players in vanilla Minecraft, so replace the Motion command with an /effect give @s levitation 1 12 burst or use an explosion knockback impulse to propel players between platforms.

Remove it again 7 commands

  1. /fill ~-14 ~ ~-14 ~14 ~22 ~14 air
  2. /kill @e[tag=c9_runner]
  3. /kill @e[tag=c9_gen]
  4. /kill @e[tag=c9_node]
  5. /scoreboard objectives remove c9_jump
  6. /scoreboard objectives remove c9_step
  7. /scoreboard objectives remove c9_build

FAQ

Why does the carpet turn from lime to red when the runner jumps?

The runner checks for a lime carpet underneath its feet to know it has landed on a new platform. Changing it to red marks the platform as completed and gives clear visual feedback on the course progress.

Can I change the shape of the generated parkour course?

Yes! In the second loop command, adjust the rotation angle (~32) and the local coordinates (^ ^0.9 ^4.3) to make wider turns, steeper climbs, or a straight line.

Commands used

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

Similar creations

Join 9Minecraft News & Guides