Open JoshieGemFinder opened 1 month ago
couldnt you just do this by going through everyone around you and checking if theyre both swinging their arm and have you as their targeted entity?
couldnt you just do this by going through everyone around you and checking if theyre both swinging their arm and have you as their targeted entity?
There are several issues with this:
ATTACKED
/PRE_DAMAGE
event would give youAfter further investigation, I now see why this wasn't implemented originally: You can only get this information on the server side (which as a client-side-only mod, Figura didn't want to implement). I will leave the issue open in case anyone later figures out a way to make this work.
Request Description
Currently, the
DAMAGE
event only triggers after an entity takes damage; however, we sometimes want some action to occur when an attack attempt is made, regardless of whether it goes through or not (most notably, when you know that the attack will be cancelled out by some damage invulnerability). TheATTACKED
event would be identical to theDAMAGE
event, with the sole exception of it firing at the start of player damage handling, instead of at the end.Note: I use
ATTACKED
since Forge has aLivingAttackEvent
for this same purpose (fired beforeLivingDamageEvent
, which is equivalent to figura'sDAMAGE
event), butPRE_DAMAGE
is also a valid name for this event, and would fit the Figura event naming schema better