âš BREAKING CHANGES
This version contains breaking changes. Make sure you uninstall the previous version and check if the breaking changes affect your datapack.
Breaking changes:
- Changed the data structure of
timelib:date
andtimelib:output
Additions:
- The tickrate can now be retrieved from the
TimeLib.Tickrate
scoreboard - Added a
game_unpaused
function tag that runs whenever the game is unpaused (from singleplayer or /tick unfreeze)- You can get the number of paused ticks from the
TimeLib.PausedTicks
scoreboard
- You can get the number of paused ticks from the
Changes:
timelib:output
now contains the daytime as welltimelib:output
andtimelib:date
now additionally contain a stringified form of the month with leading zeros- Added more information regarding leftover data in the uninstall function
- Changed some tellraw formatting
Bugfixes:
- Fixed a wrong comment in the "How to" section of
unix_timestamp_to_date
âš COMPLETE REWRITE
This version is not compatible with previous ones. Make sure you uninstall the previous version.
Changes:
- TimeLib now natively supports lag, different tick rates & pausing due to refreshing the time every tick
- The
RealtimeTracking
andSavingsTimeChecks
settings have been removed
- The
- Added a
timelib:daytime
data storage containing stringified versions (with leading 0s) of the daytime - Added event tags for
#timelib:date_changed
and#timelib:daytime_changed
which get called whenever the date or daytime changes respectively- The
#timelib:time_updated
event tag has been removed - They do not get called on datapack reloads
- The
- The
get_date
utility has been renamed tounix_timestamp_to_date
- It now fails if the input is invalid
- The unix timestamp is now correctly in the UTC timezone
- Rewrote the setting descriptions
- Removed the compatibility issue with the
Constant
scoreboard objective - Moved the forceloaded blocks outside the world border to prevent survival interference
- Various optimizations and improvements
Bugfixes:
- Fixed 1.21.5 not working properly (TimeLib v1.3.0)
- Fixed a short time desync on first join
- Fixed TimeLib giving the wrong time on first load
BREAKING CHANGES
This version contains a breaking change. Make sure to run the uninstall
function if you have an older version installed, so that the data storage is updated properly.
Additions:
- Added a link to the Modrinth and GitHub pages on reload
Changes:
- Reduced the filesize and data storage size (Breaking)
- The day in the data storages is now always stored as a string
- Fixed the version number in the tellraw commands
Additions:
- Added a new data storage (timelib:output) that contains additional output for "util/get_date":
- Day value as a string, with 0 prefix
- WeekDay String (Long & Short)
- Month String (Long & Short)
Changes:
- Improved the "util/get_date" description
- The day in the data storages is now always stored as a string
Additions:
- Added a new data storage (timelib:date) that contains:
- Day value as a string, with 0 prefix
- WeekDay String (Long & Short)
- Month String (Long & Short)
- Added a new function tag (#timelib:time_updated) that gets run whenever timelib updated the time or the date changes
- Added a new setting to disable the reload messages
Changes:
- Moved the "load" and "init" functions to the zprivate folder to make it clear they're not meant to be run by users
- Updated to 1.20.5 & Item Components (Not backwards compatible!)
- TimeLib now refreshes as soon as it can, instead of after 1 second when reloading
- Fixed a bug where reloading shortly before a second, minute or hour passed would desync the timer for a moment
- Made the command in the command blocks shorter
- Added "minecraft:" prefix where possible for consistency
Bugfixes:
- Fixed a bug where the 'TimeLib.Uninstall' objective would sometimes not be removed
- Fixed a mistake in a proposed command in the settings menu
- Removed a line that sets an unused fake player score
Changes:
- Schedule loops are now stopped when uninstalling as well
- Fake players are now reset when uninstalling (Because they don't disappear from the list otherwise), except for the #c... ones
- Renamed the internal Fake Players for settings
Changes:
- Updated README.md to reflect the changes
- Renamed 'UnixLib' to 'TimeLib'
- Changed the pack format & description
- Changed how Fake Player names and Scoreboard Objective names are structured (Previously with _ and now with .)
- Slightly altered the error message when trying to uninstall TimeLib
Additions:
- Added an 'uninstall' function for removing scoreboards & data storages
- Added a message to the 'init' function
Changes:
- Updated README.md to reflect the changes
- Slightly altered a note in "unixlib:unix/update" to reflect newer versions
Bugfixes:
- Removed an optimisation when calling "unixlib:unix/update" that could under rare circumstances prevent newer Unix Timestamps from player heads from being detected