when living entity is hit with tool amount of damage

Started by KeizuMoon on

Topic category: Help with Minecraft modding (Java Edition)

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?

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.)