This Datapack adds a handy little clock over your hotbar. It counts your playtime based on ticks. It could be used in Minecraft Challenges on YouTube or just to measure your addiction to Minecraft😅
/function aircraft192:timer/pause
/function aircraft192:timer/play
/function aircraft192:timer/reset
/scoreboard players set day timer <day>
/scoreboard players set hour timer <hour>
/scoreboard players set minute timer <minute>
/scoreboard players set second timer <second>
/function aircraft192:timer/display/on
/function aircraft192:timer/display/off
This could also be useful for datapack developers.
The timer is configured to pause when no players are online (only useful for servers). If you want to disable / reenable this behaviour, you can use:
/function aircraft192:timer/settings/pausewhileoffline/on
/function aircraft192:timer/settings/pausewhileoffline/off
As of version 4.0, you can use this datapack as a countdown timer too. To enable or disable this feature, use:
/function aircraft192:timer/settings/countdown/on
/function aircraft192:timer/settings/countdown/off
You have to set the timer to a specific starting time first, otherwise it will just stay at 0.
You can either grab the current release on PMC or download the developement version via the "Download ZIP" option on GitHub.
Since Mojang changed the name “functions” in Minecraft datapacks to “function” in 1.21, this datapack is not compatible with older versions. You can avoid this incompatibility by following these steps:
- Extract the datapack to the datapacks folder of your world (DON'T USE THE .ZIP-FOLDER FOR THIS!)
- Go to the path
/datapack-name/data/minecraft/tags/
and rename the folder named "function" to "functions" - Go to every other folder in the
/datapack-name/data/
directory and rename every folder there named "function" to "functions" - The datapack should now work for versions 1.20 and lower
If this datapack receives enough attention, I may provide a second Download for these older versions.