Posted December 4, 20177 yr Including support for mods that even tweaks recipes like MineTweaker. How would I retrieve a recipe that is also been modified by MineTweaker/CraftTweaker? New Channel: https://www.youtube.com/theawesomegemily'>https://www.youtube.com/theawesomegemily My Group: https://www.youtube.com/officialpixelgem Old Channel: https://www.youtube.com/theawesomegem
December 4, 20177 yr After the mods are loaded you can get a list of all the recipes from the various registries and then loop through them to see if you find a recipe whose output matches what you're looking for. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
December 4, 20177 yr Author 13 minutes ago, jabelar said: After the mods are loaded you can get a list of all the recipes from the various registries and then loop through them to see if you find a recipe whose output matches what you're looking for. Is it okay to do the lookup after the whole initialization phase. For example on events such as when player interacts with a block, it will loop through all the recipes to see the matching output? New Channel: https://www.youtube.com/theawesomegemily'>https://www.youtube.com/theawesomegemily My Group: https://www.youtube.com/officialpixelgem Old Channel: https://www.youtube.com/theawesomegem
December 4, 20177 yr Yes. If you think about it, the crafting GUI has to loop through all the recipes whenever you change the inputs. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
December 4, 20177 yr For performance reasons you need to be weary of when you do this as there are thousands, perhaps hundreds of thousands of recipes. So searching it takes some time. So do it as rarely as you can, and cache the results. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
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.