Red glass pane

Discussion in 'Plugin Development' started by victor2748, Oct 13, 2014.

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

    victor2748

    Hey guys, I have this problem: I am trying to get a red glass pane as an ItemStack. I tried setting the Durability to 14, but doesn't work. Can you please help?
     
  2. Offline

    CaptainUniverse

    new ItemStack(Material.GLASS_PANE,1,(short)14);
     
  3. Offline

    mine-care

    victor2748 CaptainUniverse is right, let me explain that durability is how much "energy" a item has, it works for tools and armor's and its the bar showing their damage. What CaptainUniverse did, is creating a itemStack with glass pane in ammount of 1 and adding the data value of 14 that is red its like in the item id, for example 35:2 35 is the id and 2 is the data
     
Thread Status:
Not open for further replies.

Share This Page