Damage in Absorption

Discussion in 'Plugin Development' started by TheIronKill, Sep 19, 2014.

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

    TheIronKill

    Hey guys, anyone know how much absorb the effect absorption...
    I know the armor absorb depending of material, but the diamond armor, complete, absorb 80% of damage received... how much absorb the absorption?

    sorry for my english...is not my languaje.


    EDIT:
    I was experiencing and I know that my problem is not as I thought it was.
    Now I need to know anything else, that event or receives damage absorption, because I changed the values ​​of the damage in EntityDamageByEntityEvent to 0(zero) and no low life, but absorption if low, I guess the damage absorption occurs first, so I ask for help on the subject, take care to know where or when and how to modify the absorption take damage I want.
     
  2. First you need to get the potion effects on the player and get the details of the current absorption effect.
    After that you will need to remove the effect and apply a new one with a lower potion multiplier.
    And, of course set the damage to 0 or cancel the damage event.
     
  3. Offline

    TheIronKill

    Cancel the damage is the unique option, because set the damage to 0, the absorption take the damage before of event, i dont know why, if a mob attack with a damage of 10, and if I set damage to 5 in the EntityDamageByEntityEvent, the absorption reduction is with the damage of 10, no 5....
    Thanks for your help...

    Hello, I need more help, I can not solve my problem, the absorption is causing me problems, if I modify the damage in any event, the absorption does not respect him and takes the original injury, I need help to absorption take damage I change in any event, I hope someone has some solution, thanks

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
  4. Offline

    Zarkopafilis

    Cancell the event and do entity.damage(dmg , source)
     
  5. Offline

    TheIronKill

    I dont think that solves my problem, you explain me please, if that solved my problema...

    Anyone? ññ

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
Thread Status:
Not open for further replies.

Share This Page