A lightweight real-time timer datapack for Minecraft 1.21.8
Time your speedruns, parkour courses, escape rooms, and any other challenge you can dream up! RTimer displays a live countdown in your action bar and broadcasts your final time when you're done.
- Live Timer Display - See your time tick up in real-time (above your hotbar)
- Simple Commands - Start, stop, and reset with easy functions
- Pressure Plate Compatible - Perfect for parkour courses and racing maps
- Multiplayer Friendly - Only the active player sees the timer, but everyone sees the final result
- Zero Configuration - Just install and go!
- Download this datapack (or clone this repository)
- Locate your world folder:
- Windows:
%appdata%\.minecraft\saves\[YourWorldName] - Mac:
~/Library/Application Support/minecraft/saves/[YourWorldName] - Linux:
~/.minecraft/saves/[YourWorldName] - Server:
[YourServerFolder]/[WorldName]
- Windows:
- Copy the
rtimerfolder into thedatapacksfolder inside your world folder- If the
datapacksfolder doesn't exist, create it
- If the
- Load the datapack:
- Start/join your world
- Run
/reloadin the chat - You should see a confirmation message
Run /datapack list - you should see [file/rtimer] in green text.
| Command | What it does |
|---|---|
/function rtimer:start |
Start the timer |
/function rtimer:end |
Stop the timer and show your final time |
/function rtimer:reset |
Cancel and reset the timer (no message) |
/function rtimer:debug |
Check if timer is running and see current time |
- Stand at your starting point
- Run
/function rtimer:start - Complete your challenge
- Run
/function rtimer:end - Your final time will be announced to all players!
Perfect for parkour courses! Set up command blocks to automatically start/stop the timer:
- Place a pressure plate where you want to start
- Place a command block underneath it (make sure it's impulse mode, not repeating)
- Put this command in the command block:
execute as @p run function rtimer:start - Make sure the command block is set to "Always Active"
- Place a pressure plate at the finish line
- Place a command block underneath it
- Put this command in the command block:
execute as @p run function rtimer:end - Make sure the command block is set to "Always Active"
Now when you step on the start plate, your timer begins! When you reach the finish, your time is displayed.
Challenge your friends to beat your time:
- Player 1 runs
/function rtimer:start - Player 1 completes the challenge and runs
/function rtimer:end - Everyone sees Player 1's time
- Player 2 runs
/function rtimer:startto attempt to beat it - Repeat!
- Timer Display: Shows as
M:SSformat (e.g.,0:05,1:23,12:30) - Action Bar Only: The live timer only shows to the player who started it
- Broadcast Finish: When you finish, the final time is announced to all players
- One at a Time: Only one timer can run at once (prevents conflicts)
- Smart Restart Prevention: Can't start a new timer while one is already running
Problem: The /function commands don't work
- Solution: Make sure you have operator permissions (op). Ask your server admin or run
/op [YourUsername]in single player
Problem: Timer shows for wrong player
- Solution: Use
/function rtimer:resetto clear the timer, then start fresh
Problem: Timer stuck running
- Solution: Run
/function rtimer:resetto force a reset
Problem: Datapack doesn't load after /reload
- Solution: Check that the folder structure is correct:
datapacks/rtimer/pack.mcmetashould exist - Make sure
pack.mcmetais valid JSON
Problem: Commands work but no timer appears
- Solution: Make sure you started the timer with
/function rtimer:startand check that your action bar isn't being used by another datapack
- Compatible with: Minecraft 1.21.8 (pack format 81)
- Namespace:
rtimer - Scoreboards used:
rtimer.running,rtimer.ticks - Player tags:
rtimer.active
Q: Can multiple players use the timer at once? A: No, only one timer can run at a time. This prevents conflicts and keeps things simple.
Q: Does this work on servers? A: Yes! Works perfectly on multiplayer servers.
Q: Can I modify this datapack? A: Absolutely! Feel free to customize it for your needs.
Q: Will this slow down my game? A: No, RTimer is extremely lightweight and has no noticeable performance impact.
Free to use and modify. Credit appreciated but not required!
Found a bug or have a suggestion? Open an issue on GitHub!
Happy timing! Whether you're speedrunning, building parkour courses, or just timing how long it takes to find diamonds, RTimer has you covered.