Spawning Splash Potion

Discussion in 'Spigot Plugin Development' started by Stevie212, Mar 14, 2018.

  1. So i tried spawning a splash potion with this piece of code and nothing happened

    ThrownPotion thrownPotion = (ThrownPotion)p.getWorld().spawnEntity(p.getEyeLocation(), EntityType.SPLASH_POTION);

    Can i get some help from anyone?
  2. Can we see more of your code?
  3. thrownPotion.getEffects().addAll(Potion.fromItemStack(pot).getEffects());

Share This Page