From 188cee7b3b5713923337a9baca9e751d4ee74a25 Mon Sep 17 00:00:00 2001 From: gigabit101 Date: Sun, 6 Mar 2016 14:46:30 +0000 Subject: [PATCH] Added Cable recipes --- src/main/java/techreborn/init/ModRecipes.java | 43 ++++++++++++++++--- 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/src/main/java/techreborn/init/ModRecipes.java b/src/main/java/techreborn/init/ModRecipes.java index af99333cf..44cc010ac 100644 --- a/src/main/java/techreborn/init/ModRecipes.java +++ b/src/main/java/techreborn/init/ModRecipes.java @@ -49,8 +49,7 @@ import techreborn.items.ItemPlates; import techreborn.parts.ItemCables; import techreborn.utils.RecipeUtils; -public class - ModRecipes { +public class ModRecipes { public static ConfigTechReborn config; public static void init() { @@ -78,9 +77,43 @@ public class addIc2ReplacementReicpes(); addExtractorRecipes(); addCompressorRecipes(); + addWireRecipes(); } - private static void addCompressorRecipes() { + static void addWireRecipes() { + CraftingHelper.addShapedOreRecipe(ItemCables.getCableByName("copper", 6), + "XXX","CCC", "XXX", + 'C', "ingotCopper"); + CraftingHelper.addShapedOreRecipe(ItemCables.getCableByName("tin", 9), + "XXX","CCC", "XXX", + 'C', "ingotTin"); + CraftingHelper.addShapedOreRecipe(ItemCables.getCableByName("gold", 12), + "XXX","CCC", "XXX", + 'C', "ingotGold"); + CraftingHelper.addShapedOreRecipe(ItemCables.getCableByName("hv", 8), + "XXX","CCC", "XXX", + 'C', ItemIngots.getIngotByName("refinediron")); + CraftingHelper.addShapedOreRecipe(ItemCables.getCableByName("glassfiber", 6), + "GGG", + "SDS", + "GGG", + 'G', "blockGlass", + 'S', "ingotSilver", + 'D', Items.diamond); + CraftingHelper.addShapedOreRecipe(ItemCables.getCableByName("glassfiber", 4), + "GGG", + "RDR", + "GGG", + 'G', "blockGlass", + 'R', Items.redstone, + 'D', Items.diamond); + + CraftingHelper.addShapelessOreRecipe(ItemCables.getCableByName("insulatedcopper"), ItemParts.getPartByName("rubber"), ItemCables.getCableByName("copper")); + CraftingHelper.addShapelessOreRecipe(ItemCables.getCableByName("insulatedgold"), ItemParts.getPartByName("rubber"), ItemCables.getCableByName("gold")); + CraftingHelper.addShapelessOreRecipe(ItemCables.getCableByName("insulatedhv"), ItemParts.getPartByName("rubber"), ItemCables.getCableByName("hv")); + } + + private static void addCompressorRecipes() { RecipeHandler.addRecipe(new CompressorRecipe(new ItemStack(Items.diamond), new ItemStack(Items.coal), 400, 20)); } @@ -170,9 +203,7 @@ public class 'R', ItemIngots.getIngotByName("refinediron"), 'S', Items.redstone, 'W', ItemCables.getCableByName("insulatedcopper")); - - CraftingHelper.addShapelessOreRecipe(ItemCables.getCableByName("insulatedcopper"), ItemParts.getPartByName("rubber")); - + CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.wrench), "BAB", "BBB", "ABA", 'B', "ingotBronze");