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.
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.
@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.
@87pen There's ShapedRecipe#setIngredient(char, MaterialData), however I don't think this is what you mean/need https://hub.spigotmc.org/javadocs/b...dient(char, org.bukkit.material.MaterialData)
@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.
I did that's how I accessed the shapedRecipe#getIngredient('char', material); @mythbusterma Sad news.