How do I make something happen when the player receives damage?

Started by Anonymous Ravager on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make something happen when the player receives damage?

How do I make a procedure happen when the player receives damage?

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
?_?. Global trigger: Entity…
Mon, 04/28/2025 - 12:22

?_?. Global trigger: Entity received damage

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And an if block that checks…
Mon, 04/28/2025 - 13:20

And an if block that checks if event/target entity is (sub)type of player.

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so basically "do such and…
Mon, 04/28/2025 - 15:05

so basically "do such and such when entity hurt IF entity=player?

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes, that should work.
Mon, 04/28/2025 - 15:43

yes, that should work.