GameRegistry.addShapedRecipe(new ResourceLocation("tut","craft_sword"), cat, new ItemStack(ModItems.sword), new Object[] {
"aaa",
"xax",
"aba",
'a', new ItemStack(ModItems.complexyte),
'b', new ItemStack(ModItems.stick),
'x', new ItemStack(Items.EMERALD)
});
GameRegistry.addShapelessRecipe(new ResourceLocation("snowplusplus:snow_fence_plus_plus"),
new ResourceLocation("snowplusplus:snow_fence_plus_plus"),
new ItemStack(BlockRegister.snow_fence_plus_plus, 12),
CraftingHelper.getIngredient(Blocks.SNOW), CraftingHelper.getIngredient(Blocks.SNOW),
CraftingHelper.getIngredient(Blocks.SNOW), CraftingHelper.getIngredient(Blocks.SNOW),
CraftingHelper.getIngredient(Blocks.SNOW), CraftingHelper.getIngredient(Blocks.SNOW));
GameRegistry.addShapedRecipe(new ResourceLocation(Reference.MODID + ":" + "chainmail_boots"), new ResourceLocation(Reference.MODID + ":" + "chainmail_boots"),
new ItemStack(Items.CHAINMAIL_BOOTS),new Object[]{
" ",
"N N",
"ILI",
'N', Items.IRON_NUGGET,
'I', Items.IRON_INGOT,
'L', Items.LEATHER_BOOTS
});
В 1.10.2 это можно было сделать так: (Сейчас проверю работает ли это на 1.12.2)Вопрос в том, как в коде использовать словарь руд
GameRegistry.addRecipe(new ShapedOreRecipe(Items.BUCKET, "I I", " I ", 'I', "ingotCopper"));