WebApr 11, 2014 · potionMeta. addCustomEffect(new PotionEffect ( PotionEffectType. CONFUSION, 100, 1), true); buffedPotion. setItemMeta( potionMeta); Adds confusion for 100 ticks. You can change the potion effect and time. The 1 is the potion data for an example would define the level (speed 1, 2, or 3). Can't test on a server so tell me if … WebAug 14, 2015 · public void sendAddPotionEffect (Player p, PotionEffect effect) { PacketContainer packet = new PacketContainer (ENTITY_EFFECT); @SuppressWarnings ("deprecation") int effectID = effect.getType ().getId (); int amplifier = effect.getAmplifier (); int duration = effect.getDuration (); int entityID = p.getEntityId ();
PotionEffect (Spigot-API 1.19.4-R0.1-SNAPSHOT API)
Web21 rows · Potion Names: Increases movement speed. Decreases movement speed. … WebJan 6, 2014 · That’s why you have to convert the entities to LivingEntity before assigning. Code: public void onZombieSpawn (CreatureSpawnEvent event) { if (event.getEntity () instanceof LivingEntity) ( (LivingEntity)event.getEntity ()).addPotionEffect (new PotionEffect (PotionEffectType.SPEED,2147483647, 50)); r0306, Jul 29, 2012 #2 Offline Ryan Johnson prodigy test strips best price
Add Potion Effects to EntityPlayer - High Performance Minecraft
WebFeb 10, 2024 · ToolAndFoodFX. Ver. 1.7. ToolAndFoodFX is a plugin that lets you add potion effects to tools/weapons, projectiles, and food, and armor. When you eat food with effects applied, you will get those effects. Hitting a mob with a weapon that has an effect will give those effects to the mob. WebFeb 17, 2015 · The potion effect should only be applied to an armour piece if the name and the material on that armour piece is corresponding to the config file. Should be able to have 3 different potion effects on 3 armour piece that is … WebJul 17, 2024 · import org.bukkit.potion.PotionEffectType; public class Fury implements CommandExecutor { private final int cooldown = 30; private final int duration = 10; private HashMap cooldowns = new HashMap (); public boolean onCommand (CommandSender sender, Command command, String label, String [] args) { if (! (sender … prodigy test strips 52800