How do I add an empty space in an inventory?

Discussion in 'Plugin Development' started by RW_Craft, Nov 10, 2014.

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

    RW_Craft

    How do I add an empty space in an inventory? When I add the item 'air', it just ignores it, anyone know what to do?
    Code:
    http://pastebin.com/QnbndDke
     
  2. Offline

    chasertw123

  3. Offline

    tommyhoogstra

    Fill the inventory first, then set the slots you want to air
    inventory.setItem(inventoryPosition ,Material.AIR) or something simular to that anyway
     
  4. Offline

    RW_Craft

    I figured it out, I did:
    i.setItem(0, compass)
    etc
     
  5. Offline

    Funergy

Thread Status:
Not open for further replies.

Share This Page