Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CraftingContext support #1181

Open
wants to merge 1 commit into
base: 1.21.x
Choose a base branch
from

Conversation

Random832
Copy link
Contributor

Previously we only supported the player in the get remaining items stage, this adds it to all stages of recipe evaluation and adds the Level and CraftingContainer as well. This will help in situations such as: the recipe needs to use durability from items in get remaining items; the recipe needs to distinguish between two identical inputs where one is shifted down or right in the grid; etc.

@CLAassistant
Copy link

CLAassistant commented Jun 25, 2024

CLA assistant check
All committers have signed the CLA.

@neoforged-pr-publishing
Copy link

  • Publish PR to GitHub Packages

@Matyrobbrt Matyrobbrt added enhancement New (or improvement to existing) feature or request 1.21 Targeted at Minecraft 1.21 labels Jun 25, 2024
Previously we only supported the player in the get remaining items
stage, this adds it to all stages of recipe evaluation and adds the
Level and CraftingContainer as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.21 Targeted at Minecraft 1.21 enhancement New (or improvement to existing) feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants