ichttt / FirstAid

A Minecraft Mod that changes the vanilla health system
GNU General Public License v3.0
27 stars 28 forks source link

[Request]Help for compatibility #234

Open Kettle5000 opened 3 months ago

Kettle5000 commented 3 months ago

I'm trying to make an enchantment mod that adds another damage reduction layer in the event LivingDamageEvent (after all reductions) I have seen your very complex code (im new in this) and i have seen that it will work in normal vanilla conditions but not when the damage is distributed Right now, if a player has this enchantment on the boots, the damage reduction will still apply to other areas(like the head) I'm asking for help on how can i check where part was damaged and apply the reduction according to the enchantment level of the piece of armor.

Sussy-Chungus commented 3 days ago

Kettle, can you do me a solid and upload your Missing Damage Model fix to Curseforge or something. I have no idea how to decompile and recompile and shit. I've never used github, but I'd like to implement your fix, please.

edit: I think it wont build because you use NeoForged and I'm using Forge. It's the only thing I noticed that might be why it keeps failing.

ichttt commented 2 days ago

Hmmm. So you are adding your own enchantment, and it is currently applied globally. I can't seem to find your code on your Github account. Is it possible for you link me to your current code and/or send me a version of your mod, so I can take a look?