Jump to content

1.12.2 how to add multiple recipes for 1 item?


madmagic

Recommended Posts

so i have a block and i made a shapeless recipe for it by combing a gold block with a nether star:

{
    "type": "minecraft:crafting_shapeless",
    "ingredients": [
        {
            "item": "minecraft:gold_block"
        },
        {
            "item": "minecraft:nether_star"
        }
    ],
    "result": {
        "item": "output",
        "count": 1
    }
}
}

but i want to make it so that the the block can be made by puting 9 of the ingots the block is made of in a crafting table. after some searching around i found this code:

"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
			]
			
		}

 but this doesnt work for me, it says a few times it got ] but expected something else. so what is the correct way of adding multiple recipes for one item?

Edited by madmagic
Link to comment
Share on other sites

5 minutes ago, madmagic said:

but you cant have duplicate files, how would i do that then?

 

Recipes don't have to have the same name as their output item, you can call your recipes whatever you want.

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.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...

Important Information

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