Solved Custom Crafting With ItemStacks

Discussion in 'Plugin Development' started by chasertw123, Jun 17, 2014.

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

    chasertw123

    I know it is possible to create custom crafting recipes using the bukkit api and using materials. But I was wondering if it is possible to make a custom crafting recipe using itemstacks as items for the recipe. I have yet to find this in the api. Also no luck from an hour of goggling. For example when define a custom recipe you define a key with a material but instead of a material I want to use a ItemStack if anyone has an idea of how to do this thanks!

    - chasertw123
     
  2. Offline

    xTigerRebornx

    chasertw123 I don't believe the recipes are registered through ItemStacks* (but rather the Id and data and a few other things), but this can be achieved by using the PrepareItemCraftEvent, and checking the ItemStack's there.

    * - Feel free to correct me if that is wrong
     
  3. Offline

    AoH_Ruthless

    chasertw123
    The only things you can define for crafting recipe ingredients is material and materialdata. Sorry.
     
Thread Status:
Not open for further replies.

Share This Page