Item Stacks

Discussion in 'Plugin Development' started by rob4001, Aug 15, 2011.

Thread Status:
Not open for further replies.
  1. What is the variables when defining a new ItemStack

    Code:java
    1.  
    2. new ItemStack (Int/MAterial = the item id or type, int = the amount, Short = ?, Byte = ?)
    3.  
     
  2. Offline

    Crash

    The short is the durability of the itemstack and the byte is the itemstack's data.
     
  3. Sooo how wopuld you make a stack of say red wool?

    Could someone give me an example of red wool and a iron pickace which is dmged

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  4. Offline

    Crash

    ItemStack redwool = new ItemStack(35, 1, 0, (byte)14);
    ItemStack pickaxe = new ItemStack(257, 1, damage);
     
Thread Status:
Not open for further replies.

Share This Page