How to get damage received by player AFTER reduction from armors, etc.

Started by PopcatCookie on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to get damage received by player AFTER reduction from armors, etc.

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 ?

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could manually do this…
Tue, 11/25/2025 - 08:21

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.