Adding crafting recipes

Discussion in 'Plugin Development' started by MrCreeper, Aug 30, 2011.

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

    MrCreeper

    Hey :)
    I want to make chain equiment craftable of obsidian, this is my current code:
    Code:java
    1.  
    2. ShapedRecipe boots = new ShapedRecipe(new ItemStack(Material.CHAINMAIL_BOOTS));
    3. boots.shape(new String[] {" ", "# #","# #"});
    4. boots.setIngredient('#', Material.getMaterial(id), 1);
    5. server.addRecipe(boots);
    6.  

    The crafted item disappears when I click on it during holding Shift.
    What did I make wrong? =)

    Push. =)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
  2. I think the array has to be each individual square, not each row
     
  3. Offline

    MrCreeper

    So, how should the code look like? =)
     
Thread Status:
Not open for further replies.

Share This Page