
⏱️ About
A simple, very-compatible mod to extend the day and/or night length in Minecraft. Unlike some other similar mods, it works by internally switching the doDaylightCycle rule on/off which should be more compatible with mods such as TerrafirmaCraft.
💡 1.2.0 is finally released which fixes the desync (judder/stutter), has ports for more MC versions, and adds support for variable day/night length ratio based on Calendar in TerraFirmaCraft (thanks to alekiponi for working on this). Maybe support for Serene Seasons next...?
📜 Changelogs (Update history)
1.2.1
- Fix regression: time extension for when day and night multipliers are different (oops again, sorry xD) - thanks to sl-einert for reporting.1.2.0
- Fixed the desync (judder or stutter) of time. This was caused by the incorrect assumption that Minecraft would synchronize with clients.- Added feature to automatically adjust day/night length depending on the calendar/season (time of year) for mods. Currently only supports TerraFirmaCraft calendar, will likely add Serene Seasons support later. Thanks to alekiponi for working on this feature.
- [Forge] Config is moved to common file under the normal config folder instead of being per-world, and is now the same for all worlds. This was required for desync fix.
- Changed default multipliers to 2.0x since that seems most common
1.1.1
- Fix time extension for when day and night multipliers are different (oops). Thanks to Sub2I1 for reporting!1.1.0
- Add "delayTimeCycleUntilFirstJoin" config option- Add "disableTimeCycleWhenServerEmpty" config option
- Improve TFC compatibility (prevent log spam about Calendar stuff)
- [Fabric] Add dependency on Forge Config API Port in metadata
1.0.0
- Initial release
⭐ Highlights
- Works with TFC (TerraFirmaCraft) and probably all other mods (please report if not);
- NEW: Supports variable day/night ratio based on the season or time of year used by other mods. Currently supported mods: TerraFirmaCraft... that's all for now. Serene Seasons next perhaps?
- Multiply the day and night length separately;
- Can use arbitrary fractions, e.g. 1.5 or 50.25;
- Required on both Server and Client side (to prevent judder/desync);
🏷️ Usage & Config
After installing the mod, simply start Minecraft to let the config generate. Jump into any world if you're happy with the default config of 2x for both day and night, you will see something like this in the log:
Using a multiplier of x2.0 for Day time - Phase starts at 0 and will advance daylight cycle by 1 ticks over 2 game ticks on average. Using a multiplier of x2.0 for Night time - Phase starts at 13000 and will advance daylight cycle by 1 ticks over 2 game ticks on average.
Refer to the config details below for complete usage.
simpledaylengthextender-common.toml:
[general]
dayLengthMultiplier:
- Multiply the day length by this number. Fractions are supported, but must be above 1.0 (cannot shorten).
- Default is 2.0, range is 1.0 to 100.0
delayTimeCycleUntilFirstJoin
- If true (default), the daylight cycle will not start until the first player joins the world. Handy for multiplayer and/or heavy modpacks.
dayStartInTicks:
- Start time in ticks to use the day multiplier.
- Default value of 0 represents a standard Minecraft day start of 06:00. Must be less than nightStartInTicks.
disableTimeCycleWhenServerEmpty:
- If true (NOT default), doDaylightCycle will be forced to false when the server/world is empty. Might be useful for multiplayer.
nightLengthMultiplier:
- Multiply the night length by this number. Fractions supported, but must be above 1.0 (cannot shorten).
nightStartInTicks:
- Start time in ticks to use the night multiplier.
- Default value of 13000 represents a standard Minecraft night start of 19:00.
autoCalendarAdjustments:
- If true (default), some mod-added calendars/seasons will dynamically adjust day/night ratio.
- Note that day/night length will effectively be 1.5x more than the multipliers dictate for math reasons. For example if the multipliers are set to 2.0x then the day length could be about x2.91 and night length about x1.59 depending on time of year. Keeping showDetailsToLog enabled will let you check final multipliers.
- Also note that if the night start time is configured with the default 13000 it will be corrected to 12000 so that the day and night length difference makes sense.
- Currently supported mods: TerraFirmaCraft, nothing else yet (please share your requests back to me - I will very likely add Serene Seasons support)
showDetailsToLog:
- If true (default), details of day/night length will be logged to console. Setting to false might be useful to reduce log spam, especially if autoCalendarAdjustments are in effect since it would make semi-regular log entries whenever calendar adjustments occur throughout the year/seasons.
✔️ Compatibility and Known Issues
TerraFirmaCraft
- Works 100%. Note that this mods "disableTimeCycleWhenServerEmpty" setting will be auto-set to true if TFC's time stop setting is also true.
Please report any and all issues not mentioned so I can improve the mod :D
🛎️ Support
Hopefully, the mod is simple enough to use, but you are encouraged to:
- Report any bugs you find;
- Report any incompatibilities with other mods;
- Request any features you want to see
...so I can keep improving the mod 😊 be sure to mention your loader (e.g. Forge, Fabric) and Minecraft version too!
⁉️ FAQ / Troubleshooting
Q. Can I use this in my modpack?
A. Of course! As long as you consider reporting any mod compatibility issues, and feature/config requests too 😁
Q. Does this mod cause lag, or cause extra network traffic in multiplayer?
A. Nope! Because the mod is required on both client and server-side, the gamerule is changed on both sides using the same deterministic algorithm. As usual, make sure client and server have identical config though otherwise the client will have strange rubber-banding.
Q. I have another question...
A. ...ask away in the comments :)
🕹️ CosmicDan's Mods
Sleeping Overhaul 2
Replaces skip-to-day on sleep with a time lapse, and more!
Simple Day Length Extender
A simple, highly-compatible mod to extend the length of day and/or night.
Temperature Bands
Modifies world generation to place biomes into repeating temperature bands. Compatible with most worldgen mods.