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

Started by Bobh Hob on

Topic category: Help with MCreator software

Last seen on 16:18, 26. Oct 2023
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?

Last seen on 21:14, 5. Oct 2024
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

Last seen on 16:18, 26. Oct 2023
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

Last seen on 16:18, 26. Oct 2023
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 

Last seen on 23:49, 15. Oct 2024
Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
where was the "if entity =…
Sat, 10/05/2024 - 19:00

where was the "if entity = player" block?

im on 2024.3

Last seen on 21:14, 5. Oct 2024
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
https://imgur.com/a/8iVQe6w …
Sat, 10/05/2024 - 21:14

https://imgur.com/a/8iVQe6w

"Is [Event/target entity] (sub)type of {Player}" - You can find it in the Logic tab all the way at the bottom