Posted July 3, 20178 yr In the past I did it by calling GameRegistry.addRecipe(...) and passed the ShapelessOreRecipe. The method no longer exists. I have tried registering a recipe like one normally would, but creating a ShapelessOreRecipe and then getting the ingredients with shapelessOreRecipe.getIngredients() one by one. Didn't work. I also tried CraftingHelper.getIngredient() with the string of the ore recipe. Didn't work either. How would I go about it?
July 3, 20178 yr There are a lot of threads related to recipes in 1.12 on this subforum that you could quickly find. Create a valid json that is your recipe and put it in assets/%modid%/recipes. And you are done - forge will load the recipe for you automatically. See this thread for more info. Also here is the initial gist that shows the basic syntax and the ideas behind the json recipe system.
July 3, 20178 yr Author I don't understand. It still doesn't work. I am talking about OreDictionary recipes. The following was no success with JSON: { "type": "forge:shapeless_ore", "group": "magenta_dye", "ingredients": [ { "item": "dyeMagenta" }, { "item": "dyeWhite" } ], "result": { "item": "minecraft:dye", "data": 6, "count": 2 } } I get JsonSyntaxException: Unknown recipe type: forge:shapeless_ore. I understand then that there is no such thing as type forge:shapeless_ore. But then, what is there to use OreDictionary recipes? Edited July 3, 20178 yr by ctbe
July 3, 20178 yr Author 1 hour ago, V0idWa1k3r said: It is forge:ore_shapeless, not forge:shapeless_ore Thank you. That solved it. The final recipe looks like so { "type": "forge:ore_shapeless", "group": "magenta_dye", "ingredients": [ { "type": "forge:ore_dict", "ore": "dyeWhite" }, { "type": "forge:ore_dict", "ore": "dyeMagenta" } ], "result": { "item": "minecraft:dye", "data": 6, "count": 2 } }
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.