skylinerw / guides

Creative Commons Attribution 4.0 International
166 stars 29 forks source link

Replacing recipes not working #19

Open Nysse01 opened 6 years ago

Nysse01 commented 6 years ago

So i am trying to replace iron chestplate recipe but it only chooses the vanilla and i have to disable vanilla in game to be able to use my recipe.

skarmklipp

Is something wrong? That should work right. (the thing that is blurred out is my world name)

Placid-Storm commented 6 years ago

We need to see the actual contents of the json files. I'm more familiar with MineTweaker/CraftTweaker but just to check, did you disable the vanilla recipe and create a new recipe?

Placid-Storm commented 6 years ago

The following should be a vanilla iron chestplate recipe. Make sure all the commas are correct. I was going to use code brackets but it doesn't keep my line spacing.

{ "type": "crafting_shaped", "pattern": [ "# #", "###", "###" ], "key": { "#": { "item": "minecraft:iron_ingot" } }, "result": { "item": "minecraft:iron_chestplate" } }

SwordsmanJoe commented 5 years ago

I've also run into this problem, and as far as I can tell, you need some extra code for advancements. For example: I want to make magma blocks harder to make for a pack that allows you to smelt them into quartz ore. { "type": "minecraft:crafting_shaped", "pattern": [ "#N#", "#E#", "#D#" ], "key": { "#": { "item": "minecraft:magma_cream" }, "N": { "item": "minecraft:netherrack" }, "E": { "item": "minecraft:ender_pearl" }, "D": { "item": "minecraft:diorite" } }, "result": { "item": "minecraft:magma_block", "count": 2 } } That's the code I'm using, but the default recipe is still possible. Compare that to the VanillaTweaks on YouTuber Xisuma's page which work fine. For example, making 12 trapdoors at a time rather than only two.