Procedure happens when player takes certain amount of damage

Started by lactrosepvp on

Topic category: Help with modding (Java Edition)

Last seen on 11:11, 6. Jul 2023
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure happens when player takes certain amount of damage

Basically i want it so whenever player takes a certain amount of damage example: higher than 1 heart a procedure executes. I just need to know how to detect how much damage the player takes.

Last seen on 14:00, 24. Apr 2024
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is a Global Trigger …
Tue, 04/25/2023 - 20:13

There is a Global Trigger "Before entity gets hurts".

Then you can check for specific Entity for example player and also you can get the amount of the Damage. On the right there you will see the dependencies of the Global Trigger. Double Click "amount" to get the procedure block with the amount dependency.