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

Started by HuskFan 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.

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
K. Thanks!
Mon, 04/28/2025 - 16:19

K. Thanks!

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Where is the "if entity…
Mon, 04/28/2025 - 23:03

Where is the "if entity=player" block or equivalent?

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm pretty sure it is in…
Wed, 04/30/2025 - 15:35

I'm pretty sure it is in either logic or minecraft components, it is called something like 'is event/target entity (sub)type of [no entry selected]' at least, that is what it was called in older MCreator versions, and if it has changed, I haven't memorized it yet. You need to click on [no entry selected] to open a dropdown menu to set it to a player.

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I found it, but the other…
Thu, 05/01/2025 - 11:44

I found it, but the other part of the mod didn't work, but this will still be useful. Thanks!