Before entity damaged global procedure trigger

Upvotes: 4
Issue description

Please add the procedure triggers for LivingHurtEvent and LivingDamageEvent.

the first one is done when an entity's hurt but no damage has been dealt yet

the second one is triggered when the damage has been calculated and dealt i think

with these we can alter the damage for anything and create much more!

 

p.s. can't do it on servers, though

https://www.minecraftforge.net/forum/topic/68448-event-that-fires-when-player-is-hurt/

Issue comments

You can use entity damaged and killed global triggers for this and these are granted to work with servers too.

but thing is entity attacked is triggered after the damage has been calculated and dealt

i would like to alter the damage before its actually calculated like in the issue ticket



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.