When do Potion Effects Take Place

Discussion in 'Plugin Development' started by Acer_Mortem, May 7, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Acer_Mortem

    Does anyone know when Minecraft calculates damage while taking into account Potion Effects? Is it calculated before the EntityDamageEvent? For example, if I recieve 10 points of damage, and I have the resistance effect (tier 1), does the EntityDamageEvent show 8 points?
     
  2. Offline

    xTigerRebornx

    Acer_Mortem I believe the EntityDamageEvent doesn't take into consideration armor + potion effects + whatever reduces damage. It will give the damage that is either calculated by Minecraft (fall, block, suffocation, etc), or in the case of the Entity being hit by another Entity, the raw damage from the weapon they have, whether it be a Diamond Sword or their 'fist'
     
Thread Status:
Not open for further replies.

Share This Page