This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Add PredicateChoice recipe choice for crafting #8446
Labels
status: accepted
Disputed bug is accepted as valid or Feature accepted as desired to be added.
type: feature
Request for a new Feature.
Is your feature request related to a problem?
Yup. I'm having some issues with custom recipes in my plugin, but it seems that
ExactChoice
doesn't work as a standard implementation for my specific condition to check ingredients, so I tried creating anotherRecipeChoice
but it didn't work sinceIngredient#test
didn't searches forRecipeChoice#test
.Describe the solution you'd like.
I'd like for a match case for
RecipeChoice#test
in crafting menu, since it's already a predicate and it would be usable.Also, we could make
PredicateChoice
in API to let the developer choose what predicate should work for matching its ingredient.Describe alternatives you've considered.
I think there isn't another dedicated alternative for that, since the only way to match my custom recipe is based on
Ingredient#test
, and it should work if it could useRecipeChoice#test
Other
It's an image from the specific code where it would be included in.
![image](https://user-images.githubusercontent.com/65752397/194764913-4870b3df-1115-4a62-b0c9-ae7d50423e9d.png)
The text was updated successfully, but these errors were encountered: