promotional bannermobile promotional banner

Day Length

Change how long a Minecraft day lasts and sync it with real-world time.

File Details

daylength-3.0.0-forge-1.20.1.jar

  • R
  • Mar 1, 2026
  • 164.23 KB
  • 67
  • 1.20.1
  • Forge

File Name

daylength-3.0.0-forge-1.20.1.jar

Supported Versions

  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:day-length-837167:7695761")
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

  • Config Button: Added a "Config" button to the mod list that opens the configuration file directly in the system editor for faster management.
  • Improved Sleeping: Corrected sleep logic to ensure players can skip the night normally while custom day lengths are active (but not in real-time sync mode).
  • Gradle & Environment Fix: Restored missing gradle-wrapper.jar and configured JAVA_HOME to ensure build compatibility with Forge 1.20.1.
  • Code Fixes: Resolved compilation errors related to level.getSleepStatus().
  • Cloud/Sun Jitter: Rewrote time ticking logic to only update dayTime when a full tick is accumulated. This significantly reduces packet spam and eliminates the "vibrant" sky movement.
  • Real-Time Sync: Improved real-time sync with better UTC offset handling and smooth transitions.
  • Configuration: Replaced in-game Gamerules with a standard Forge config file (daylength-common.toml).
  • Code Cleanup: Removed unnecessary dependencies (ancore) and cleaned up "AI-generated" boilerplate/comments.
  • Performance: Optimized server ticking to reduce overhead when the mod is not actively overriding time.
  • Dependency on ancore.
  • Custom Gamerules customDayLength and realTimeSync (migrated to config).

Full Changelog: https://github.com/yigit-guven/Day-Length/compare/4.0.0...3.0.0