1.2.0
Compatibility
Required content
Changes
Adds mob collision damage based on size differences.
Update:
- Players are now given a random size on first spawn.
- Optional toggle to turn on and off both the collision logic and random size. Both are on by default.
- Can coustomize each randomly picked size in config file.
I've only tested it on 1.20.1 with pehkui 3.8.2, but it should work on other versions.
How the collision logic works:
Spoiler
-
First it checks if the bigger mob is moving into the smaller mob.
-
Then it finds the scale difference between the two coliding mobs.
-
Then it checks if the bigger one is at least 4x the scale.
-
Then it checks if the bigger mob is less than 100x the scale.
-
Then it adds random variance to the difference.
-
After adding varience it checks if the bigger mob was either walking, sprinting, crouching, or falling, adding different multipliers off that.
-
Finally it checks if config allows the smaller mob to die before applying the difference as damage to the smaller mob.
You may put my mod in whatever you want, whether it's a modpack, or your own mod, just make sure people are able to either find my name or the mod page. You can not edit my code and upload it as your own, this means you can edit, and use it privately, just dont upload it without my permission.
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:lAwDJjkD:zddcr5O8"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:lAwDJjkD:zddcr5O8"
}

