Before entity damaged global procedure trigger

Status
Fixed
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

Im sorry to bring this up again, but i think i found a "bug" for 2023.4 unless this statement was always wrong 
"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"
I have used both, before entity is hurt and entity attacked, and according to the values on log, the value for "amount" is the same for both events. So my question is what went wrong? 
If i should take this to a different place please let me know

Im also gonna add onto this the LivingDamageEvent should be a trigger option. The LivingHurtEvent is not an accurate representation of damage because it is before armor and effects are taken into account. Or just add a custom code snippet trigger block so we can make it anything we want.