Crafting ingredients.

Discussion in 'Plugin Development' started by 87pen, Dec 29, 2015.

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

    87pen

    I currently do not have access to an IDE as I am at work. I was wondering if someone could tell me if shapedRecipe#setIngredient('char', material) can be used as shapedRecipe#setIngredient('char', ItemStack);
    Or if anyone knows a way to require items with specific itemmeta to craft specific items.
     
  2. Offline

    adam753

    You can't do it in that particular way. But I think you can check the ItemStacks in a CraftItemEvent and decide whether to cancel it, so that would be the closest thing to what you want. Maybe someone with more experience will have a better answer.
     
  3. Offline

    87pen

    @adam753 I see thanks for the answer, it Kinda depresses me that I can't do it in a much similar way. If anyone has a better way of doing it please tell me.
     
  4. Offline

    Xerox262

  5. Offline

    87pen

    @Xerox262
    It's not really what I'm looking for. I was hoping that there was a way I could check if an ingredient in a shapedrecipe had a specific lore. Without accessing CraftItemEvent.
     
  6. Offline

    mythbusterma

  7. Offline

    teej107

    Poor excuse. Use the JavaDocs :p
     
  8. Offline

    87pen

    I did that's how I accessed the shapedRecipe#getIngredient('char', material);
    @mythbusterma
    Sad news.
     
Thread Status:
Not open for further replies.

Share This Page