Started by
Bobh Hob
on
Topic category: Help with MCreator software
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?
Global trigger : before entity hurt
Procedure: if entity = player
Do apply potion effect
I'm sorry, which blocks do the "if entity = player"?
I might be blind, but I'm not finding them
Nevermind, got it
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
I think "Before Entity is hurt" is now "Entity is hurt" because i cant find before entity is hurt but the other one.
Also how do i do that it only counts Mob attacks and not hunger, if i get damage from starving now i also get the effect...
Use "Is [Provided damage source] of type [Starve]" It means whether the damage source is hunger.