Jump to content

Improved Crafting Matrix change detection


peter1745

Recommended Posts

Hello, i've been working on a mod recently, and that mod implements a custom recipe that only gives the result once there is enough of a specific item in the crafting grid (eg. 3x carrots, 5x potatoes etc..), however after doing some testing, i've determined that the IRecipe match method isn't called if the user right-clicks to add ONE item to an already existing stack, personally i think that should change, i think that there should at least be a method in the IRecipe interface that gets called when the player right clicks to add an item to an already exisiting stack

Link to comment
Share on other sites

Mojang designed the recipe system to not work well with stacked items. A lot of assumptions, and things similar to the guide book simply do not work.

If you control the container, you have the inventory change event, but nothing that should be in recipes.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.