Minecraft Data Packs / Quality of Life

TimeTracker - 12/24 Hour Time In Minecraft (Datapack)

  • check_circle Functions
  • 7,906 views, 4 today
  • 1,507 downloads, 0 today
  • 15
  • 15
  • 4
CyberneticSquid's Avatar CyberneticSquid
Level 27 : Expert Birb
5
This is a simple datapack that adds a 12 hour/24 hour time measuring system to your Minecraft world.
...
Yeah...
That's all it does.

You get a nice little tracker above your hotbar that shows the current time.
You can change the time measuring system with the /function timetracker:settings/12hour and /function timetracker:settings/24hour commands.

New! Users can now set a colour theme for the tracker. This doesn't require operator permissions, and can be set to any of the six below themes with /trigger time[​Theme]:
  • Blue (The default)
  • Green
  • Red
  • Purple
  • Yellow
  • Mono (Grey theme)

If you're interested, this is every function in the datapack, although you usually only need to use the setting functions:
  • timetracker:init - Loads up everything to make sure it works. Automatically runs when the world loads or /reload is used.
  • timetracker:remove - Deletes the scoreboards created. Just in case you need it.
  • timetracker:maths - Does all the math stuff to get the correct time. Constantly runs.
  • timetracker:display - Runs the code to show the actionbar message. Constantly runs.
  • timetracker:colours - Manages individual colour settings. Constantly runs.
  • timetracker:settings/24hour - Sets a scoreboard value to 0, to disable 12-hour time.
  • timetracker:settings/12hour - Sets a scoreboard value to 1, to enable 12-hour time.
Okay, that should be all. Feel free to modify this for your map or server, as long as you attribute me for creating it. if you do actually use it, please let me know! It'd be cool to see how it's being used.
CompatibilityMinecraft 1.13
toMinecraft 1.17
Tags

2 Update Logs

Major Update : by CyberneticSquid 02/22/2021 4:15:21 amFeb 22nd, 2021

Unless a Minecraft update breaks the pack, or someone finds a particularly major bug, I probably won't have any more updates for this. But this update is a large one, allowing players to choose one of six colour themes for the tracker. Hope you enjoy!
LOAD MORE LOGS

Create an account or sign in to comment.

2
01/17/2021 9:05 pm
Level 36 : Artisan Explorer
Yadokai
Yadokai's Avatar
Is it the time in the Minecraft world or the time from my PC's clock?
1
02/22/2021 2:27 am
Level 27 : Expert Birb
CyberneticSquid
CyberneticSquid's Avatar
In the world.
1
11/13/2018 8:39 am
Level 1 : New Miner
Spokloo
Spokloo's Avatar
I can't install it, help me please :(
What file i need to put in my datapacks file ?
1
11/14/2018 1:02 am
Level 27 : Expert Birb
CyberneticSquid
CyberneticSquid's Avatar
You can put the .zip straight into your datapack folder.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome