GUI help

Discussion in 'Plugin Development' started by yoitsjimby, Aug 27, 2014.

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

    yoitsjimby

    How would I add it so the potion is a potion of instant healing pot how do I add the last numbers heres my code

    Code:java
    1. ItemStack pot = new ItemStack(Material.POTION, 32);
    2. ItemMeta imt6 = pot.getItemMeta();
    3. imt6.setDisplayName(ChatColor.GRAY + "Pots");
    4. this.inv.setItem(4, pot);
     
  2. Offline

    RainoBoy97

    ItemStack constructor.
     
  3. yoitsjimby Just specify it in the item stack.
     
  4. Offline

    werter318

    new Potion().toItemStack();
     
Thread Status:
Not open for further replies.

Share This Page