Skip to content

jullevistrunz/timer-datapack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Timer Datapack

A simple customizable timer datapack for singleplayer and multiplayer

Installation

  1. Download the latest version from https://github.com/jullevistrunz/timer-datapack/releases
  2. Drag the ZIP into <world folder>/datapacks

Usage

  • Start/Resume: /function timer:resume
  • Stop: /function timer:stop
  • Reset: /function timer:reset
  • Uninstall: /function timer:uninstall

Settings

Change design

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 image image image
Show days disabled image image image

Change color

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>"

Change gamemode on timer resume/stop

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

Show days

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

image image

Italic text when stopped

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""

Customizable stopped text

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 "

image image

Design Creator

  1. Go to https://jullevistrunz.github.io/timer-datapack/
  2. At the top you can edit the preview time and your settings. You'll set them in-game at the end of this tutorial. image
  3. 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". image
  4. Now choose a name for your design. Note that upper-case letters will be lower-cased and spaces will be removed. image
  5. Click "Export". Save the file. Now move it to: <world folder>/datapacks/timer-datapack/data/timer/function/design. You might have to extract your timer-datapck.zip beforehand, if you haven't already. If this is your first design, your design folder should look like this: image
  6. 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. image

About

A simple customizable timer datapack for singleplayer and multiplayer

Topics

Resources

License

Stars

Watchers

Forks