Item Meta

Discussion in 'Plugin Development' started by StyL_TwisT, Feb 24, 2013.

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

    StyL_TwisT

    Hello,

    I'm trying to create a custom crafting recipe for Chiseled Stone Brick, (The one with circles in it)
    This is what I have:
    Code:
    ShapedRecipe sbrick = new ShapedRecipe(new ItemStack(Material.SMOOTH_BRICK, 8)).shape("sss","s s","sss").setIngredient('s', Material.SMOOTH_BRICK);
    How can i add item meta so that it makes 8 Chiseled Stone Brick instead of 8 Normal Stone Brick?

    Thanks,

    StyL TwisT
     
  2. Offline

    kreashenz

    Could always troll them, use the ItemMeta to just change the name, and not actually give them the item.. :p
     
  3. Offline

    StyL_TwisT

    Nah, its a friendly build server, so i want players to be able to craft it.
     
  4. Offline

    JayzaSapphire

    Code:java
    1.  
    2. new ItemStack(Material.SMOOTH_BRICK, 8, (float)3);
    3.  
     
  5. Offline

    StyL_TwisT

    I have this
    Code:java
    1. ShapedRecipe sbrick = new ShapedRecipe(new ItemStack(Material.SMOOTH_BRICK, 8, (float)3)).shape("sss","s s","sss").setIngredient('s', Material.SMOOTH_BRICK);

    But the entire "new ItemStack" part has now become an error.
     
  6. Offline

    JayzaSapphire

    Oops, sorry i ment (short) not (float), change that and it will work.
     
Thread Status:
Not open for further replies.

Share This Page