Extend a potion effect

Discussion in 'Plugin Development' started by Maximvdw, Jan 17, 2014.

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



    How can I extend a potion effect on a player.
    I use: player.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS,80,50));
    But using that again (20 ticks later) wont add 80 ticks to the effect ( 4sec )
    It should be:
    t0 - 80 ticks
    t1 - 60 ticks + 80 ticks = 140ticks
    t2 - 120 ticks + 80 ticks = ...

    Best Regards,

    OW damn, I always see the result when posting a question :S (sry)
    player.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS,80,50), true);

    the boolean at the back extends it

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

Share This Page