Craft Damaged item?

Discussion in 'Plugin Development' started by Benni1000, Jul 19, 2012.

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

    Benni1000

    Hello,
    i tried adding a Recipe that when craftet, returns an Damaged Item Stack.
    So i tried applying the Damage while creating the Item Stack.

    Code:
    ShapelessRecipe sr;
    ItemStack is;
    is = new ItemStack(Material.DOUBLE_STEP,1,(short)1);
    sr = new ShapelessRecipe(is);
    sr.addIngredient(2,new ItemStack(Material.STEP, 1,Short.parseShort("1")).getData());
    Bukkit.addRecipe(sr);
    That did not work at all, so i tried applying the damage after i created the item stack.
    And this did not work either.

    Do you know any way to craft a damaged item?
    In this case i want to craft a SandstoneDoubleStep out of 2 StandStoneSteps.
     
  2. what is the result you get? none items, or a stone slab?
     
  3. Offline

    Benni1000

    I get a normal stone-doubleslab instead of a sandstone one.
     
Thread Status:
Not open for further replies.

Share This Page