Solved Modifying beacon effect

Discussion in 'Plugin Development' started by NemesisMate, Oct 13, 2013.

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

    NemesisMate

    I would like to set a beacon effect (so I can apply effects that beacon hasn't got) if it's possible but I can't find a way to do it so any help is welcome :D.
     
  2. Offline

    MiniDigger

  3. Offline

    foodyling

    You can check out this class I made here
     
  4. Offline

    MiniDigger

    foodyling this is pretty cool. Thanks for posting that. I think this is what NemesisMate was searching for
     
  5. Offline

    NemesisMate

    MiniDigger yes, this is just what I was looking for, is perfect!.

    There is a little mistake on the code you posted, foodyling just on:

    Code:java
    1. // Set the primary effect
    2. state.setPrimary(PotionEffectType.HEALTH_BOOST);
    3. // Set a secondary
    4. state.setSecondary(PotionEffectType.ABSORPTION);


    You have setPrimary twice instead of setSecondary for the secondary ;), whatever, thanks very much! :D.
     
Thread Status:
Not open for further replies.

Share This Page