Giving lingering potions

Discussion in 'Plugin Development' started by plisov, Oct 25, 2016.

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

    plisov

    Hi, I'm trying to make a kitpvp kit but I don't know how to give lingering potions. I know how to make the potion splash potion but I don't know how to make it lingering. Anyone know?
     
  2. Offline

    Kieraaaan

    The code for a lingering potion is: 'minecraft:lingering_potion' or '441'
    All you need to do now is go into your game (in whichever version your kitpvp server will be) and click 'f3' and 'h' together to display the item ID's. Then scroll over whichever lingering potion you want and it should specify what the item ID for that specific lingering potion is.

    I'm not sure if this is what you are looking for but you need to be a bit more specific on what you are actually trying to find out here.
     
  3. Offline

    plisov

    something like this
    Potion damage = new Potion(PotionType.INSTANT_DAMAGE, 1);
    except for lingering potions
     
  4. Offline

    Lordloss

    its exactly the same as splash potion, in the material enum use LINGERING_POTION instead of SPLASH_POTION.

    @plisov and in which way does your comment help the creator?
     
Thread Status:
Not open for further replies.

Share This Page