Skip to content
MC Command Generator

Build a parkour course in an afternoon: start pad, timer, checkpoints, finish

GuideJava 1.21.11 – 26.38 min read9 commands

A parkour course built from commands only: coloured blocks start a timer, save checkpoints and reset fallers; the finish shows your time and a firework.

Every parkour map needs the same four parts: a start that resets the clock, a timer, checkpoints, and a finish that shows the result. The trick in this build is that the whole thing is driven by coloured blocks under the player’s feet, so you can design the course in survival-style building and the commands just work.

  • Lime concrete — start
  • Gold block — checkpoint
  • Red concrete — fall reset
  • Emerald block — finish

Setup (run once)

#1The timer scoreboardRare

One dummy objective holds each runner's time in ticks and shows it on the sidebar. Run once.

scoreboard objectives add parkour_time dummy {text:"⏱ Parkour",color:"aqua",bold:true}
scoreboard objectives setdisplay sidebar parkour_time
  • • Run these in order (one per command block, or all in a function file).
#2Fair fallsRare

Keep inventory and skip the death screen, so a fall sends the runner straight back to their checkpoint with nothing lost. Run once.

gamerule keep_inventory true
gamerule immediate_respawn true
  • • One line per rule: run them all (a function file or a chain of command blocks does it in one go).
Open in /gamerule Java 26.3

Game rule names became snake_case in Java 1.21.11. On older versions pick your version in the /gamerule generator and it writes keepInventory instead.

The loop (repeating command blocks, always active)

#3Start pad (lime concrete)Epic

Standing on lime concrete sets your time to 0. Having a score is what marks you as running — no tags needed.

execute as @a at @s if block ~ ~-1 ~ lime_concrete run scoreboard players set @s parkour_time 0
Open in /execute Java 26.3
#4The clockRare

Adds one tick to everyone who is running. 20 ticks are one second.

execute as @a[scores={parkour_time=0..}] run scoreboard players add @s parkour_time 1
Open in /execute Java 26.3
#5Checkpoint (gold block)Epic

Step on a gold block and your spawn point moves there. Place one at the start of every section.

execute as @a at @s if block ~ ~-1 ~ gold_block run spawnpoint @s ~ ~ ~
Open in /execute Java 26.3
#6Fall reset (red concrete)Epic

Line the pit with red concrete. Touch it and you respawn at your last checkpoint instantly — the timer keeps running.

execute as @a[scores={parkour_time=0..}] at @s if block ~ ~-1 ~ red_concrete run kill @s
Open in /execute Java 26.3

The finish (a repeating block, then a chain block)

The order matters: show the time first, then reset the score. A chain block runs right after the block pointing into it in the same tick.

#7Finish: your timeMythic

On the emerald finish block, a runner gets their time in chat, read live from the scoreboard.

execute as @a[scores={parkour_time=1..}] at @s if block ~ ~-1 ~ emerald_block run tellraw @s [{text:"Finished in ",color:"gray"},{score:{name:"@s",objective:"parkour_time"},color:"gold",bold:true},{text:" ticks",color:"gray"}]
Open in /execute Java 26.3
#8Finish: stop the clockRare

Then the score is reset, which stops the clock. This must come after the time message in the chain.

execute as @a[scores={parkour_time=1..}] at @s if block ~ ~-1 ~ emerald_block run scoreboard players reset @s parkour_time
Open in /execute Java 26.3
#9Finish-line fireworkEpic

A twinkling lime-and-yellow star that bursts right away. Wire it to a pressure plate on the finish.

summon minecraft:firework_rocket ~ ~1 ~ {LifeTime:25,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{flight_duration:1,explosions:[{shape:"star",colors:[I;4312372,14602026],fade_colors:[I;15790320],has_trail:true,has_twinkle:true}]}}}}
  • • LifeTime:25 is the fuse in ticks: raise it for a higher burst.

Upgrades

  • Show seconds instead of ticks: add a second objective and divide with scoreboard players operation.
  • Give each section its own colour of checkpoint and tell players their split times the same way.
  • Stop people skipping: an /execute with a distance check that resets anyone who reaches a checkpoint too far ahead. Build it in the /execute generator.