How do you create a potion splash effect?

Discussion in 'Spigot Plugin Development' started by bowser123467, May 13, 2016.

  1. I'm trying to create the potion splash effect.

    This is the method I am using. However, the potion is always a blue water splash effect. How do I fix this?

    Code (Text):
        public static void splashPotionEffect(Location location, PotionData data){
           
            World world = location.getWorld();
           
            world.playEffect(location, Effect.POTION_BREAK, new Potion(data.getType()));
           
        }