World time sync with real-time, placeholders, translations.
Changes:
Added config option to enable time sync.
Added day, month and season translations for real-time.
If sync is enabled, in-game time will be synced with real-time. This means if it's noon, it will be noon in-game. This will also set DO_DAYLIGHT_CYCLE gamerule to false in all worlds. It regulates the world time ticks (which you can find with '/time query daytime') with equation 'ticks = (24000 - currentHour * 1000 + currentMinutes * 1000 / 60)'.
Code (Text):
translations:
# These are translations for the real-time calendar.
real-time:
# Day names must be exactly from Monday to Sunday and
# in the same order. Same goes for month names.
day-names:
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
- Sunday
month-names:
- January
- February
- March
- April
- May
- June
- July
- August
- September
- October
- November
- December
# These are the names for seasons.
# From January to March is Winter, from April to June is Spring,
# from July to September is Summer and from October to December is Autumn.
season-names:
- Spring
- Summer
- Autumn
- Winter