Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
Adds mob collision damage based on size differences.
I've only tested it on 1.20.1 with pehkui 3.8.2, but it should work on other versions.
How the 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.


