OtherDrops

226k Downloads

Acquire Potion Effects with Custom Levels and Time

Nezumi-exe opened this issue ยท 1 comments

commented

So what I'm thinking when you perform an action you should get a potion buff for a specific amount of time

commented

Already possible with the poitioneffect parameter :) Eg:

  GRASS:
    - action: BREAK
      chance: 0.5%
      dropgroup: mygroup
      drops:
        - drop: BROWNMUSHROOM
          message: "Some brown mushrooms break up in the grass, the smell makes you feel super-human."
          potioneffect.attacker: SPEED@200@4   # speed level 4 for 10 seconds
        - delay: 200
          message: "The effect wore off."

All Bukkit potion effects are listed here: http://jd.bukkit.org/apidocs/org/bukkit/potion/PotionEffectType.html