Posted March 28, 20169 yr I am trying to dynamically create recipes using mod items from ItemRegistry. How would I do that? Example: Item "X" is added by some random mod, and I want to make this recipe from it: X,X,X X,X,X X,X,X Any help would be appreciated.
March 28, 20169 yr Is there any sort of logic to how you choose inputs and outputs, or you just want every single registered item to be craftable in groups of 9 to make... what? Anyway, just iterate through the registered items and add recipes, e.g.: for (Item item : registered items) { GameRegistry.addRecipe(output, 'xxx','xxx','xxx', 'x', item); } http://i.imgur.com/NdrFdld.png[/img]
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.