Links
Tags
Creators
Details
Licensed MIT
Published yesterday
Updated 2 months ago
All versions
1.0.0
Release
Protection Change 1.0.02 months ago 11
Compatibility
Minecraft: Java Edition
1.21.1
Platform
NeoForge
Supported environments
Server-side
Singleplayer
Required content
Unavailable version
Changes
- Add MidnightLib as dependency
- Add custom maximum protection level before it no longer has an effect
- Add Root formula type
- By default it's a square root, modify the Root Exponent in the config to change that
- Formula is at the end that shows how the constant is used
- Rename Vanilla to Linear, add customizability
- Rate at which it increases per protection level can be modified via Linear Rate in the config; 0.04 replicates vanilla
Below are the formulas used, where p is the amount of protection levels across armor pieces, clamped between 0 and the maximum protection value set in the config
// Root formula
damage * (1 - rootConstant * (p ^ rootExponent))
// Linear formula
damage * (1 - p * linearRate)
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:KE6yFenE:5iBRg2Lz"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:KE6yFenE:5iBRg2Lz"
}
