Bonemeal Material

Discussion in 'Plugin Development' started by Acer_Mortem, Apr 6, 2013.

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

    Acer_Mortem

    What is the material for Bonemeal? It's not under material.<x>

    Do I need to add MetaData to an Ink Sac?

    And what would I put for the meta (replacing LeatherArmorMeta)
    Code:
                    LeatherArmorMeta meta1 = (LeatherArmorMeta) pants.getItemMeta();
     
  2. Offline

    CubixCoders

    You would have to use an inksac and set the durabilty to the data value of bonemeal
     
  3. Offline

    Acer_Mortem

    What's the durability of bonemeal?
     
  4. Offline

    MrSparkzz

    Acer_Mortem
    Here's a way you can do it.

    Code:java
    1.  
    2. ItemStack BONE_MEAL = new ItemStack(Material.INK_SACK);
    3. BONE_MEAL.setDurability((short) 15);
    4.  
    5. pi.addItem(BONE_MEAL);
    6.  
     
  5. Offline

    Johnzeh

    Try: ItemStack bonemeal = new ItemStack(Material.INK_SACK, 1, (short)15);
     
  6. Offline

    Acer_Mortem

    Thanks =D
     
Thread Status:
Not open for further replies.

Share This Page