Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

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.

  • 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?

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

  • 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.

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...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.