1.2.0-1.14_1.15
Compatibility
Changes
Saturation Plus - Patch Notes (1.2.0)
-
Added two commands for manually adjusting saturation:
- Use /addSaturation to add (or subtract, using negative input) saturation.
- Use /setSaturation to change saturation to a fixed amount.
-
Similar to /getSaturation, the commands are only useful for players; they also cannot be used to go under the minimum saturation level of 0.
-
The following edge cases for large saturation levels were observed and handled as follows:
- Due to floating point precision loss, any saturation gained past 2^24 (16777216) will lose accuracy. This establishes a soft limit on foodstuffs that offer marginal saturation increases.
- To prevent saturation from being stuck at values past 2^24, saturation loss will be doubled for every power of 2 to accompany the precision loss.
- A hard limit of 3.4e+38F (the floating point limit) has been implemented to prevent overflow.
- Alongside text adjustments for /getSaturation, the hunger bar representative (ex. "_ hunger bars") no longer caps at the integer limit.
-
Additional optimizations!
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:AgApeolo:vqPVBxvU"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:AgApeolo:vqPVBxvU"
}

