A simple customizable timer datapack for singleplayer and multiplayer
- Download the latest version from https://github.com/jullevistrunz/timer-datapack/releases
- Drag the ZIP into
<world folder>/datapacks
- Start/Resume:
/function timer:resume - Stop:
/function timer:stop - Reset:
/function timer:reset - Uninstall:
/function timer:uninstall
There are three built-in designs available for you to choose. To create your own read the Design Creator guide
- Change design:
/data modify storage timer:settings display.design set value "<design>"
default |
detailed |
minimal |
|
|---|---|---|---|
| Show days enabled | ![]() |
![]() |
![]() |
| Show days disabled | ![]() |
![]() |
![]() |
You can change the main and accent color. Default for main is white and red for accent. Hex codes can be used, e.g. "#FF0000"
- Change main color:
/data modify storage timer:settings display.mainColor set value "<color>" - Change accent color:
/data modify storage timer:settings display.accentColor set value "<color>"
If enabled, when stopping the timer, every player will go into spectator mode. When the timer is resumed they'll change to survival.
- Enable:
/scoreboard players set #timer timer_changeGamemode 1 - Disable:
/scoreboard players set #timer timer_changeGamemode 0
When enabled hours will reset at 24 and increment the day counter. If not hours will go up infinitely. Do not enable/disable after one day has passed.
- Enable:
/scoreboard players set #timer timer_enableDays 1 - Disable:
/scoreboard players set #timer timer_enableDays 0
Make the text italic when the timer is stopped.
- Enable:
/data modify storage timer:settings display.stoppedItalic set value "true" - Disable:
/data modify storage timer:settings display.stoppedItalic set value "false""
Change the text that will appear when the timer is stopped: /data modify storage timer:settings display.stoppedText set value "Custom text ", default is ">> Timer stopped at "
- Go to https://jullevistrunz.github.io/timer-datapack/
- At the top you can edit the preview time and your settings. You'll set them in-game at the end of this tutorial.

- There are 4 states a design can be in. You can edit each individually.
{d}is the placeholder for the elapsed days,{h}for hours and so on.{stoppedText}is the placeholder for the text defined here. When your happy with your creation click "Preview".
- Now choose a name for your design. Note that upper-case letters will be lower-cased and spaces will be removed.

- Click "Export". Save the file. Now move it to:
<world folder>/datapacks/timer-datapack/data/timer/function/design. You might have to extract yourtimer-datapck.zipbeforehand, if you haven't already. If this is your first design, your design folder should look like this:
- Once in game run these commands, to enable your design, set your custom colors and the custom stopped text. Click a command to copy it to your clipboard.










