Tags
Creators
Details
Licensed GPL-3.0-only
Published 2 years ago
Updated 5 months ago
All versions
3.0.0
Release
Day Length 3.0.08 months ago 56
Compatibility
Minecraft: Java Edition
1.20.1
Platform
Forge
Supported environments
Client and server
Changes
- 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.jarand configuredJAVA_HOMEto 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
dayTimewhen 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
customDayLengthandrealTimeSync(migrated to config).
Full Changelog: https://github.com/yigit-guven/Day-Length/compare/4.0.0...3.0.0
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:8PjVWVxL"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:MrMHdkQ6:8PjVWVxL"
}

