promotional bannermobile promotional banner

Day Length

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

day_length-2.0.0-forge-1.20.x.jar

File nameday_length-2.0.0-forge-1.20.x.jar
Uploader
VuserrVuserr
Uploaded
Jun 20, 2025
Downloads
422
Size
22.1 KB
Mod Loaders
Forge
File ID
6673570
Type
R
Release
Supported game versions
  • 1.20.6
  • 1.20.5
  • 1.20.4
  • 1.20.3
  • 1.20.2
  • 1.20.1

Curse Maven Snippet

Forge

implementation "curse.maven:day-length-837167:6673570"

Learn more about Curse Maven

What's new

Added real-time synchronization using the system clock or a manual UTC offset for realistic day progression.

Introduced a new config system using common.toml, allowing detailed customization:

  • useServerTime: Sync time with server system clock.
  • manualUtcOffset: Manually simulate any time zone.
  • smoothTimeTransition: Enable/disable smooth transitions to new time states.
  • smoothTransitionDuration: Set the duration (in seconds) for smooth time transitions.

Implemented smooth time transitions, creating a gradual change when switching between modes or adjusting time settings.

Redesigned two game rules:

  • customDayLength: Control how long a Minecraft day lasts (in real-time seconds). Set to 0 to freeze time.
  • realTimeSync: Enable or disable syncing with real-world time.

Replaced hardcoded time control logic with flexible tick-based progression, allowing dynamic day length modification.

Ensured vanilla daylight cycle is always disabled when the mod is active, preventing conflicts.

Optimized tick handling and performance across dimensions using per-level time accumulation.

Automatically disables vanilla daylight cycle to avoid conflicts with the mod’s custom time system.

Improved multi-dimension support and performance stability.

Updated dependency version to 4.0.0 - 5.0.0.

The full source code for Day Length is available on GitHub: https://github.com/Anchor-Studios/Day-Length/

This mod has no additional files