Started by
PopcatCookie
on
Topic category: Help with Minecraft modding (Java Edition)
I need to get the damage received by player, but the small block "amount" only gives the damage dealt to player before all the reduction from armors, resistance effect etc.
Is there a way to get amount of damage after reduction ?
You could manually do this by checking what the player's armor points and toughness are, along with any potion effects like resistance, then going backwards by reversing the algorithm Minecraft uses to calculate the damage reduction.