How do I make a procedure occur when the player takes damage?

Started by Bobh Hob on

Topic category: Help with MCreator software

Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a procedure occur when the player takes damage?

I've been trying many things and all of them failed, I want to add a mechanic that makes it so there is a chance that the player gains a status effect whenever he takes damage, however I cannot find any global procedure of anything else that detects whenever the player takes damage. I have tried to make a procedure where when any entity takes damage they gain a status effect, but that crashed my game multiple times so It cannot be that. Any help, please?

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Global trigger : before…
Sun, 10/08/2023 - 12:36

Global trigger : before entity hurt

Procedure: if entity = player

Do apply potion effect

Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm sorry, which blocks do…
Sun, 10/08/2023 - 19:46

I'm sorry, which blocks do the "if entity = player"?
I might be blind, but I'm not finding them

Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nevermind, got it 
Sun, 10/08/2023 - 21:47

Nevermind, got it