Posted July 26, 20178 yr Hello, i have read that i must make more than one recipe, when i want wildcard metadate in json-recipes. But how can i made an JSON Recipe for multiple Recipes? Or are JSON-Recipes only for one receipe for one item. Must i use the Gameregistry for that reason or can i do that with JSON-Recipes? thx
July 26, 20178 yr What exactly do you want from the recipe? Are you trying to create a recipe that accepts any metadata value of one or more ingredients? Are you trying to create a recipe that outputs a different item depending on the ingredient items? You can use an array of ingredients anywhere a single ingredient is expected to create a compound ingredient that matches any of its child ingredients. Minecraft uses this for recipes like minecraft:crafting_table, which accepts any of the 6 valid metadata values of minecraft:planks. You can also use 32767 (the value of the OreDictionary.WILDCARD_VALUE constant) as the metadata value of an ingredient to match any metadata value of the specified Item. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
July 27, 20178 yr Author Ah i understand. I have think that i must made every recipes/item in a root-array but now i understand i must it make as an ingredient-array like so,as an crappy example: "type": "minecraft:crafting_shapeless", "ingredients": [ { [ "item": "minecraft:somewhat0", "data": 0 ], [ "item": "minecraft:somewhat1", "data": 0 ] }, { [ "item": "minecraft:somewhat2", "data": 0 ], [ "item": "minecraft:somewhat3", "data": 0 ] } first recipe somewhat0+somewhat1 or the other somewhat2+somewhat3 right?
July 27, 20178 yr Author ah okay i have looked in the 1.12.jar and have an example-recipe for testing, but that is difference the shapeless logic but i hope i can convert shaped to shapeless
July 27, 20178 yr Author I have it "ingredients": [ [ { "item": "minecraft:1", "data": 0 }, { "item": "minecraft:2", "data": 0 }, ], [ { "item": "minecraft:3", "data": 0 }, { "item": "minecraft:4", "data": 0 } ] ], thx great problem solved
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.