How to get the "actual" damage taken in "entity attacked/before entity is hurt" procedures

Started by RedWirePlatinum on

Topic category: User side tutorials

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to get the "actual" damage taken in "entity attacked/before entity is hurt" procedures

So yea, I noticed the "amount" is usually the base number for damage taken but isn't the *actual* amount of damage taken. Getting the number of actual damage taken was pretty simple

Ex: skeleton arrow shots deal 4 damage in normal mode, if you wear a full set of netherite armor (w/o enchantments), the "health" number would be ~0.6 or ~0.9.

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
NOBODY, and when I say…
Wed, 11/30/2022 - 21:47

NOBODY, and when I say nobody its really nobody, like I checked the WHOLE forum with every keyword from this. There was nothing that worked with potion correctly because of the dependencies and everything and you came here with an idea so basic and simple but so efficient ! Thank you so much you saved 2hours, I almost gave up xD Love u

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks, this is probably…
Fri, 05/03/2024 - 23:18

Thanks, this is probably going to be very helpful

Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey, I can't locate the "set…
Sat, 08/09/2025 - 14:18

Hey, I can't locate the "set global" procedure anywhere, am I stupid or has it been changed to something else? >-> An answer would be greatly appreciated 

Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I found the way actually,…
Sat, 08/09/2025 - 14:52

I found the way actually, but, the “actual damage” number will always be huge with decimals too long. I only want it to show the first decimal, how do I round it down?