Jump to content

Recommended Posts

Posted

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

Posted

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.

  • Like 1

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.

Posted

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?

Posted

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 :)

  • Like 1

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.