AndrewFM Posted September 27, 2015 Posted September 27, 2015 The value contained in event.ammount for onEntityDamaged -- is that the amount of damage before armor/potion effects/etc are applied, or the amount of damage after all of that has been factored in? Also, is there an event for the opposite case? I'd like to be able to modify the damage for both. Quote
coolAlias Posted September 27, 2015 Posted September 27, 2015 Neither - some effects, such as weapon enchantments, the attacker's potion effects, etc., have been applied, but the defender's armor and defensive bonuses have not yet been factored in. No, there is no event that triggers after those have been accounted for - you can see the logic flow in EntityLivingBase#damageEntity for exactly which things are not yet factored into the damage when the event is posted. Quote http://i.imgur.com/NdrFdld.png[/img]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.