Tags
Creators
Details
2.0.0
Compatibility
Required content
Changes
-
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/
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:MrMHdkQ6:PqpVkAkG"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:MrMHdkQ6:PqpVkAkG"
}

