Solved Giving Items Help

Discussion in 'Plugin Development' started by Cammy_the_block, Dec 12, 2012.

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

    Cammy_the_block

    How would I give an item with item data?
    example: 268:0:2
    373:8139:0
     
  2. Offline

    fireblast709

    ItemStack giving = new ItemStack(Material material, int amount, short damage, byte data);
     
  3. Offline

    Cammy_the_block

    What is material, damage, and data?
     
  4. Offline

    fireblast709

    material is a Material (you could use an id instead), damage is the damage value, data is the item data
     
  5. Offline

    Cammy_the_block

    That makes sense.

    Thanks
     
Thread Status:
Not open for further replies.

Share This Page