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)
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).
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).
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)
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 0Adds 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 1Step 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 ~ ~ ~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 @sThe 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.
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"}]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_timeA 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
/executewith adistancecheck that resets anyone who reaches a checkpoint too far ahead. Build it in the /execute generator.
More drops
- Update drop3 commands/effect with tags: one command for a whole set of effects (26.4 snapshot)Four effects from one line, and the tag file you have to write first.Java 26.4 Snapshot 10 · 26.3
- Guide5 commandsHow to get a command block in Minecraft, and why it does nothingOne /give gets the block. A game rule decides whether it ever runs.Java 1.13 → 26.3 · Bedrock
- Next drop · 32,768 is the wall. One game rule moves it; here is the name for your version.Java 1.19.2 → 26.3 · 4 commands