Question Potion Effects

Discussion in 'Bukkit Help' started by bushgamer641, Jun 23, 2015.

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

    bushgamer641

    I'm trying to give a mob a potion effect of strength 50 forever (I'm making a boss mob in a plugin). I've tried this code:

    Code:
    zombie.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE));
    I get errors, and I think this is only strength one. Can someone with superior programming knowledge help me?

    Here are my imports:
    Imports (open)

    Code:
    import org.bukkit.ChatColor;
    import org.bukkit.Material;
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.entity.Player;
    import org.bukkit.entity.Zombie;
    import org.bukkit.inventory.ItemStack;
    import org.bukkit.plugin.java.JavaPlugin;
    import org.bukkit.potion.PotionEffect;
    import org.bukkit.potion.PotionEffectType;
     
  2. Offline

    stefvanschie

    Here:
    Code:
    zombie.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, DURATION, AMPLIFIER));
    Replace the Duration with the duration in ticks and the amplifier with the amplifier
     
  3. Offline

    bushgamer641

    Sorry for the late reply, but thanks
     
Thread Status:
Not open for further replies.

Share This Page