Minecraft Data Packs / Tool

(Date, Time And Lunar) Clock Datapack V2

  • check_circle Functions
  • 2,119 views, 2 today
  • 249 downloads, 0 today
  • 6
  • 7
  • 4
MixtapeXD's Avatar MixtapeXD
Level 24 : Expert Robot
7
A Datapack based off of Execute Game Studio's Date and Time

When the player is holding a clock in their hand it will show the Day, Hour, and Lunar Phase using (time query day) and allows the time to progress forward and be changed without any issues.

The Key Feature of this Clock Data pack is that it does not and will never use an internal clock that is not in some way connected to the dayclock and gameclock, so thus the clock with always reflect those values and or changes made to them, like /time set/add.

This can be used with my Lunar Events (Lunar Phases Fork)

How to install
1)Download the data pack
2)Drag the newly downloaded folder into your datapacks folder
3) /reload
CompatibilityMinecraft 1.18
toMinecraft 1.19
Tags

1 Update Logs

Update V2 : by MixtapeXD 01/06/2023 9:34:58 pmJan 6th, 2023

* Made HoursDisplay use 12 hour clock with AM and PM
* Added Days offset to DayDisplay to allow for AM to show the correct day.
* made the HoursDisplay more responsive to time changes

* Added a SyncToGameTime Trigger Function
  
To use SyncToGameTime, I recommend getting the Clock time close to the Game world time first which you can either use /time query gametime or use my other Trigger Functions /trigger ShowWorldClocks/HideWorldClocks to get the Game World Ticks, then do /time set <whatever the game world ticks value or some thing smaller but close to it>, then use /trigger SyncClocktoGameTime to do the sync,

It works by basicly adding an extra tick to the Current Clock Time with some math until it equals the Game World Time. Currently it can only sync if the Current Clock Time is Less then the Game World Time but, I've built a framework in the datapack to add a subtraction feature to be able to sync it with any value in future updates, and also make maybe the first time subtraction function in the game without mods. Note that sleeping will increase your Clock time as you would expect but the Game World Time is a Constant unchanging tick so if you sync up to the Game World time and then sleep, your Clock Time will be ahead of the Game World Time. TBH I'm not sure of what use this function has but I think its pretty cool.

The Key Feature of this Clock Data pack is that it does not and will never use an internal clock that is not in some way connected to the dayclock and gameclock, so thus the clock with always reflect those values and or changes made to them, like /time set/add.

Also Because I Updated the Download link with V2 I still wanted to host v1 incase people like it better for some reason, so here's a Google Drive link to the old version: (Date, Time And Lunar) Clock v1

Enjoy!

Create an account or sign in to comment.

1
01/09/2023 11:46 am
Level 24 : Expert Robot
MixtapeXD
MixtapeXD's Avatar
If anyone uses this Pack in a YT video, post a link, I'd like to get more feed back on features and if any bugs happen in your playthrough
1
01/07/2023 8:38 pm
Level 24 : Expert Robot
MixtapeXD
MixtapeXD's Avatar
Discovered a bug with Clock sync where the ticks can go in the negative and get stuck there if the Game World Ticks/ Clock Ticks are too high, this doesn't effect the clock or anything but breaks the ability to sync to the Game World Ticks till I find a Fix for it
1
01/06/2023 3:36 am
Level 1 : New Miner
tooz1
tooz1's Avatar
this one is really nice! thx!
1
01/06/2023 9:48 pm
Level 24 : Expert Robot
MixtapeXD
MixtapeXD's Avatar
Check out the latest V2 update and Thx.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome