Important
I've moved the repo for this project to Codeberg: codeberg.org/verarr/synchrono (along with some of my other projects)
The reason for this is because I'm unhappy with the direction GitHub is taking, especially in terms of AI usage.
I'll be deleting this repo from GitHub soon.
A mod for Minecraft that syncs the in-game daylight cycle to a location in real life.
It uses data from SunriseSunset.io to get accurate timestamps for sunrise and sunset, and Open-Meteo.com to get realtime weather updates. The location of the server can be set in configuration files.
Before starting to play, you need to set the coordinates of your server (or whichever place you want to sync in-game time to). To get the appropriate coordinates, you could, for example, search for "<your city> coordinates" on the internet (geodatos.net often comes up). You should have two decimal values, either of which may be negative.
In the GUI configuration menu (needs Mod Menu), you need the Latitude and Longitude options. If you're unsure which one is which, latitude usually comes first.
The configuration file (needed eg. when on a server) is located at <server directory>/config/synchrono.json5. It looks something like:
{
latitude: 51.11,
longitude: 17.02,
/* rest of the file */
}Change the two values to your coordinates. Make sure you leave the commas on the end of the lines.
See the wiki
Custom Time Cycle by eclipseisoffline is used to make the in-game daylight cycle slow down smoothly.
YetAnotherConfigLib is used for its configuration API and GUI.
Adjusted Phantom Spawns with both mods installed, automatically changes phantoms to only spawn after 3 real-life days have passed.
This mod periodically queries some APIs on the internet to retrieve necessary data to function.
- SunriseSunset.io - needed for accurate localized sunrise and sunset timestamps.
- Open-Meteo.com - needed for realtime localized weather updates.
If your server doesn't have access to these, it might crash with the mod installed.
This mod is licensed under GNU LGPLv3.