when living entity is hit with tool amount of damage

Started by KeizuMoon on

Topic category: Help with modding (Java Edition)

Last seen on 22:29, 1. Jan 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
when living entity is hit with tool amount of damage

when living entity is hit with tool event did not provide amount of damage, how then i can get it?

Last seen on 20:43, 20. Aug 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use the 'before…
Sun, 12/31/2023 - 01:37

You can use the 'before entity is hurt' global trigger, which includes the amount of damage as a dependency. (And optionally the source entity.)