Skip to content

Add PredicateChoice recipe choice for crafting #8446

Description

@luiz-otavio

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 another RecipeChoice but it didn't work since Ingredient#test didn't searches for RecipeChoice#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 use RecipeChoice#test

Other

It's an image from the specific code where it would be included in.
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.type: featureRequest for a new Feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions