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 (Move your mouse to reveal the content) Imports (open) Imports (close) 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;
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