TechReborn/src/main/java/techreborn/init/ModRecipes.java

1968 lines
97 KiB
Java
Raw Normal View History

package techreborn.init;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
2016-03-29 12:01:23 +02:00
import net.minecraft.block.Block;
2015-04-14 01:12:24 +02:00
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
2015-04-12 17:43:51 +02:00
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.ForgeModContainer;
import net.minecraftforge.fluids.Fluid;
2015-06-11 22:35:05 +02:00
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.UniversalBucket;
import net.minecraftforge.fml.common.Loader;
2015-05-15 05:19:52 +02:00
import net.minecraftforge.oredict.OreDictionary;
2016-04-23 22:11:30 +02:00
import reborncore.api.recipe.RecipeHandler;
2015-11-08 13:15:45 +01:00
import reborncore.common.util.CraftingHelper;
import reborncore.common.util.OreUtil;
import reborncore.common.util.StringUtils;
2015-11-08 13:15:45 +01:00
import techreborn.Core;
2016-03-07 00:15:28 +01:00
import techreborn.api.ScrapboxList;
2015-07-25 16:32:20 +02:00
import techreborn.api.TechRebornAPI;
import techreborn.api.generator.EFluidGenerator;
import techreborn.api.generator.GeneratorRecipeHelper;
2015-11-16 22:10:39 +01:00
import techreborn.api.reactor.FusionReactorRecipe;
import techreborn.api.reactor.FusionReactorRecipeHelper;
import techreborn.api.recipe.RecyclerRecipe;
import techreborn.api.recipe.ScrapboxRecipe;
import techreborn.api.recipe.machines.*;
import techreborn.blocks.*;
import techreborn.compat.CompatManager;
2015-04-12 23:45:13 +02:00
import techreborn.config.ConfigTechReborn;
import techreborn.init.recipes.CraftingTableRecipes;
import techreborn.init.recipes.IndustrialGrinderRecipes;
import techreborn.items.*;
2016-05-09 12:13:52 +02:00
import techreborn.parts.powerCables.ItemStandaloneCables;
2015-11-08 13:15:45 +01:00
import techreborn.utils.RecipeUtils;
import techreborn.utils.StackWIPHandler;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
2016-10-08 21:46:16 +02:00
import static techreborn.utils.OreDictUtils.getDictData;
import static techreborn.utils.OreDictUtils.getDictOreOrEmpty;
2016-10-08 21:46:16 +02:00
import static techreborn.utils.OreDictUtils.isDictPrefixed;
import static techreborn.utils.OreDictUtils.joinDictName;
public class ModRecipes {
2016-03-25 10:47:34 +01:00
public static ConfigTechReborn config;
public static ItemStack batteryStack = new ItemStack(ModItems.RE_BATTERY, 1, OreDictionary.WILDCARD_VALUE);
public static ItemStack crystalStack = new ItemStack(ModItems.ENERGY_CRYSTAL, 1, OreDictionary.WILDCARD_VALUE);
public static ItemStack lapcrystalStack = new ItemStack(ModItems.LAPOTRONIC_CRYSTAL, 1, OreDictionary.WILDCARD_VALUE);
2016-05-06 23:13:24 +02:00
public static ItemStack dyes = new ItemStack(Items.DYE, 1, OreDictionary.WILDCARD_VALUE);
2016-03-25 10:47:34 +01:00
2016-10-08 21:46:16 +02:00
public static void init() {
2016-12-12 16:53:04 +01:00
//Gonna rescan to make sure we have an uptodate list
OreUtil.scanForOres();
//Done again incase we loaded before QuantumStorage
CompatManager.isQuantumStorageLoaded = Loader.isModLoaded("quantumstorage");
CraftingTableRecipes.init();
IndustrialGrinderRecipes.init();
2016-03-25 10:47:34 +01:00
addGeneralShapedRecipes();
addMachineRecipes();
addSmeltingRecipes();
addUUrecipes();
addAlloySmelterRecipes();
addPlateCuttingMachineRecipes();
addIndustrialCentrifugeRecipes();
addChemicalReactorRecipes();
addIndustrialElectrolyzerRecipes();
addBlastFurnaceRecipes();
addImplosionCompressorRecipes();
2016-10-08 21:46:16 +02:00
addVacuumFreezerRecipes();
2016-03-25 10:47:34 +01:00
addReactorRecipes();
addIc2Recipes();
addGrinderRecipes();
2016-03-29 04:47:00 +02:00
// addHammerRecipes();
2016-03-25 10:47:34 +01:00
addIc2ReplacementReicpes();
addExtractorRecipes();
addCompressorRecipes();
if (!IC2Duplicates.deduplicate()) {
addWireRecipes();
}
2016-03-25 10:47:34 +01:00
addScrapBoxloot();
addFluidGeneratorRecipes();
2016-03-25 10:47:34 +01:00
}
2016-10-08 21:46:16 +02:00
static void addScrapBoxloot() {
2016-05-06 23:13:24 +02:00
ScrapboxList.addItemStackToList(new ItemStack(Items.DIAMOND));
ScrapboxList.addItemStackToList(new ItemStack(Items.STICK));
ScrapboxList.addItemStackToList(new ItemStack(Items.COAL));
ScrapboxList.addItemStackToList(new ItemStack(Items.APPLE));
ScrapboxList.addItemStackToList(new ItemStack(Items.BAKED_POTATO));
ScrapboxList.addItemStackToList(new ItemStack(Items.BLAZE_POWDER));
ScrapboxList.addItemStackToList(new ItemStack(Items.WHEAT));
ScrapboxList.addItemStackToList(new ItemStack(Items.CARROT));
ScrapboxList.addItemStackToList(new ItemStack(Items.BOAT));
ScrapboxList.addItemStackToList(new ItemStack(Items.ACACIA_BOAT));
ScrapboxList.addItemStackToList(new ItemStack(Items.BIRCH_BOAT));
ScrapboxList.addItemStackToList(new ItemStack(Items.DARK_OAK_BOAT));
ScrapboxList.addItemStackToList(new ItemStack(Items.JUNGLE_BOAT));
ScrapboxList.addItemStackToList(new ItemStack(Items.SPRUCE_BOAT));
ScrapboxList.addItemStackToList(new ItemStack(Items.BLAZE_ROD));
ScrapboxList.addItemStackToList(new ItemStack(Items.COMPASS));
ScrapboxList.addItemStackToList(new ItemStack(Items.MAP));
ScrapboxList.addItemStackToList(new ItemStack(Items.LEATHER_LEGGINGS));
ScrapboxList.addItemStackToList(new ItemStack(Items.BOW));
ScrapboxList.addItemStackToList(new ItemStack(Items.COOKED_CHICKEN));
ScrapboxList.addItemStackToList(new ItemStack(Items.CAKE));
ScrapboxList.addItemStackToList(new ItemStack(Items.ACACIA_DOOR));
ScrapboxList.addItemStackToList(new ItemStack(Items.DARK_OAK_DOOR));
ScrapboxList.addItemStackToList(new ItemStack(Items.BIRCH_DOOR));
ScrapboxList.addItemStackToList(new ItemStack(Items.JUNGLE_DOOR));
ScrapboxList.addItemStackToList(new ItemStack(Items.OAK_DOOR));
ScrapboxList.addItemStackToList(new ItemStack(Items.SPRUCE_DOOR));
ScrapboxList.addItemStackToList(new ItemStack(Items.WOODEN_AXE));
ScrapboxList.addItemStackToList(new ItemStack(Items.WOODEN_HOE));
ScrapboxList.addItemStackToList(new ItemStack(Items.WOODEN_PICKAXE));
ScrapboxList.addItemStackToList(new ItemStack(Items.WOODEN_SHOVEL));
ScrapboxList.addItemStackToList(new ItemStack(Items.WOODEN_SWORD));
ScrapboxList.addItemStackToList(new ItemStack(Items.BED));
ScrapboxList.addItemStackToList(new ItemStack(Items.SKULL, 1, 0));
ScrapboxList.addItemStackToList(new ItemStack(Items.SKULL, 1, 2));
ScrapboxList.addItemStackToList(new ItemStack(Items.SKULL, 1, 4));
for (int i = 0; i < StackWIPHandler.devHeads.size(); i++)
ScrapboxList.addItemStackToList(StackWIPHandler.devHeads.get(i));
2016-05-06 23:13:24 +02:00
ScrapboxList.addItemStackToList(new ItemStack(Items.DYE, 1, 3));
ScrapboxList.addItemStackToList(new ItemStack(Items.GLOWSTONE_DUST));
ScrapboxList.addItemStackToList(new ItemStack(Items.STRING));
ScrapboxList.addItemStackToList(new ItemStack(Items.MINECART));
ScrapboxList.addItemStackToList(new ItemStack(Items.CHEST_MINECART));
ScrapboxList.addItemStackToList(new ItemStack(Items.HOPPER_MINECART));
ScrapboxList.addItemStackToList(new ItemStack(Items.PRISMARINE_SHARD));
ScrapboxList.addItemStackToList(new ItemStack(Items.SHEARS));
ScrapboxList.addItemStackToList(new ItemStack(Items.EXPERIENCE_BOTTLE));
ScrapboxList.addItemStackToList(new ItemStack(Items.BONE));
ScrapboxList.addItemStackToList(new ItemStack(Items.BOWL));
ScrapboxList.addItemStackToList(new ItemStack(Items.BRICK));
ScrapboxList.addItemStackToList(new ItemStack(Items.FISHING_ROD));
ScrapboxList.addItemStackToList(new ItemStack(Items.BOOK));
ScrapboxList.addItemStackToList(new ItemStack(Items.PAPER));
ScrapboxList.addItemStackToList(new ItemStack(Items.SUGAR));
ScrapboxList.addItemStackToList(new ItemStack(Items.REEDS));
ScrapboxList.addItemStackToList(new ItemStack(Items.SPIDER_EYE));
ScrapboxList.addItemStackToList(new ItemStack(Items.SLIME_BALL));
ScrapboxList.addItemStackToList(new ItemStack(Items.ROTTEN_FLESH));
ScrapboxList.addItemStackToList(new ItemStack(Items.SIGN));
ScrapboxList.addItemStackToList(new ItemStack(Items.WRITABLE_BOOK));
ScrapboxList.addItemStackToList(new ItemStack(Items.COOKED_BEEF));
ScrapboxList.addItemStackToList(new ItemStack(Items.NAME_TAG));
ScrapboxList.addItemStackToList(new ItemStack(Items.SADDLE));
ScrapboxList.addItemStackToList(new ItemStack(Items.REDSTONE));
ScrapboxList.addItemStackToList(new ItemStack(Items.GUNPOWDER));
ScrapboxList.addItemStackToList(new ItemStack(Items.RABBIT_HIDE));
ScrapboxList.addItemStackToList(new ItemStack(Items.RABBIT_FOOT));
ScrapboxList.addItemStackToList(new ItemStack(Items.APPLE));
ScrapboxList.addItemStackToList(new ItemStack(Items.GOLDEN_APPLE));
ScrapboxList.addItemStackToList(new ItemStack(Items.GOLD_NUGGET));
2016-03-25 10:47:34 +01:00
ScrapboxList.addItemStackToList(ItemCells.getCellByName("empty"));
ScrapboxList.addItemStackToList(ItemCells.getCellByName("water"));
ScrapboxList.addItemStackToList(ItemParts.getPartByName("scrap"));
ScrapboxList.addItemStackToList(ItemParts.getPartByName("rubber"));
2016-05-06 23:13:24 +02:00
ScrapboxList.addItemStackToList(new ItemStack(Blocks.TRAPDOOR));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.STONE_BUTTON));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.WOODEN_BUTTON));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.ACACIA_FENCE));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.ACACIA_FENCE_GATE));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.BIRCH_FENCE));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.BIRCH_FENCE_GATE));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.DARK_OAK_FENCE));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.DARK_OAK_FENCE_GATE));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.JUNGLE_FENCE));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.JUNGLE_FENCE_GATE));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.NETHER_BRICK_FENCE));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.OAK_FENCE));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.OAK_FENCE_GATE));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.SPRUCE_FENCE));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.SPRUCE_FENCE_GATE));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.BRICK_BLOCK));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.CRAFTING_TABLE));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.PUMPKIN));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.NETHERRACK));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.GRASS));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.DIRT, 1, 0));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.DIRT, 1, 1));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.SAND, 1, 0));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.SAND, 1, 1));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.GLOWSTONE));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.GRAVEL));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.HARDENED_CLAY));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.GLASS));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.GLASS_PANE));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.CACTUS));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.TALLGRASS, 1, 0));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.TALLGRASS, 1, 1));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.DEADBUSH));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.CHEST));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.TNT));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.RAIL));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.DETECTOR_RAIL));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.GOLDEN_RAIL));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.ACTIVATOR_RAIL));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.YELLOW_FLOWER));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.RED_FLOWER, 1, 0));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.RED_FLOWER, 1, 1));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.RED_FLOWER, 1, 2));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.RED_FLOWER, 1, 3));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.RED_FLOWER, 1, 4));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.RED_FLOWER, 1, 5));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.RED_FLOWER, 1, 6));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.RED_FLOWER, 1, 7));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.RED_FLOWER, 1, 8));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.BROWN_MUSHROOM));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.RED_MUSHROOM));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.BROWN_MUSHROOM_BLOCK));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.RED_MUSHROOM_BLOCK));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.SAPLING, 1, 0));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.SAPLING, 1, 1));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.SAPLING, 1, 2));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.SAPLING, 1, 3));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.SAPLING, 1, 4));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.SAPLING, 1, 5));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.LEAVES, 1, 0));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.LEAVES, 1, 1));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.LEAVES, 1, 2));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.LEAVES, 1, 3));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.LEAVES2, 1, 0));
ScrapboxList.addItemStackToList(new ItemStack(Blocks.LEAVES2, 1, 1));
2016-03-25 10:47:34 +01:00
ScrapboxList.addItemStackToList(new ItemStack(ModBlocks.RUBBER_SAPLING));
2016-03-25 10:47:34 +01:00
2016-10-08 21:46:16 +02:00
for (String i : ItemDusts.types) {
if (!i.equals(ModItems.META_PLACEHOLDER)) {
2016-09-27 20:34:18 +02:00
ScrapboxList.addItemStackToList(ItemDusts.getDustByName(i));
}
}
2016-10-08 21:46:16 +02:00
for (String i : ItemNuggets.types) {
if (!i.equals(ModItems.META_PLACEHOLDER)) {
ScrapboxList.addItemStackToList(ItemNuggets.getNuggetByName(i));
}
}
2016-09-27 19:31:56 +02:00
2016-10-08 21:46:16 +02:00
for (String i : ItemGems.types) {
if (!i.equals(ModItems.META_PLACEHOLDER)) {
ScrapboxList.addItemStackToList(ItemGems.getGemByName(i));
}
}
2016-03-25 10:47:34 +01:00
2016-05-06 23:13:24 +02:00
registerDyable(Blocks.CARPET);
registerDyable(Blocks.STAINED_GLASS);
registerDyable(Blocks.STAINED_GLASS_PANE);
registerDyable(Blocks.STAINED_HARDENED_CLAY);
2016-03-25 10:47:34 +01:00
2016-10-08 21:46:16 +02:00
for (int i = 0; i < ScrapboxList.stacks.size(); i++) {
RecipeHandler.addRecipe(new ScrapboxRecipe(ScrapboxList.stacks.get(i)));
}
2016-03-25 10:47:34 +01:00
boolean showAllItems = false;
2016-10-08 21:46:16 +02:00
if (showAllItems) {
//This is bad, laggy and slow
2016-05-28 21:40:11 +02:00
List<Item> items = Lists
2016-10-08 21:46:16 +02:00
.newArrayList(Iterables.filter(Item.REGISTRY, item -> item.getRegistryName() != null));
2016-05-28 21:40:11 +02:00
Collections.sort(items,
2016-10-08 21:46:16 +02:00
(i1, i2) -> i1.getRegistryName().toString().compareTo(i2.getRegistryName().toString()));
2016-10-08 21:46:16 +02:00
for (Item item : items) {
List<ItemStack> stacks = new ArrayList<>();
2016-10-08 21:46:16 +02:00
if (item.getHasSubtypes()) {
for (int i = 0; i < item.getMaxDamage(); i++) {
stacks.add(new ItemStack(item, 1, i));
}
2016-10-08 21:46:16 +02:00
} else {
stacks.add(new ItemStack(item, 1, 0));
}
2016-10-08 21:46:16 +02:00
for (ItemStack stack : stacks) {
RecipeHandler.addRecipe(new RecyclerRecipe(stack));
}
}
2016-10-08 21:46:16 +02:00
} else {
for (int i = 0; i < ScrapboxList.stacks.size(); i++) {
RecipeHandler.addRecipe(new RecyclerRecipe(ScrapboxList.stacks.get(i)));
}
}
2016-03-07 00:15:28 +01:00
}
2016-03-25 10:47:34 +01:00
2016-10-08 21:46:16 +02:00
static void registerMetadataItem(ItemStack item) {
for (int i = 0; i < item.getItem().getMaxDamage(); i++) {
ScrapboxList.addItemStackToList(new ItemStack(item.getItem(), 1, i));
}
2016-03-06 15:46:30 +01:00
}
2016-10-08 21:46:16 +02:00
static void registerDyable(Block block) {
2016-03-25 10:47:34 +01:00
for (int i = 0; i < 16; i++)
ScrapboxList.stacks.add(new ItemStack(block, 1, i));
2016-03-06 15:46:30 +01:00
}
2016-10-08 21:46:16 +02:00
static void addWireRecipes() {
2016-03-29 12:01:23 +02:00
CraftingHelper.addShapedOreRecipe(ItemStandaloneCables.getCableByName("copper", 6), "CCC", 'C', "ingotCopper");
CraftingHelper.addShapedOreRecipe(ItemStandaloneCables.getCableByName("tin", 9), "CCC", 'C', "ingotTin");
CraftingHelper.addShapedOreRecipe(ItemStandaloneCables.getCableByName("gold", 12), "CCC", 'C', "ingotGold");
CraftingHelper
.addShapedOreRecipe(ItemStandaloneCables.getCableByName("hv", 12), "CCC", 'C', IC2Duplicates.REFINED_IRON.getStackBasedOnConfig());
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemStandaloneCables.getCableByName("glassfiber", 4), "GGG", "SDS", "GGG", 'G',
"blockGlass", 'S', "dustRedstone", 'D', "diamondTR");
2016-03-29 04:47:00 +02:00
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemStandaloneCables.getCableByName("glassfiber", 6), "GGG", "SDS", "GGG", 'G',
"blockGlass", 'S', "dustRedstone", 'D', "gemRuby");
2016-03-29 12:01:23 +02:00
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemStandaloneCables.getCableByName("glassfiber", 6), "GGG", "SDS", "GGG", 'G',
"blockGlass", 'S', "ingotSilver", 'D', "diamondTR");
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemStandaloneCables.getCableByName("glassfiber", 8), "GGG", "SDS", "GGG", 'G',
"blockGlass", 'S', "ingotElectrum", 'D', "diamondTR");
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapelessOreRecipe(IC2Duplicates.CABLE_ICOPPER.getStackBasedOnConfig(), "itemRubber",
2016-10-08 21:46:16 +02:00
ItemStandaloneCables.getCableByName("copper"));
CraftingHelper.addShapelessOreRecipe(IC2Duplicates.CABLE_IGOLD.getStackBasedOnConfig(), "itemRubber",
"itemRubber", ItemStandaloneCables.getCableByName("gold"));
CraftingHelper.addShapelessOreRecipe(IC2Duplicates.CABLE_IHV.getStackBasedOnConfig(), "itemRubber",
"itemRubber", ItemStandaloneCables.getCableByName("hv"));
2016-03-29 12:01:23 +02:00
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemStandaloneCables.getCableByName("insulatedcopper", 6), "RRR", "III", "RRR", 'R',
"itemRubber", 'I', "ingotCopper");
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemStandaloneCables.getCableByName("insulatedgold", 4), "RRR", "RIR", "RRR", 'R',
"itemRubber", 'I', "ingotGold");
CraftingHelper
.addShapedOreRecipe(IC2Duplicates.CABLE_IHV.getStackBasedOnConfig(), "RRR", "RIR", "RRR", 'R',
"itemRubber", 'I', "ingotRefinedIron");
2016-03-25 10:47:34 +01:00
}
2016-03-07 18:26:04 +01:00
2016-10-08 21:46:16 +02:00
private static void addCompressorRecipes() {
2016-12-10 09:15:39 +01:00
RecipeHandler.addRecipe(new CompressorRecipe(ItemIngots.getIngotByName("advanced_alloy"),
ItemPlates.getPlateByName("advanced_alloy"), 400, 20));
RecipeHandler.addRecipe(
2016-12-21 18:44:44 +01:00
new CompressorRecipe(IC2Duplicates.CARBON_MESH.getStackBasedOnConfig(), ItemPlates.getPlateByName("carbon"), 400,
2016-10-08 21:46:16 +02:00
2));
2016-12-22 01:41:33 +01:00
for (String ore : OreUtil.oreNames) {
if (OreUtil.doesOreExistAndValid("plate" + OreUtil.capitalizeFirstLetter(ore)) && OreUtil.doesOreExistAndValid("ingot" + OreUtil.capitalizeFirstLetter(ore))) {
2016-12-12 16:53:04 +01:00
RecipeHandler.addRecipe(
new CompressorRecipe(OreUtil.getStackFromName("ingot" + OreUtil.capitalizeFirstLetter(ore), 9), OreUtil.getStackFromName("plate" + OreUtil.capitalizeFirstLetter(ore), 1), 300,
4));
}
if (OreUtil.doesOreExistAndValid("plate" + OreUtil.capitalizeFirstLetter(ore)) && OreUtil.doesOreExistAndValid("gem" + OreUtil.capitalizeFirstLetter(ore))) {
RecipeHandler.addRecipe(
new CompressorRecipe(OreUtil.getStackFromName("gem" + OreUtil.capitalizeFirstLetter(ore), 9), OreUtil.getStackFromName("plate" + OreUtil.capitalizeFirstLetter(ore), 1), 300,
4));
}
2016-12-12 16:53:04 +01:00
2016-12-22 01:41:33 +01:00
if (OreUtil.hasPlate(ore) && OreUtil.hasBlock(ore)) {
2016-12-12 16:53:04 +01:00
RecipeHandler.addRecipe(
new CompressorRecipe(OreUtil.getStackFromName("block" + OreUtil.capitalizeFirstLetter(ore), 1), OreUtil.getStackFromName("plate" + OreUtil.capitalizeFirstLetter(ore), 1), 300,
4));
}
}
RecipeHandler.addRecipe(
new CompressorRecipe(OreUtil.getStackFromName("plankWood", 1), OreUtil.getStackFromName("plateWood", 1), 300,
4));
RecipeHandler.addRecipe(
new CompressorRecipe(OreUtil.getStackFromName("dustLazurite", 8), OreUtil.getStackFromName("plateLazurite", 1), 300,
4));
2016-03-06 14:33:35 +01:00
}
2016-10-08 21:46:16 +02:00
static void addExtractorRecipes() {
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new ExtractorRecipe(ItemParts.getPartByName("rubberSap"),
ItemParts.getPartByName("rubber", 3), 400, 2));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(
new ExtractorRecipe(new ItemStack(ModBlocks.RUBBER_LOG),
ItemParts.getPartByName("rubber"), 400, 2, false));
}
2016-03-23 19:45:58 +01:00
2016-10-08 21:46:16 +02:00
static void addIc2ReplacementReicpes() {
2016-03-30 07:45:15 +02:00
// TODO: Replace item pump with block
/*CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("pump"), "CEC", "CMC", "PTP", 'C',
2016-03-30 07:45:15 +02:00
ItemCells.getCellByName("empty"), 'T', new ItemStack(ModItems.treeTap), 'M', "machineBlockBasic", 'P',
new ItemStack(Blocks.iron_bars), 'E', "circuitBasic");
// TODO: Replace item teleporter with block
CraftingHelper
.addShapedOreRecipe(ItemParts.getPartByName("teleporter"), "CTC", "WMW", "CDC", 'C', "circuitAdvanced",
'T', new ItemStack(ModItems.frequencyTransmitter), 'M', "machineBlockAdvanced", 'W',
ItemStandaloneCables.getCableByName("glassfiber"), 'D', "gemDiamond", 'E', "circuitBasic");
*/
2016-03-25 10:47:34 +01:00
}
2016-03-24 01:39:26 +01:00
static void addGrinderRecipes() {
2016-03-25 10:47:34 +01:00
// Vanilla
2016-06-05 12:23:20 +02:00
int eutick = 2;
int ticktime = 300;
2016-10-08 21:46:16 +02:00
RecipeHandler.addRecipe(new GrinderRecipe(
new ItemStack(Items.BONE),
new ItemStack(Items.DYE, 6, 15),
170, 19));
RecipeHandler.addRecipe(new GrinderRecipe(
new ItemStack(Blocks.COBBLESTONE),
new ItemStack(Blocks.SAND),
230, 23));
RecipeHandler.addRecipe(new GrinderRecipe(
new ItemStack(Blocks.GRAVEL),
new ItemStack(Items.FLINT),
200, 20));
RecipeHandler.addRecipe(new GrinderRecipe(
new ItemStack(Blocks.NETHERRACK),
ItemDusts.getDustByName("netherrack"),
300, 27));
for (String oreDictionaryName : OreDictionary.getOreNames()) {
if (isDictPrefixed(oreDictionaryName, "ore", "gem", "ingot")) {
ItemStack oreStack = getDictOreOrEmpty(oreDictionaryName, 1);
2016-10-08 21:46:16 +02:00
String[] data = getDictData(oreDictionaryName);
//High-level ores shouldn't grind here
if (data[0].equals("ore") && (
data[1].equals("tungsten") ||
data[1].equals("titanium") ||
data[1].equals("aluminium") ||
data[1].equals("iridium") ||
data[1].equals("saltpeter")) ||
oreStack == ItemStack.EMPTY)
2016-10-08 21:46:16 +02:00
continue;
2016-10-08 21:46:16 +02:00
boolean ore = data[0].equals("ore");
Core.logHelper.debug("Ore: " + data[1]);
ItemStack dust = getDictOreOrEmpty(joinDictName("dust", data[1]), ore ? 2 : 1);
if (dust == ItemStack.EMPTY || dust.getItem() == null) {
2016-10-08 21:46:16 +02:00
continue;
}
dust = dust.copy();
2016-11-25 14:25:51 +01:00
if (ore) {
2016-11-19 13:50:08 +01:00
dust.setCount(2);
}
2016-10-08 21:46:16 +02:00
RecipeHandler.addRecipe(new GrinderRecipe(oreStack, dust, ore ? 270 : 200, ore ? 31 : 22));
}
}
2016-03-25 10:47:34 +01:00
}
2016-03-24 01:39:26 +01:00
static void addReactorRecipes() {
FusionReactorRecipeHelper.registerRecipe(
2016-10-08 21:46:16 +02:00
new FusionReactorRecipe(ItemCells.getCellByName("helium3"), ItemCells.getCellByName("deuterium"),
ItemCells.getCellByName("heliumplasma"), 40000000, 32768, 1024));
FusionReactorRecipeHelper.registerRecipe(
2016-10-08 21:46:16 +02:00
new FusionReactorRecipe(ItemCells.getCellByName("tritium"), ItemCells.getCellByName("deuterium"),
ItemCells.getCellByName("helium3"), 60000000, 32768, 2048));
FusionReactorRecipeHelper.registerRecipe(
2016-10-08 21:46:16 +02:00
new FusionReactorRecipe(ItemCells.getCellByName("wolframium"), ItemCells.getCellByName("Berylium"),
ItemDusts.getDustByName("platinum"), 80000000, -2048, 1024));
2016-05-25 17:57:50 +02:00
FusionReactorRecipeHelper.registerRecipe(
2016-10-08 21:46:16 +02:00
new FusionReactorRecipe(ItemCells.getCellByName("wolframium"), ItemCells.getCellByName("lithium"),
BlockOre.getOreByName("iridium"), 90000000, -2048, 1024));
2016-03-25 10:47:34 +01:00
}
static void addGeneralShapedRecipes() {
if (!IC2Duplicates.deduplicate()) {
2016-12-21 18:44:44 +01:00
CraftingHelper.addShapelessOreRecipe(ItemParts.getPartByName("carbonfiber"), ItemDusts.getDustByName("coal"),
ItemDusts.getDustByName("coal"), ItemDusts.getDustByName("coal"), ItemDusts.getDustByName("coal"));
2016-12-21 18:44:44 +01:00
CraftingHelper.addShapelessOreRecipe(ItemParts.getPartByName("carbonfiber"), ItemCells.getCellByName("carbon"),
ItemCells.getCellByName("carbon"), ItemCells.getCellByName("carbon"), ItemCells.getCellByName("carbon"),
ItemCells.getCellByName("carbon"), ItemCells.getCellByName("carbon"), ItemCells.getCellByName("carbon"),
ItemCells.getCellByName("carbon"), ItemCells.getCellByName("carbon"));
CraftingHelper
.addShapelessOreRecipe(ItemParts.getPartByName("carbonmesh"), ItemParts.getPartByName("carbonfiber"),
ItemParts.getPartByName("carbonfiber"));
}
2016-03-29 12:01:23 +02:00
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemParts.getPartByName("computerMonitor"), "ADA", "DGD", "ADA", 'D', dyes, 'A',
"ingotAluminum", 'G', Blocks.GLASS_PANE);
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.REINFORCED_GLASS, 7), "GAG", "GGG", "GAG", 'A',
2016-12-10 09:15:39 +01:00
ItemIngots.getIngotByName("advanced_alloy"), 'G', Blocks.GLASS);
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModBlocks.WIND_MILL, 2), "IXI", "XGX", "IXI", 'I', "ingotIron", 'G',
2016-12-18 22:36:29 +01:00
IC2Duplicates.GENERATOR.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModBlocks.WATER_MILL), "SWS", "WGW", "SWS", 'S', Items.STICK, 'W',
2016-12-18 22:36:29 +01:00
"plankWood", 'G', IC2Duplicates.GENERATOR.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
if (!IC2Duplicates.deduplicate()) {
CraftingHelper.addShapedOreRecipe(IC2Duplicates.HVT.getStackBasedOnConfig(), "XHX", "XMX", "XHX", 'M', IC2Duplicates.MVT.getStackBasedOnConfig(), 'H',
IC2Duplicates.CABLE_IHV.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(IC2Duplicates.MVT.getStackBasedOnConfig(), "XGX", "XMX", "XGX", 'M',
BlockMachineFrame.getFrameByName("machine", 1), 'G',
IC2Duplicates.CABLE_IGOLD.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(IC2Duplicates.LVT.getStackBasedOnConfig(), "PWP", "CCC", "PPP", 'P', "plankWood", 'C',
"ingotCopper", 'W', IC2Duplicates.CABLE_ICOPPER.getStackBasedOnConfig());
}
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.MACHINE_CASINGS, 4, 0), "RRR", "CAC", "RRR", 'R',
IC2Duplicates.REFINED_IRON.getStackBasedOnConfig(), 'C', "circuitBasic", 'A',
2016-10-08 21:46:16 +02:00
BlockMachineFrame.getFrameByName("machine", 1));
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.MACHINE_CASINGS, 4, 1), "RRR", "CAC", "RRR", 'R',
2016-10-08 21:46:16 +02:00
"ingotSteel", 'C', "circuitAdvanced", 'A',
BlockMachineFrame.getFrameByName("advancedMachine", 1));
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("dataOrb"), "DDD", "DID", "DDD", 'D',
2016-10-08 21:46:16 +02:00
"circuitData", 'I', "circuitElite");
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("dataControlCircuit", 4), "CDC", "DID", "CDC", 'I',
2016-10-08 21:46:16 +02:00
ItemPlates.getPlateByName("iridium"), 'D', "circuitData", 'C', "circuitAdvanced");
2016-03-25 10:47:34 +01:00
2016-05-28 21:40:11 +02:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModBlocks.THERMAL_GENERATOR), "III", "IRI", "CGC", 'I', "ingotInvar",
'R', ModBlocks.REINFORCED_GLASS, 'G', IC2Duplicates.GENERATOR.getStackBasedOnConfig(), 'C',
2016-10-08 21:46:16 +02:00
"circuitBasic");
2016-03-25 10:47:34 +01:00
if (!IC2Duplicates.deduplicate()) {
2016-12-18 22:36:29 +01:00
CraftingHelper.addShapedOreRecipe(IC2Duplicates.RECYCLER.getStackBasedOnConfig(), "XEX", "DCD", "GDG", 'D', Blocks.DIRT, 'C',
IC2Duplicates.COMPRESSOR.getStackBasedOnConfig(), 'G', Items.GLOWSTONE_DUST, 'E', "circuitBasic");
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(IC2Duplicates.BAT_BOX.getStackBasedOnConfig(), "WCW", "BBB", "WWW", 'W', "plankWood", 'B',
batteryStack, 'C', IC2Duplicates.CABLE_ICOPPER.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(IC2Duplicates.MFE.getStackBasedOnConfig(), "GEG", "EME", "GEG", 'M',
BlockMachineFrame.getFrameByName("machine", 1), 'E', crystalStack, 'G',
IC2Duplicates.CABLE_IGOLD.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(IC2Duplicates.MFSU.getStackBasedOnConfig(), "LAL", "LML", "LOL", 'A',
"circuitAdvanced", 'L', lapcrystalStack, 'M', IC2Duplicates.MFE.getStackBasedOnConfig(),
'O', BlockMachineFrame.getFrameByName("advancedMachine", 1));
}
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.INDUSTRIAL_ELECTROLYZER), "RER", "CEC", "RER", 'R',
IC2Duplicates.REFINED_IRON.getStackBasedOnConfig(), 'E', IC2Duplicates.EXTRACTOR.getStackBasedOnConfig(), 'C',
2016-10-08 21:46:16 +02:00
"circuitAdvanced");
2016-03-25 10:47:34 +01:00
if (!IC2Duplicates.deduplicate()) {
2016-12-18 22:36:29 +01:00
CraftingHelper
.addShapedOreRecipe(IC2Duplicates.COMPRESSOR.getStackBasedOnConfig(), "SXS", "SCS", "SMS", 'C', "circuitBasic", 'M',
BlockMachineFrame.getFrameByName("machine", 1), 'S', Blocks.STONE);
}
2016-03-25 10:47:34 +01:00
if (!IC2Duplicates.deduplicate()) {
2016-12-18 22:36:29 +01:00
CraftingHelper
.addShapedOreRecipe(IC2Duplicates.ELECTRICAL_FURNACE.getStackBasedOnConfig(), "XCX", "RFR", "XXX", 'C', "circuitBasic",
'F', IC2Duplicates.IRON_FURNACE.getStackBasedOnConfig(), 'R', Items.REDSTONE);
}
2016-03-25 10:47:34 +01:00
if (!IC2Duplicates.deduplicate()) {
2016-12-18 22:36:29 +01:00
CraftingHelper.addShapedOreRecipe(IC2Duplicates.IRON_FURNACE.getStackBasedOnConfig(), "III", "IXI", "III", 'I', "ingotIron");
2016-03-25 10:47:34 +01:00
2016-12-18 22:36:29 +01:00
CraftingHelper
.addShapedOreRecipe(IC2Duplicates.IRON_FURNACE.getStackBasedOnConfig(), "XIX", "IXI", "IFI", 'I', "ingotIron", 'F',
Blocks.FURNACE);
}
2016-03-25 10:47:34 +01:00
if (!IC2Duplicates.deduplicate()) {
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("electronicCircuit"), "WWW", "SRS", "WWW", 'R',
IC2Duplicates.REFINED_IRON.getStackBasedOnConfig(), 'S', Items.REDSTONE, 'W', IC2Duplicates.CABLE_ICOPPER.getStackBasedOnConfig());
}
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.RE_BATTERY), "XWX", "TRT", "TRT", 'T', "ingotTin", 'R',
Items.REDSTONE, 'W', IC2Duplicates.CABLE_ICOPPER.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.WRENCH), "BAB", "BBB", "ABA", 'B', "ingotBronze");
2016-03-25 10:47:34 +01:00
if (!IC2Duplicates.deduplicate()) {
2016-12-18 22:36:29 +01:00
CraftingHelper
.addShapedOreRecipe(IC2Duplicates.EXTRACTOR.getStackBasedOnConfig(), "TMT", "TCT", "XXX", 'T', ModItems.TREE_TAP, 'M',
2016-12-18 22:36:29 +01:00
BlockMachineFrame.getFrameByName("machine", 1), 'C',
"circuitBasic");
}
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModBlocks.INDUSTRIAL_CENTRIFUGE), "RCR", "AEA", "RCR", 'R', IC2Duplicates.REFINED_IRON.getStackBasedOnConfig(),
2016-12-18 22:36:29 +01:00
'E', IC2Duplicates.EXTRACTOR.getStackBasedOnConfig(), 'A', "machineBlockAdvanced", 'C', "circuitBasic");
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("advancedCircuit"), "RGR", "LCL", "RGR", 'R',
2016-10-08 21:46:16 +02:00
Items.REDSTONE, 'G', Items.GLOWSTONE_DUST, 'L', "dyeBlue", 'C', "circuitBasic");
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModItems.ENERGY_CRYSTAL), "RRR", "RDR", "RRR", 'R', Items.REDSTONE,
2016-10-08 21:46:16 +02:00
'D', Items.DIAMOND);
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModItems.LAPOTRONIC_CRYSTAL), "LCL", "LEL", "LCL", 'L', "dyeBlue", 'E',
2016-10-08 21:46:16 +02:00
"energyCrystal", 'C', "circuitBasic");
2016-03-25 10:47:34 +01:00
2016-12-18 22:36:29 +01:00
CraftingHelper.addShapelessOreRecipe(IC2Duplicates.GENERATOR.getStackBasedOnConfig(), batteryStack,
2016-10-08 21:46:16 +02:00
BlockMachineFrame.getFrameByName("machine", 1), Blocks.FURNACE);
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(BlockMachineFrame.getFrameByName("machine", 1), "AAA", "AXA", "AAA", 'A',
IC2Duplicates.REFINED_IRON.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(BlockMachineFrame.getFrameByName("advancedMachine", 1), "XCX", "AMA", "XCX", 'A',
2016-12-10 09:15:39 +01:00
ItemIngots.getIngotByName("advanced_alloy"), 'C', ItemPlates.getPlateByName("carbon"), 'M',
2016-10-08 21:46:16 +02:00
BlockMachineFrame.getFrameByName("machine", 1));
2016-03-25 10:47:34 +01:00
2016-07-16 17:17:44 +02:00
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("dataStorageCircuit", 8), "EEE", "ECE", "EEE", 'E',
2016-10-08 21:46:16 +02:00
new ItemStack(Items.EMERALD), 'C', "circuitBasic");
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModItems.PARTS, 4, 8), "DSD", "S S", "DSD", 'D', "dustDiamond", 'S',
2016-10-08 21:46:16 +02:00
"ingotSteel");
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModItems.PARTS, 1, 15), "AAA", "AMA", "AAA", 'A', "ingotAluminium",
'M', new ItemStack(ModItems.PARTS, 1, 13));
2016-03-25 10:47:34 +01:00
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemParts.getPartByName("diamondSawBlade"), "DSD", "S S", "DSD", 'S', "plateSteel",
'D', "dustDiamond");
2016-03-25 10:47:34 +01:00
2016-05-28 21:40:11 +02:00
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("tungstenGrindingHead", 2), "TST", "SBS", "TST", 'T',
2016-10-08 21:46:16 +02:00
"plateTungsten", 'S', "plateSteel", 'B', "blockSteel");
2016-03-25 10:47:34 +01:00
/* TODO: Make destructopack seperate item
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("destructoPack"), "CIC", "IBI", "CIC", 'C',
"circuitAdvanced", 'I', "ingotAluminum", 'B',
2016-03-29 09:30:05 +02:00
new ItemStack(Items.lava_bucket));
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("destructoPack"), "CIC", "IBI", "CIC", 'C',
"circuitAdvanced", 'I', "ingotRefinedIron", 'B',
2016-03-25 10:47:34 +01:00
new ItemStack(Items.lava_bucket));
*/
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModItems.CLOAKING_DEVICE), "CIC", "IOI", "CIC", 'C', "ingotChrome",
'I', "plateIridium", 'O', new ItemStack(ModItems.LAPOTRONIC_ORB));
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.TREE_TAP), " S ", "PPP", "P ", 'S', "stickWood", 'P',
2016-10-08 21:46:16 +02:00
"plankWood");
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModItems.ROCK_CUTTER), "DT ", "DT ", "DCB", 'D', "dustDiamond", 'T',
2016-10-08 21:46:16 +02:00
"ingotTitanium", 'C', "circuitBasic", 'B', batteryStack);
2016-03-25 10:47:34 +01:00
2016-10-08 21:46:16 +02:00
for (String part : ItemParts.types) {
if (part.endsWith("Gear")) {
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName(part), " O ", "OIO", " O ", 'I',
2016-10-08 21:46:16 +02:00
new ItemStack(Items.IRON_INGOT), 'O',
"ingot" + StringUtils.toFirstCapital(part.replace("Gear", "")));
2016-03-25 10:47:34 +01:00
}
}
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("nichromeHeatingCoil"), " N ", "NCN", " N ", 'N',
2016-10-08 21:46:16 +02:00
"ingotNickel", 'C', "ingotChrome");
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("kanthalHeatingCoil"), "III", "CAA", "AAA", 'I',
2016-10-08 21:46:16 +02:00
"ingotSteel", 'C', "ingotChrome", 'A', "ingotAluminum");
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("heliumCoolantSimple"), " T ", "TCT", " T ", 'T',
2016-12-13 00:57:04 +01:00
"ingotTin", 'C', ItemCells.getCellByName("helium", 1));
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("HeliumCoolantTriple"), "TTT", "CCC", "TTT", 'T',
2016-10-08 21:46:16 +02:00
"ingotTin", 'C', ItemParts.getPartByName("heliumCoolantSimple"));
2016-03-25 10:47:34 +01:00
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemParts.getPartByName("HeliumCoolantSix"), "THT", "TCT", "THT", 'T', "ingotTin",
'C', "ingotCopper", 'H', ItemParts.getPartByName("HeliumCoolantTriple"));
2016-03-25 10:47:34 +01:00
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemParts.getPartByName("NaKCoolantTriple"), "TTT", "CCC", "TTT", 'T', "ingotTin",
'C', ItemParts.getPartByName("NaKCoolantSimple"));
2016-03-25 10:47:34 +01:00
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemParts.getPartByName("NaKCoolantSix"), "THT", "TCT", "THT", 'T', "ingotTin", 'C',
"ingotCopper", 'H', ItemParts.getPartByName("NaKCoolantTriple"));
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.ADJUSTABLE_SU), "LLL", "LCL", "LLL", 'L',
new ItemStack(ModItems.LAPOTRONIC_ORB), 'C', new ItemStack(ModItems.ENERGY_CRYSTAL));
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.INTERDIMENSIONAL_SU), "PAP", "ACA", "PAP", 'P',
2016-10-08 21:46:16 +02:00
ItemPlates.getPlateByName("iridium"), 'C', new ItemStack(Blocks.ENDER_CHEST), 'A',
new ItemStack(ModBlocks.ADJUSTABLE_SU));
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.FUSION_CONTROL_COMPUTER), "CCC", "PTP", "CCC", 'P',
new ItemStack(ModItems.ENERGY_CRYSTAL), 'T', new ItemStack(ModBlocks.FUSION_COIL), 'C',
2016-10-08 21:46:16 +02:00
"circuitMaster");
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.LIGHTNING_ROD), "CAC", "ACA", "CAC", 'A',
new ItemStack(ModBlocks.MACHINE_CASINGS, 1, 2), 'S', ItemParts.getPartByName("superConductor"), 'C',
2016-10-08 21:46:16 +02:00
"circuitMaster");
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.FUSION_COIL), "CSC", "NAN", "CRC", 'A',
new ItemStack(ModBlocks.MACHINE_CASINGS, 1, 2), 'N', ItemParts.getPartByName("nichromeHeatingCoil"), 'C',
2016-10-08 21:46:16 +02:00
"circuitMaster", 'S', ItemParts.getPartByName("superConductor"), 'R',
ItemParts.getPartByName("iridiumNeutronReflector"));
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("iridiumNeutronReflector"), "PPP", "PIP", "PPP", 'P',
2016-10-08 21:46:16 +02:00
ItemParts.getPartByName("thickNeutronReflector"), 'I', "ingotIridium");
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("thickNeutronReflector"), " P ", "PCP", " P ", 'P',
2016-10-08 21:46:16 +02:00
ItemParts.getPartByName("neutronReflector"), 'C', ItemCells.getCellByName("Berylium"));
2016-03-25 10:47:34 +01:00
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemParts.getPartByName("neutronReflector"), "TCT", "CPC", "TCT", 'T', "dustTin",
'C', "dustCoal", 'P', "plateCopper");
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.SCRAP_BOX), "SSS", "SSS", "SSS", 'S',
2016-10-08 21:46:16 +02:00
ItemParts.getPartByName("scrap"));
2016-03-25 10:47:34 +01:00
if (!IC2Duplicates.deduplicate()) {
CraftingHelper.addShapedOreRecipe(ItemUpgrades.getUpgradeByName("Overclock"), "TTT", "WCW", 'T',
ItemParts.getPartByName("CoolantSimple"), 'W', IC2Duplicates.CABLE_ICOPPER.getStackBasedOnConfig(),
'C', "circuitBasic");
2016-03-29 11:17:48 +02:00
CraftingHelper.addShapedOreRecipe(ItemUpgrades.getUpgradeByName("Overclock", 2), " T ", "WCW", 'T',
ItemParts.getPartByName("heliumCoolantSimple"), 'W',
IC2Duplicates.CABLE_ICOPPER.getStackBasedOnConfig(), 'C',
"circuitBasic");
CraftingHelper.addShapedOreRecipe(ItemUpgrades.getUpgradeByName("Overclock", 2), " T ", "WCW", 'T',
ItemParts.getPartByName("NaKCoolantSimple"), 'W',
IC2Duplicates.CABLE_ICOPPER.getStackBasedOnConfig(), 'C',
"circuitBasic");
}
2016-03-29 11:17:48 +02:00
CraftingHelper.addShapedOreRecipe(ItemUpgrades.getUpgradeByName("transformer"), "GGG", "WTW", "GCG", 'G',
"blockGlass", 'W', IC2Duplicates.CABLE_IGOLD.getStackBasedOnConfig(), 'C',
"circuitBasic", 'T', IC2Duplicates.MVT.getStackBasedOnConfig());
2016-03-29 11:17:48 +02:00
CraftingHelper.addShapedOreRecipe(ItemUpgrades.getUpgradeByName("energy_storage"), "PPP", "WBW", "PCP", 'P',
"plankWood", 'W', IC2Duplicates.CABLE_ICOPPER.getStackBasedOnConfig(), 'C',
"circuitBasic", 'B', ModItems.RE_BATTERY);
2016-03-29 11:17:48 +02:00
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemParts.getPartByName("CoolantSimple"), " T ", "TWT", " T ", 'T', "ingotTin", 'W',
"containerWater");
2016-03-29 11:17:48 +02:00
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemParts.getPartByName("CoolantTriple"), "TTT", "CCC", "TTT", 'T', "ingotTin", 'C',
ItemParts.getPartByName("CoolantSimple"));
2016-03-29 11:17:48 +02:00
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemParts.getPartByName("CoolantSix"), "TCT", "TPT", "TCT", 'T', "ingotTin", 'C',
ItemParts.getPartByName("CoolantTriple"), 'P', ItemPlates.getPlateByName("copper"));
2016-03-29 11:17:48 +02:00
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemParts.getPartByName("NaKCoolantSimple"), "TST", "PCP", "TST", 'T', "ingotTin",
'C', ItemParts.getPartByName("CoolantSimple"), 'S', ItemCells.getCellByName("sodium"), 'P',
ItemCells.getCellByName("potassium"));
2016-03-29 11:17:48 +02:00
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemParts.getPartByName("NaKCoolantSimple"), "TPT", "SCS", "TPT", 'T', "ingotTin",
'C', ItemParts.getPartByName("CoolantSimple"), 'S', ItemCells.getCellByName("sodium"), 'P',
ItemCells.getCellByName("potassium"));
2016-03-29 11:17:48 +02:00
2016-09-19 21:58:34 +02:00
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemParts.getPartByName("dataControlCircuit"), "ADA", "DID", "ADA", 'I', "ingotIridium",
'A', ItemParts.getPartByName("advancedCircuit"), 'D', ItemParts.getPartByName("dataStorageCircuit"));
2016-09-19 21:58:34 +02:00
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemParts.getPartByName("dataOrb"), "DDD", "DSD", "DDD",
'D', ItemParts.getPartByName("dataStorageCircuit"), 'S', ItemParts.getPartByName("dataStorageCircuit"));
2016-09-19 21:58:34 +02:00
2016-12-12 16:29:25 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModItems.ELECTRIC_TREE_TAP), "TB", " ",
'T', new ItemStack(ModItems.TREE_TAP), 'B', new ItemStack(ModItems.RE_BATTERY));
2016-12-12 16:29:25 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModItems.NANOSABER), "DC ", "DC ", "GLG",
'L', new ItemStack(ModItems.LAPOTRONIC_CRYSTAL), 'C', ItemPlates.getPlateByName("carbon"), 'D', "plateDiamond",
2016-12-12 16:29:25 +01:00
'G', ItemDustsSmall.getSmallDustByName("glowstone"));
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("diamondGrindingHead", 2), "TST", "SBS", "TST", 'T',
"plateDiamond", 'S', "plateSteel", 'B', "blockDiamond");
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("coolantSimple", 2), " T ", "TWT", " T ", 'T',
"ingotTin", 'W', new ItemStack(Items.WATER_BUCKET));
Core.logHelper.info("Shapped Recipes Added");
2016-03-25 10:47:34 +01:00
}
2016-10-08 21:46:16 +02:00
static void addMachineRecipes() {
if (!CompatManager.isQuantumStorageLoaded) {
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModBlocks.QUANTUM_TANK), "EPE", "PCP", "EPE", 'P', "ingotPlatinum",
'E', "circuitAdvanced", 'C', ModBlocks.QUANTUM_CHEST);
}
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModBlocks.DIGITAL_CHEST), "PPP", "PDP", "PCP", 'P', "plateAluminum",
2016-10-08 21:46:16 +02:00
'D', ItemParts.getPartByName("dataOrb"), 'C', ItemParts.getPartByName("computerMonitor"));
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModBlocks.DIGITAL_CHEST), "PPP", "PDP", "PCP", 'P', "plateSteel", 'D',
2016-10-08 21:46:16 +02:00
ItemParts.getPartByName("dataOrb"), 'C', ItemParts.getPartByName("computerMonitor"));
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.ALLOY_SMELTER), "XCX", "FMF", "XXX", 'C',
2016-12-18 22:36:29 +01:00
"circuitBasic", 'F', IC2Duplicates.ELECTRICAL_FURNACE.getStackBasedOnConfig(), 'M',
2016-10-08 21:46:16 +02:00
BlockMachineFrame.getFrameByName("machine", 1));
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModBlocks.LSU_STORAGE_BLOCK), "LLL", "LCL", "LLL", 'L', "blockLapis", 'C',
2016-10-08 21:46:16 +02:00
"circuitBasic");
2016-03-25 10:47:34 +01:00
TechRebornAPI
2016-11-25 14:25:51 +01:00
.addRollingOreMachinceRecipe(ItemParts.getPartByName("cupronickelHeatingCoil", 3), "NCN", "C C", "NCN",
'N', "ingotNickel", 'C', "ingotCopper");
2016-12-10 09:15:39 +01:00
RecipeHandler.addRecipe(new VacuumFreezerRecipe(ItemIngots.getIngotByName("hot_tungstensteel"),
2016-10-08 21:46:16 +02:00
ItemIngots.getIngotByName("tungstensteel"), 440, 128));
RecipeHandler.addRecipe(new VacuumFreezerRecipe(ItemCells.getCellByName("heliumplasma"),
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("helium"), 440, 128));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new VacuumFreezerRecipe(ItemCells.getCellByName("water"),
ItemCells.getCellByName("cell"), 60, 128));
2016-03-25 10:47:34 +01:00
}
2016-10-08 21:46:16 +02:00
static void addVacuumFreezerRecipes() {
RecipeHandler.addRecipe(new VacuumFreezerRecipe(
new ItemStack(Blocks.ICE, 2),
new ItemStack(Blocks.PACKED_ICE),
60, 100
));
RecipeHandler.addRecipe(new VacuumFreezerRecipe(
2016-12-10 09:15:39 +01:00
ItemIngots.getIngotByName("hot_tungstensteel"),
2016-10-08 21:46:16 +02:00
ItemIngots.getIngotByName("tungstensteel"),
440, 120));
RecipeHandler.addRecipe(new VacuumFreezerRecipe(
ItemCells.getCellByName("heliumplasma"),
ItemCells.getCellByName("helium"),
440, 128));
RecipeHandler.addRecipe(
new VacuumFreezerRecipe(
ItemCells.getCellByName("water"),
ItemCells.getCellByName("cell"),
60, 87));
}
static void addSmeltingRecipes() {
CraftingHelper.addSmelting(ItemDusts.getDustByName("iron", 1), new ItemStack(Items.IRON_INGOT), 1F);
CraftingHelper.addSmelting(ItemDusts.getDustByName("gold", 1), new ItemStack(Items.GOLD_INGOT), 1F);
CraftingHelper.addSmelting(ItemParts.getPartByName("rubberSap"), ItemParts.getPartByName("rubber"), 1F);
if (!IC2Duplicates.deduplicate()) {
CraftingHelper.addSmelting(new ItemStack(Items.IRON_INGOT), ItemIngots.getIngotByName("refined_iron"), 1F);
}
CraftingHelper.addSmelting(BlockOre2.getOreByName("copper"), ItemIngots.getIngotByName("copper"), 1F);
CraftingHelper.addSmelting(BlockOre2.getOreByName("tin"), ItemIngots.getIngotByName("tin"), 1F);
CraftingHelper.addSmelting(BlockOre.getOreByName("Silver"), ItemIngots.getIngotByName("silver"), 1F);
CraftingHelper.addSmelting(BlockOre.getOreByName("Lead"), ItemIngots.getIngotByName("lead"), 1F);
2016-05-28 21:40:11 +02:00
CraftingHelper.addSmelting(BlockOre.getOreByName("Sheldonite"), ItemIngots.getIngotByName("platinum"), 1F);
CraftingHelper
.addSmelting(IC2Duplicates.MIXED_METAL.getStackBasedOnConfig(), ItemIngots.getIngotByName("advancedAlloy"), 1F);
2016-05-25 17:53:27 +02:00
CraftingHelper.addSmelting(ItemDusts.getDustByName("nickel", 1), ItemIngots.getIngotByName("nickel"), 1F);
2016-05-28 21:40:11 +02:00
CraftingHelper.addSmelting(ItemDusts.getDustByName("platinum", 1), ItemIngots.getIngotByName("platinum"), 1F);
CraftingHelper.addSmelting(ItemDusts.getDustByName("zinc", 1), ItemIngots.getIngotByName("zinc"), 1F);
2016-03-25 10:47:34 +01:00
Core.logHelper.info("Smelting Recipes Added");
}
2016-10-08 21:46:16 +02:00
static void addAlloySmelterRecipes() {
2016-03-25 10:47:34 +01:00
// Bronze
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3), ItemIngots.getIngotByName("tin", 1),
ItemIngots.getIngotByName("bronze", 4), 200, 16));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3), ItemDusts.getDustByName("tin", 1),
ItemIngots.getIngotByName("bronze", 4), 200, 16));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), ItemIngots.getIngotByName("tin", 1),
ItemIngots.getIngotByName("bronze", 4), 200, 16));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), ItemDusts.getDustByName("tin", 1),
ItemIngots.getIngotByName("bronze", 4), 200, 16));
2016-03-25 10:47:34 +01:00
// Electrum
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(new ItemStack(Items.GOLD_INGOT, 1), ItemIngots.getIngotByName("silver", 1),
ItemIngots.getIngotByName("electrum", 2), 200, 16));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(new ItemStack(Items.GOLD_INGOT, 1), ItemDusts.getDustByName("silver", 1),
ItemIngots.getIngotByName("electrum", 2), 200, 16));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(ItemDusts.getDustByName("gold", 1), ItemIngots.getIngotByName("silver", 1),
ItemIngots.getIngotByName("electrum", 2), 200, 16));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(ItemDusts.getDustByName("gold", 1), ItemDusts.getDustByName("silver", 1),
ItemIngots.getIngotByName("electrum", 2), 200, 16));
2016-03-25 10:47:34 +01:00
// Invar
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(new ItemStack(Items.IRON_INGOT, 2), ItemIngots.getIngotByName("nickel", 1),
ItemIngots.getIngotByName("invar", 3), 200, 16));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(new ItemStack(Items.IRON_INGOT, 2), ItemDusts.getDustByName("nickel", 1),
ItemIngots.getIngotByName("invar", 3), 200, 16));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(ItemDusts.getDustByName("iron", 2), ItemIngots.getIngotByName("nickel", 1),
ItemIngots.getIngotByName("invar", 3), 200, 16));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(ItemDusts.getDustByName("iron", 2), ItemDusts.getDustByName("nickel", 1),
ItemIngots.getIngotByName("invar", 3), 200, 16));
2016-03-25 10:47:34 +01:00
// Brass
2016-10-08 21:46:16 +02:00
if (OreUtil.doesOreExistAndValid("ingotBrass")) {
2016-03-25 10:47:34 +01:00
ItemStack brassStack = OreDictionary.getOres("ingotBrass").get(0);
2016-11-19 13:50:08 +01:00
brassStack.setCount(4);
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3), ItemIngots.getIngotByName("zinc", 1),
brassStack, 200, 16));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3), ItemDusts.getDustByName("zinc", 1),
brassStack, 200, 16));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), ItemIngots.getIngotByName("zinc", 1),
brassStack, 200, 16));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), ItemDusts.getDustByName("zinc", 1),
brassStack, 200, 16));
2016-03-25 10:47:34 +01:00
}
// Red Alloy
2016-10-08 21:46:16 +02:00
if (OreUtil.doesOreExistAndValid("ingotRedAlloy")) {
2016-03-25 10:47:34 +01:00
ItemStack redAlloyStack = OreDictionary.getOres("ingotRedAlloy").get(0);
2016-11-19 13:50:08 +01:00
redAlloyStack.setCount(1);
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(new ItemStack(Items.REDSTONE, 4), ItemIngots.getIngotByName("copper", 1),
redAlloyStack, 200, 16));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(new ItemStack(Items.REDSTONE, 4), new ItemStack(Items.IRON_INGOT, 1),
redAlloyStack, 200, 16));
2016-03-25 10:47:34 +01:00
}
// Blue Alloy
2016-10-08 21:46:16 +02:00
if (OreUtil.doesOreExistAndValid("ingotBlueAlloy")) {
2016-03-25 10:47:34 +01:00
ItemStack blueAlloyStack = OreDictionary.getOres("ingotBlueAlloy").get(0);
2016-11-19 13:50:08 +01:00
blueAlloyStack.setCount(1);
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("teslatite", 4),
2016-10-08 21:46:16 +02:00
ItemIngots.getIngotByName("silver", 1), blueAlloyStack, 200, 16));
2016-03-25 10:47:34 +01:00
}
// Blue Alloy
2016-10-08 21:46:16 +02:00
if (OreUtil.doesOreExistAndValid("ingotPurpleAlloy") && OreUtil.doesOreExistAndValid("dustInfusedTeslatite")) {
2016-03-25 10:47:34 +01:00
ItemStack purpleAlloyStack = OreDictionary.getOres("ingotPurpleAlloy").get(0);
2016-11-19 13:50:08 +01:00
purpleAlloyStack.setCount(1);
2016-03-25 10:47:34 +01:00
ItemStack infusedTeslatiteStack = OreDictionary.getOres("ingotPurpleAlloy").get(0);
2016-11-19 13:50:08 +01:00
infusedTeslatiteStack.setCount(8);
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("redAlloy", 1),
2016-10-08 21:46:16 +02:00
ItemIngots.getIngotByName("blueAlloy", 1), purpleAlloyStack, 200, 16));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(new ItemStack(Items.GOLD_INGOT, 1), infusedTeslatiteStack, purpleAlloyStack,
200, 16));
2016-03-25 10:47:34 +01:00
}
// Aluminum Brass
2016-10-08 21:46:16 +02:00
if (OreUtil.doesOreExistAndValid("ingotAluminumBrass")) {
2016-03-25 10:47:34 +01:00
ItemStack aluminumBrassStack = OreDictionary.getOres("ingotAluminumBrass").get(0);
2016-11-19 13:50:08 +01:00
aluminumBrassStack.setCount(4);
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3),
2016-10-08 21:46:16 +02:00
ItemIngots.getIngotByName("aluminum", 1), aluminumBrassStack, 200, 16));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3),
2016-10-08 21:46:16 +02:00
ItemDusts.getDustByName("aluminum", 1), aluminumBrassStack, 200, 16));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3),
2016-10-08 21:46:16 +02:00
ItemIngots.getIngotByName("aluminum", 1), aluminumBrassStack, 200, 16));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), ItemDusts.getDustByName("aluminum", 1),
aluminumBrassStack, 200, 16));
2016-03-25 10:47:34 +01:00
}
// Manyullyn
if (OreUtil.doesOreExistAndValid("ingotManyullyn") && OreUtil.doesOreExistAndValid("ingotCobalt") && OreUtil
2016-10-08 21:46:16 +02:00
.doesOreExistAndValid("ingotArdite")) {
2016-03-25 10:47:34 +01:00
ItemStack manyullynStack = OreDictionary.getOres("ingotManyullyn").get(0);
2016-11-19 13:50:08 +01:00
manyullynStack.setCount(1);
2016-03-25 10:47:34 +01:00
ItemStack cobaltStack = OreDictionary.getOres("ingotCobalt").get(0);
2016-11-19 13:50:08 +01:00
cobaltStack.setCount(1);
2016-03-25 10:47:34 +01:00
ItemStack arditeStack = OreDictionary.getOres("ingotArdite").get(0);
2016-11-19 13:50:08 +01:00
arditeStack.setCount(1);
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new AlloySmelterRecipe(cobaltStack, arditeStack, manyullynStack, 200, 16));
}
// Conductive Iron
2016-10-08 21:46:16 +02:00
if (OreUtil.doesOreExistAndValid("ingotConductiveIron")) {
2016-03-25 10:47:34 +01:00
ItemStack conductiveIronStack = OreDictionary.getOres("ingotConductiveIron").get(0);
2016-11-19 13:50:08 +01:00
conductiveIronStack.setCount(1);
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(new ItemStack(Items.REDSTONE, 1), new ItemStack(Items.IRON_INGOT, 1),
conductiveIronStack, 200, 16));
2016-03-25 10:47:34 +01:00
}
// Redstone Alloy
2016-10-08 21:46:16 +02:00
if (OreUtil.doesOreExistAndValid("ingotRedstoneAlloy") && OreUtil.doesOreExistAndValid("itemSilicon")) {
2016-03-25 10:47:34 +01:00
ItemStack redstoneAlloyStack = OreDictionary.getOres("ingotRedstoneAlloy").get(0);
2016-11-19 13:50:08 +01:00
redstoneAlloyStack.setCount(1);
2016-03-25 10:47:34 +01:00
ItemStack siliconStack = OreDictionary.getOres("itemSilicon").get(0);
2016-11-19 13:50:08 +01:00
siliconStack.setCount(1);
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(new ItemStack(Items.REDSTONE, 1), siliconStack, redstoneAlloyStack, 200,
16));
2016-03-25 10:47:34 +01:00
}
// Pulsating Iron
2016-10-08 21:46:16 +02:00
if (OreUtil.doesOreExistAndValid("ingotPhasedIron")) {
2016-03-25 10:47:34 +01:00
ItemStack pulsatingIronStack = OreDictionary.getOres("ingotPhasedIron").get(0);
2016-11-19 13:50:08 +01:00
pulsatingIronStack.setCount(1);
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(new ItemStack(Items.IRON_INGOT, 1), new ItemStack(Items.ENDER_PEARL, 1),
pulsatingIronStack, 200, 16));
RecipeHandler.addRecipe(
2016-12-11 20:34:56 +01:00
new AlloySmelterRecipe(new ItemStack(Items.IRON_INGOT, 1), ItemDusts.getDustByName("ender_pearl", 1),
2016-10-08 21:46:16 +02:00
pulsatingIronStack, 200, 16));
2016-03-25 10:47:34 +01:00
}
// Vibrant Alloy
2016-10-08 21:46:16 +02:00
if (OreUtil.doesOreExistAndValid("ingotEnergeticAlloy") && OreUtil.doesOreExistAndValid("ingotPhasedGold")) {
2016-03-25 10:47:34 +01:00
ItemStack energeticAlloyStack = OreDictionary.getOres("ingotEnergeticAlloy").get(0);
2016-11-19 13:50:08 +01:00
energeticAlloyStack.setCount(1);
2016-03-25 10:47:34 +01:00
ItemStack vibrantAlloyStack = OreDictionary.getOres("ingotPhasedGold").get(0);
2016-11-19 13:50:08 +01:00
vibrantAlloyStack.setCount(1);
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(energeticAlloyStack, new ItemStack(Items.ENDER_PEARL, 1), vibrantAlloyStack,
200, 16));
RecipeHandler.addRecipe(
2016-12-11 20:34:56 +01:00
new AlloySmelterRecipe(energeticAlloyStack, ItemDusts.getDustByName("ender_pearl", 1),
2016-10-08 21:46:16 +02:00
vibrantAlloyStack, 200, 16));
2016-03-25 10:47:34 +01:00
}
// Soularium
2016-10-08 21:46:16 +02:00
if (OreUtil.doesOreExistAndValid("ingotSoularium")) {
2016-03-25 10:47:34 +01:00
ItemStack soulariumStack = OreDictionary.getOres("ingotSoularium").get(0);
2016-11-19 13:50:08 +01:00
soulariumStack.setCount(1);
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new AlloySmelterRecipe(new ItemStack(Blocks.SOUL_SAND, 1), new ItemStack(Items.GOLD_INGOT, 1),
soulariumStack, 200, 16));
2016-03-25 10:47:34 +01:00
}
}
2016-10-08 21:46:16 +02:00
static void addPlateCuttingMachineRecipes() {
2016-03-25 10:47:34 +01:00
2016-10-08 21:46:16 +02:00
for (String ore : OreUtil.oreNames) {
if (OreUtil.hasBlock(ore) && OreUtil.hasPlate(ore)) {
2016-05-28 21:40:11 +02:00
RecipeHandler.addRecipe(new PlateCuttingMachineRecipe(
2016-10-08 21:46:16 +02:00
OreUtil.getStackFromName("block" + StringUtils.toFirstCapital(ore)),
OreUtil.getStackFromName("plate" + StringUtils.toFirstCapital(ore), 9), 200, 16));
2016-03-25 10:47:34 +01:00
}
}
// Obsidian
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new PlateCuttingMachineRecipe(new ItemStack(Blocks.OBSIDIAN), ItemPlates.getPlateByName("obsidian", 9),
100, 4));
2016-03-25 10:47:34 +01:00
}
2016-10-08 21:46:16 +02:00
static void addBlastFurnaceRecipes() {
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new BlastFurnaceRecipe(ItemDusts.getDustByName("titanium"), null, ItemIngots.getIngotByName("titanium"),
null, 3600, 120, 1500));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemDustsSmall.getSmallDustByName("titanium", 4), null,
2016-10-08 21:46:16 +02:00
ItemIngots.getIngotByName("titanium"), null, 3600, 120, 1500));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new BlastFurnaceRecipe(ItemDusts.getDustByName("aluminum"), null, ItemIngots.getIngotByName("aluminum"),
null, 2200, 120, 1700));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemDustsSmall.getSmallDustByName("aluminum", 4), null,
2016-10-08 21:46:16 +02:00
ItemIngots.getIngotByName("aluminum"), null, 2200, 120, 1700));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new BlastFurnaceRecipe(ItemDusts.getDustByName("tungsten"), null, ItemIngots.getIngotByName("tungsten"),
null, 18000, 120, 2500));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemDustsSmall.getSmallDustByName("tungsten", 4), null,
2016-10-08 21:46:16 +02:00
ItemIngots.getIngotByName("tungsten"), null, 18000, 120, 2500));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new BlastFurnaceRecipe(ItemDusts.getDustByName("chrome"), null, ItemIngots.getIngotByName("chrome"),
null, 4420, 120, 1700));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemDustsSmall.getSmallDustByName("chrome", 4), null,
2016-10-08 21:46:16 +02:00
ItemIngots.getIngotByName("chrome"), null, 4420, 120, 1700));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new BlastFurnaceRecipe(ItemDusts.getDustByName("steel"), null, ItemIngots.getIngotByName("steel"), null,
2800, 120, 1000));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemDustsSmall.getSmallDustByName("steel", 4), null,
2016-10-08 21:46:16 +02:00
ItemIngots.getIngotByName("steel"), null, 2800, 120, 1000));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new BlastFurnaceRecipe(ItemDusts.getDustByName("galena", 2), null, ItemIngots.getIngotByName("silver"),
ItemIngots.getIngotByName("lead"), 80, 120, 1500));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new BlastFurnaceRecipe(new ItemStack(Items.IRON_INGOT), ItemDusts.getDustByName("coal", 2),
2016-12-11 20:34:56 +01:00
ItemIngots.getIngotByName("steel"), ItemDusts.getDustByName("dark_ashes", 2), 500, 120, 1000));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new BlastFurnaceRecipe(ItemIngots.getIngotByName("tungsten"), ItemIngots.getIngotByName("steel"),
2016-12-11 20:34:56 +01:00
ItemIngots.getIngotByName("hot_tungstensteel"), ItemDusts.getDustByName("dark_ashes", 4), 500,
2016-10-08 21:46:16 +02:00
500, 3000));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new BlastFurnaceRecipe(new ItemStack(Blocks.IRON_ORE), ItemDusts.getDustByName("calcite"),
2016-12-11 20:34:56 +01:00
new ItemStack(Items.IRON_INGOT, 3), ItemDusts.getDustByName("dark_ashes"), 140, 120, 1000));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new BlastFurnaceRecipe(BlockOre.getOreByName("Pyrite"), ItemDusts.getDustByName("calcite"),
2016-12-11 20:34:56 +01:00
new ItemStack(Items.IRON_INGOT, 2), ItemDusts.getDustByName("dark_ashes"), 140, 120, 1000));
2016-03-25 10:47:34 +01:00
}
2016-10-08 21:46:16 +02:00
static void addUUrecipes() {
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesWood)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Blocks.LOG, 8), " U ", " ", " ", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesStone)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Blocks.STONE, 16), " ", " U ", " ", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesSnowBlock)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Blocks.SNOW, 16), "U U", " ", " ", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesGrass)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Blocks.GRASS, 16), " ", "U ", "U ", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesObsidian)
2016-05-06 23:13:24 +02:00
CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.OBSIDIAN, 12), "U U", "U U", " ", 'U',
ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesGlass)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Blocks.GLASS, 32), " U ", "U U", " U ", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesCocoa)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Items.DYE, 32, 3), "UU ", " U", "UU ", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesGlowstoneBlock)
2016-05-06 23:13:24 +02:00
CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.GLOWSTONE, 8), " U ", "U U", "UUU", 'U',
ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesCactus)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Blocks.CACTUS, 48), " U ", "UUU", "U U", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesSugarCane)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Items.REEDS, 48), "U U", "U U", "U U", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesVine)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Blocks.VINE, 24), "U ", "U ", "U ", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesSnowBall)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Items.SNOWBALL, 16), " ", " ", "UUU", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(Items.CLAY_BALL, 48), "UU ", "U ", "UU ", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipeslilypad)
2016-05-06 23:13:24 +02:00
CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.WATERLILY, 64), "U U", " U ", " U ", 'U',
ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesGunpowder)
2016-05-06 23:13:24 +02:00
CraftingHelper.addShapedOreRecipe(new ItemStack(Items.GUNPOWDER, 15), "UUU", "U ", "UUU", 'U',
ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesBone)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Items.BONE, 32), "U ", "UU ", "U ", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesFeather)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Items.FEATHER, 32), " U ", " U ", "U U", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesInk)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Items.DYE, 48), " UU", " UU", " U ", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesEnderPearl)
2016-05-06 23:13:24 +02:00
CraftingHelper.addShapedOreRecipe(new ItemStack(Items.ENDER_PEARL, 1), "UUU", "U U", " U ", 'U',
ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesCoal)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Items.COAL, 5), " U", "U ", " U", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesIronOre)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Blocks.IRON_ORE, 2), "U U", " U ", "U U", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesGoldOre)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Blocks.GOLD_ORE, 2), " U ", "UUU", " U ", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesRedStone)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Items.REDSTONE, 24), " ", " U ", "UUU", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesLapis)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Items.DYE, 9, 4), " U ", " U ", " UU", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesEmeraldOre)
2016-05-06 23:13:24 +02:00
CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.EMERALD_ORE, 1), "UU ", "U U", " UU", 'U',
ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesEmerald)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Items.EMERALD, 2), "UUU", "UUU", " U ", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesDiamond)
CraftingHelper
.addShapedOreRecipe(new ItemStack(Items.DIAMOND, 1), "UUU", "UUU", "UUU", 'U', ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesTinDust)
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.DUSTS, 10, 77), " ", "U U", " U", 'U',
ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesCopperDust)
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.DUSTS, 10, 21), " U", "U U", " ", 'U',
ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesLeadDust)
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.DUSTS, 14, 42), "UUU", "UUU", "U ", 'U',
ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesPlatinumDust)
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.DUSTS, 1, 58), " U", "UUU", "UUU", 'U',
ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesTungstenDust)
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.DUSTS, 1, 79), "U ", "UUU", "UUU", 'U',
ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesTitaniumDust)
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.DUSTS, 2, 78), "UUU", " U ", " U ", 'U',
ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.UUrecipesAluminumDust)
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.DUSTS, 16, 2), " U ", " U ", "UUU", 'U',
ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
if (ConfigTechReborn.HideUuRecipes)
hideUUrecipes();
}
2016-10-08 21:46:16 +02:00
static void hideUUrecipes() {
2016-03-25 10:47:34 +01:00
// TODO
}
2016-10-08 21:46:16 +02:00
static void addIndustrialCentrifugeRecipes() {
2016-03-25 10:47:34 +01:00
// Mycelium Byproducts
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Blocks.MYCELIUM, 8), null, new ItemStack(Blocks.BROWN_MUSHROOM, 2),
new ItemStack(Blocks.RED_MUSHROOM, 2), new ItemStack(Items.CLAY_BALL, 1),
new ItemStack(Blocks.SAND, 4), 1640, 5));
2016-03-25 10:47:34 +01:00
// Blaze Powder Byproducts
RecipeHandler.addRecipe(
2016-12-11 20:34:56 +01:00
new CentrifugeRecipe(new ItemStack(Items.BLAZE_POWDER), null, ItemDusts.getDustByName("dark_ashes", 1),
2016-10-08 21:46:16 +02:00
ItemDusts.getDustByName("sulfur", 1), null, null, 1240, 5));
2016-03-25 10:47:34 +01:00
// Magma Cream Products
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Items.MAGMA_CREAM, 1), null, new ItemStack(Items.BLAZE_POWDER, 1),
new ItemStack(Items.SLIME_BALL, 1), null, null, 2500, 5));
2016-03-25 10:47:34 +01:00
// Type Byproducts
2016-03-25 10:47:34 +01:00
// RecipeHandler.addRecipe(new
// CentrifugeRecipe(ItemDusts.getDustByName("platinum", 1), null,
// ItemDustsTiny.getTinyDustByName("Iridium", 1),
// ItemDustsSmall.getSmallDustByName("Nickel", 1), null, null, 3000,
// 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(ItemDusts.getDustByName("electrum", 2), null, ItemDusts.getDustByName("silver", 1),
ItemDusts.getDustByName("gold", 1), null, null, 2400, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(ItemDusts.getDustByName("invar", 3), null, ItemDusts.getDustByName("iron", 2),
ItemDusts.getDustByName("nickel", 1), null, null, 1340, 5));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("marble", 8), null,
2016-10-08 21:46:16 +02:00
ItemDusts.getDustByName("magnesium", 1), ItemDusts.getDustByName("calcite", 7), null, null, 1280, 5));
2016-05-28 21:40:11 +02:00
// Deprecated
// RecipeHandler.addRecipe(
// new CentrifugeRecipe(ItemDusts.getDustByName("redrock", 4), null, ItemDusts.getDustByName("calcite", 2),
// ItemDusts.getDustByName("flint", 1), ItemDusts.getDustByName("clay", 1), null, 640, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(ItemDusts.getDustByName("basalt", 16), null, ItemDusts.getDustByName("peridot", 1),
ItemDusts.getDustByName("calcite", 3), ItemDusts.getDustByName("magnesium", 8),
2016-12-11 20:34:56 +01:00
ItemDusts.getDustByName("dark_ashes", 4), 2680, 5));
RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("yellow_garnet", 16), null,
2016-10-08 21:46:16 +02:00
ItemDusts.getDustByName("andradite", 5), ItemDusts.getDustByName("grossular", 8),
ItemDusts.getDustByName("uvarovite", 3), null, 2940, 5));
2016-12-11 20:34:56 +01:00
RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("red_garnet", 16), null,
2016-10-08 21:46:16 +02:00
ItemDusts.getDustByName("pyrope", 3), ItemDusts.getDustByName("almandine", 5),
ItemDusts.getDustByName("spessartine", 8), null, 2940, 5));
RecipeHandler.addRecipe(
2016-12-11 20:34:56 +01:00
new CentrifugeRecipe(ItemDusts.getDustByName("dark_ashes", 2), null, ItemDusts.getDustByName("ashes", 2),
2016-10-08 21:46:16 +02:00
null, null, null, 240, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(ItemDusts.getDustByName("brass", 4), null, ItemDusts.getDustByName("zinc", 1),
ItemDusts.getDustByName("copper", 3), null, null, 2000, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(ItemDusts.getDustByName("bronze", 4), null, ItemDusts.getDustByName("tin", 1),
ItemDusts.getDustByName("copper", 3), null, null, 2420, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(ItemDusts.getDustByName("netherrack", 16), null, new ItemStack(Items.REDSTONE, 1),
ItemDusts.getDustByName("sulfur", 4), ItemDusts.getDustByName("basalt", 1),
new ItemStack(Items.GOLD_NUGGET, 1), 2400, 5));
2016-12-11 20:34:56 +01:00
RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("ender_eye", 1), null,
ItemDusts.getDustByName("ender_pearl", 1), new ItemStack(Items.BLAZE_POWDER, 1), null, null, 1280, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Items.GLOWSTONE_DUST, 16), RecipeUtils.getEmptyCell(1),
2016-12-13 00:57:04 +01:00
ItemCells.getCellByName("helium", 1), ItemDusts.getDustByName("gold", 8),
2016-10-08 21:46:16 +02:00
new ItemStack(Items.REDSTONE), null, 25000, 20));
2016-03-25 10:47:34 +01:00
}
2016-10-08 21:46:16 +02:00
static void addImplosionCompressorRecipes() {
2016-03-25 10:47:34 +01:00
}
2016-10-08 21:46:16 +02:00
static void addChemicalReactorRecipes() {
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new ChemicalReactorRecipe(ItemCells.getCellByName("calcium", 1), ItemCells.getCellByName("carbon", 1),
ItemCells.getCellByName("calciumCarbonate", 2), 240, 30));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new ChemicalReactorRecipe(new ItemStack(Items.GOLD_NUGGET, 8), new ItemStack(Items.MELON, 1),
new ItemStack(Items.SPECKLED_MELON, 1), 40, 30));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new ChemicalReactorRecipe(ItemCells.getCellByName("nitrogen", 1), ItemCells.getCellByName("carbon", 1),
ItemCells.getCellByName("nitrocarbon", 2), 1500, 30));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new ChemicalReactorRecipe(ItemCells.getCellByName("carbon", 1), ItemCells.getCellByName("hydrogen", 4),
ItemCells.getCellByName("methane", 5), 3500, 30));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new ChemicalReactorRecipe(ItemCells.getCellByName("sulfur", 1), ItemCells.getCellByName("sodium", 1),
ItemCells.getCellByName("sodiumSulfide", 2), 100, 30));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new ChemicalReactorRecipe(new ItemStack(Items.BLAZE_POWDER, 1), new ItemStack(Items.ENDER_PEARL, 1),
new ItemStack(Items.ENDER_EYE, 1), 40, 30));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new ChemicalReactorRecipe(new ItemStack(Items.GOLD_NUGGET, 8), new ItemStack(Items.CARROT, 1),
new ItemStack(Items.GOLDEN_CARROT, 1), 40, 30));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new ChemicalReactorRecipe(ItemCells.getCellByName("glyceryl", 1), ItemCells.getCellByName("diesel", 4),
ItemCells.getCellByName("nitroDiesel", 5), 1000, 30));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new ChemicalReactorRecipe(new ItemStack(Items.GOLD_INGOT, 8), new ItemStack(Items.APPLE, 1),
new ItemStack(Items.GOLDEN_APPLE, 1), 40, 30));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new ChemicalReactorRecipe(new ItemStack(Blocks.GOLD_BLOCK, 8), new ItemStack(Items.APPLE, 1),
new ItemStack(Items.GOLDEN_APPLE, 1, 1), 40, 30));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new ChemicalReactorRecipe(new ItemStack(Items.BLAZE_POWDER, 1), new ItemStack(Items.SLIME_BALL, 1),
new ItemStack(Items.MAGMA_CREAM, 1), 40, 30));
2016-03-25 10:47:34 +01:00
}
2016-10-08 21:46:16 +02:00
static void addIndustrialElectrolyzerRecipes() {
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemCells.getCellByName("nitrocarbon", 2), null,
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("nitrogen"), ItemCells.getCellByName("carbon"), null, null, 80, 60));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("pyrite", 3), null,
2016-10-08 21:46:16 +02:00
ItemDusts.getDustByName("iron"), ItemDusts.getDustByName("sulfur", 2), null, null, 120, 128));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("sphalerite", 2), null,
2016-10-08 21:46:16 +02:00
ItemDusts.getDustByName("zinc"), ItemDusts.getDustByName("sulfur"), null, null, 150, 100));
2016-03-25 10:47:34 +01:00
}
2016-10-08 21:46:16 +02:00
static void addIc2Recipes() {
CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.MANUAL), IC2Duplicates.REFINED_IRON.getStackBasedOnConfig(),
2016-10-08 21:46:16 +02:00
Items.BOOK);
2016-03-25 10:47:34 +01:00
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(ItemParts.getPartByName("machineParts", 16), "CSC", "SCS", "CSC", 'S', "ingotSteel",
'C', "circuitBasic");
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("energyFlowCircuit", 4), "ATA", "LIL", "ATA", 'T',
2016-10-08 21:46:16 +02:00
"ingotTungsten", 'I', "plateIridium", 'A', "circuitAdvanced", 'L',
"lapotronCrystal");
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("superconductor", 4), "CCC", "TIT", "EEE", 'E',
2016-10-08 21:46:16 +02:00
"circuitMaster", 'C', ItemParts.getPartByName("heliumCoolantSimple"), 'T',
"ingotTungsten", 'I', "plateIridium");
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.LAPOTRONIC_ORB), "LLL", "LPL", "LLL", 'L',
2016-10-08 21:46:16 +02:00
"lapotronCrystal", 'P', "plateIridium");
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.INDUSTRIAL_SAWMILL), "PAP", "SSS", "ACA", 'P',
IC2Duplicates.REFINED_IRON.getStackBasedOnConfig(), 'A', "circuitAdvanced",
2016-10-08 21:46:16 +02:00
'S', ItemParts.getPartByName("diamondSawBlade"), 'C',
"machineBlockAdvanced");
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.CHARGE_O_MAT), "ETE", "COC", "EAD", 'E',
"circuitMaster", 'T', ModItems.ENERGY_CRYSTAL, 'C', Blocks.CHEST, 'O',
ModItems.LAPOTRONIC_ORB, 'A', "machineBlockAdvanced");
2016-05-28 21:40:11 +02:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.MATTER_FABRICATOR), "ETE", "AOA", "ETE", 'E',
"circuitMaster", 'T', IC2Duplicates.EXTRACTOR.getStackBasedOnConfig(), 'A',
BlockMachineFrame.getFrameByName("highlyAdvancedMachine", 1), 'O', ModItems.LAPOTRONIC_ORB);
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModBlocks.HEAT_GENERATOR), "III", "IHI", "CGC", 'I', "plateIron", 'H',
2016-12-18 22:36:29 +01:00
new ItemStack(Blocks.IRON_BARS), 'C', "circuitBasic", 'G', IC2Duplicates.GENERATOR.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModBlocks.GAS_TURBINE), "IAI", "WGW", "IAI", 'I', "ingotInvar", 'A',
2016-10-08 21:46:16 +02:00
"circuitAdvanced", 'W',
getOre("ic2Windmill"), 'G',
getOre("glassReinforced"));
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModBlocks.GAS_TURBINE), "IAI", "WGW", "IAI", 'I', "ingotAluminum", 'A',
2016-10-08 21:46:16 +02:00
"circuitAdvanced", 'W',
getOre("ic2Windmill"), 'G',
getOre("glassReinforced"));
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModBlocks.SEMIFLUID_GENERATOR), "III", "IHI", "CGC", 'I', "plateIron",
'H', ModBlocks.REINFORCED_GLASS, 'C', "circuitBasic", 'G',
2016-12-18 22:36:29 +01:00
IC2Duplicates.GENERATOR.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.SEMIFLUID_GENERATOR), "AAA", "AHA", "CGC", 'A',
"plateAluminum", 'H', ModBlocks.REINFORCED_GLASS, 'C', "circuitBasic", 'G',
2016-12-18 22:36:29 +01:00
IC2Duplicates.GENERATOR.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModBlocks.DIESEL_GENERATOR), "III", "I I", "CGC", 'I', IC2Duplicates.REFINED_IRON.getStackBasedOnConfig(),
2016-12-18 22:36:29 +01:00
'C', "circuitBasic", 'G', IC2Duplicates.GENERATOR.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModBlocks.DIESEL_GENERATOR), "AAA", "A A", "CGC", 'A', "ingotAluminum",
2016-12-18 22:36:29 +01:00
'C', "circuitBasic", 'G', IC2Duplicates.GENERATOR.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
// CraftingHelper.addShapedOreRecipe(new
2016-12-05 10:40:55 +01:00
// ItemStack(ModBlocks.magicalAbsorber),
2016-03-25 10:47:34 +01:00
// "CSC", "IBI", "CAC",
// 'C', "circuitMaster",
// 'S', "craftingSuperconductor",
// 'B', Blocks.beacon,
2016-12-05 10:40:55 +01:00
// 'A', ModBlocks.magicEnergeyConverter,
// 'I', "plateIridium");
2016-03-25 10:47:34 +01:00
//
// CraftingHelper.addShapedOreRecipe(new
2016-12-05 10:40:55 +01:00
// ItemStack(ModBlocks.magicEnergeyConverter),
2016-03-25 10:47:34 +01:00
// "CTC", "PBP", "CLC",
// 'C', "circuitAdvanced",
// 'P', "platePlatinum",
// 'B', Blocks.beacon,
// 'L', "lapotronCrystal",
2016-03-25 10:47:34 +01:00
// 'T', TechRebornAPI.recipeCompact.getItem("teleporter"));
2016-12-05 11:48:21 +01:00
// CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.dragonEggEnergySiphoner), "CTC", "ISI", "CBC", 'I',
// "plateIridium", 'C', "circuitBasic",
// 'B', ModItems.lithiumBattery, 'S', ModBlocks.Supercondensator, 'T', ModBlocks.extractor);
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModBlocks.INDUSTRIAL_CENTRIFUGE), "SCS", "BEB", "SCS", 'S', "plateSteel", 'C',
2016-10-08 21:46:16 +02:00
"circuitAdvanced", 'B', "machineBlockAdvanced", 'E',
2016-12-18 22:36:29 +01:00
IC2Duplicates.EXTRACTOR.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.INDUSTRIAL_BLAST_FURNACE), "CHC", "HBH", "FHF", 'H',
2016-11-25 14:25:51 +01:00
ItemParts.getPartByName("cupronickelHeatingCoil"), 'C', "circuitAdvanced", 'B',
BlockMachineFrame.getFrameByName("advancedMachine", 1), 'F', IC2Duplicates.ELECTRICAL_FURNACE.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.INDUSTRIAL_GRINDER), "ECP", "GGG", "CBC", 'E',
ModBlocks.INDUSTRIAL_ELECTROLYZER, 'P', IC2Duplicates.EXTRACTOR.getStackBasedOnConfig(), 'C',
2016-10-08 21:46:16 +02:00
"circuitAdvanced", 'B', "machineBlockAdvanced",
2016-12-18 22:36:29 +01:00
'G', IC2Duplicates.GRINDER.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.IMPLOSION_COMPRESSOR), "ABA", "CPC", "ABA", 'A',
2016-10-08 21:46:16 +02:00
ItemIngots.getIngotByName("advancedAlloy"), 'C', "circuitAdvanced", 'B',
2016-12-18 22:36:29 +01:00
BlockMachineFrame.getFrameByName("advancedMachine", 1), 'P', IC2Duplicates.COMPRESSOR.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModBlocks.VACUUM_FREEZER), "SPS", "CGC", "SPS", 'S', "plateSteel", 'C',
"circuitAdvanced", 'G', ModBlocks.REINFORCED_GLASS, 'P',
2016-12-18 22:36:29 +01:00
IC2Duplicates.EXTRACTOR.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.DISTILLATION_TOWER), "CMC", "PBP", "EME", 'E',
ModBlocks.INDUSTRIAL_ELECTROLYZER, 'M', "circuitMaster", 'B',
"machineBlockAdvanced", 'C', ModBlocks.INDUSTRIAL_CENTRIFUGE, 'P',
2016-12-18 22:36:29 +01:00
IC2Duplicates.EXTRACTOR.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.IRON_ALLOY_FURNACE), "III", "F F", "III", 'I',
ItemIngots.getIngotByName("refined_iron"), 'F', new ItemStack(ModBlocks.IRON_FURNACE));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.IRON_ALLOY_FURNACE), "III", "F F", "III", 'I',
IC2Duplicates.REFINED_IRON.getStackBasedOnConfig(), 'F', IC2Duplicates.IRON_FURNACE.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModBlocks.CHEMICAL_REACTOR), "IMI", "CPC", "IEI", 'I', "ingotInvar",
2016-12-18 22:36:29 +01:00
'C', "circuitAdvanced", 'M', IC2Duplicates.EXTRACTOR.getStackBasedOnConfig(), 'P',
IC2Duplicates.COMPRESSOR.getStackBasedOnConfig(), 'E', IC2Duplicates.EXTRACTOR.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModBlocks.ROLLING_MACHINE), "PCP", "MBM", "PCP", 'P', Blocks.PISTON,
2016-12-18 22:36:29 +01:00
'C', "circuitAdvanced", 'M', IC2Duplicates.COMPRESSOR.getStackBasedOnConfig(), 'B',
2016-10-08 21:46:16 +02:00
BlockMachineFrame.getFrameByName("machine", 1));
2016-03-25 10:47:34 +01:00
// CraftingHelper.addShapedOreRecipe(new
2016-12-05 10:40:55 +01:00
// ItemStack(ModBlocks.electricCraftingTable),
2016-03-25 10:47:34 +01:00
// "ITI", "IBI", "ICI",
// 'I', "plateIron",
// 'C', "circuitAdvanced",
// 'T', "crafterWood",
// 'B', "machineBlockBasic");
2016-03-25 10:47:34 +01:00
// CraftingHelper.addShapedOreRecipe(new
2016-12-05 10:40:55 +01:00
// ItemStack(ModBlocks.electricCraftingTable),
2016-03-25 10:47:34 +01:00
// "ATA", "ABA", "ACA",
// 'A', "plateAluminum",
// 'C', "circuitAdvanced",
// 'T', "crafterWood",
// 'B', "machineBlockBasic");
2016-03-25 10:47:34 +01:00
// CraftingHelper.addShapedOreRecipe(new
2016-12-05 10:40:55 +01:00
// ItemStack(ModBlocks.chunkLoader),
2016-03-25 10:47:34 +01:00
// "SCS", "CMC", "SCS",
// 'S', "plateSteel",
// 'C', "circuitMaster",
// 'M', new ItemStack(ModItems.parts, 1, 39));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.LAPOTRONIC_SU), " L ", "CBC", " M ", 'L', IC2Duplicates.LVT.getStackBasedOnConfig(), 'C',
"circuitAdvanced", 'M', IC2Duplicates.MVT.getStackBasedOnConfig(), 'B', ModBlocks.LSU_STORAGE_BLOCK);
2016-03-25 10:47:34 +01:00
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(BlockMachineFrame.getFrameByName("highlyAdvancedMachine", 1), "CTC", "TBT", "CTC",
'C', "ingotChrome", 'T', "ingotTitanium", 'B',
"machineBlockAdvanced");
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModBlocks.MACHINE_CASINGS, 4, 0), "III", "CBC", "III", 'I', "plateIron",
2016-10-08 21:46:16 +02:00
'C', "circuitBasic", 'B', "machineBlockBasic");
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.MACHINE_CASINGS, 4, 1), "SSS", "CBC", "SSS", 'S',
2016-10-08 21:46:16 +02:00
"plateSteel", 'C', "circuitAdvanced", 'B', "machineBlockAdvanced");
2016-03-25 10:47:34 +01:00
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.MACHINE_CASINGS, 4, 2), "HHH", "CBC", "HHH", 'H',
2016-10-08 21:46:16 +02:00
"ingotChrome", 'C', "circuitElite", 'B', BlockMachineFrame.getFrameByName("highlyAdvancedMachine", 1));
2016-03-25 10:47:34 +01:00
2016-10-08 21:46:16 +02:00
if (!CompatManager.isQuantumStorageLoaded) {
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.QUANTUM_CHEST), "DCD", "ATA", "DQD", 'D',
2016-03-25 10:47:34 +01:00
ItemParts.getPartByName("dataOrb"), 'C', ItemParts.getPartByName("computerMonitor"), 'A',
BlockMachineFrame.getFrameByName("highlyAdvancedMachine", 1), 'Q', ModBlocks.DIGITAL_CHEST, 'T',
2016-12-18 22:36:29 +01:00
IC2Duplicates.COMPRESSOR.getStackBasedOnConfig());
}
2016-03-25 10:47:34 +01:00
// CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.PlasmaGenerator), "PPP", "PTP", "CGC", 'P',
// ItemPlates.getPlateByName("tungstensteel"), 'T', IC2Duplicates.HVT.getStackBasedOnConfig(),
// 'G', IC2Duplicates.GENERATOR.getStackBasedOnConfig(), 'C',
// "circuitMaster");
2016-03-25 10:47:34 +01:00
// Smetling
CraftingHelper
2016-10-08 21:46:16 +02:00
.addSmelting(ItemDusts.getDustByName("copper", 1), getOre("ingotCopper"),
1F);
CraftingHelper
2016-10-08 21:46:16 +02:00
.addSmelting(ItemDusts.getDustByName("tin", 1), ItemIngots.getIngotByName("tin"), 1F);
CraftingHelper
2016-10-08 21:46:16 +02:00
.addSmelting(ItemDusts.getDustByName("bronze", 1), ItemIngots.getIngotByName("bronze"),
1F);
CraftingHelper
2016-10-08 21:46:16 +02:00
.addSmelting(ItemDusts.getDustByName("lead", 1), ItemIngots.getIngotByName("lead"), 1F);
CraftingHelper
2016-10-08 21:46:16 +02:00
.addSmelting(ItemDusts.getDustByName("silver", 1), ItemIngots.getIngotByName("silver"),
1F);
2016-07-16 17:17:44 +02:00
2016-03-25 10:47:34 +01:00
// UU
if (ConfigTechReborn.UUrecipesIridiamOre)
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe((OreDictionary.getOres("oreIridium").get(0)), "UUU", " U ", "UUU", 'U',
ModItems.UU_MATTER);
2016-03-25 10:47:34 +01:00
// CentrifugeRecipes
// Plantball/Bio Chaff
// FIX with ic2
// RecipeHandler.addRecipe(new CentrifugeRecipe(new
// ItemStack(Blocks.grass, 16), null, new
// ItemStack(TechRebornAPI.recipeCompact.getItem("biochaff").getItem(),
// 8), new
// ItemStack(TechRebornAPI.recipeCompact.getItem("plantBall").getItem(),
// 8), new ItemStack(Items.clay_ball), new ItemStack(Blocks.sand, 8),
// 2500, 5));
// RecipeHandler.addRecipe(new CentrifugeRecipe(new
// ItemStack(Blocks.dirt, 16), null, new
// ItemStack(TechRebornAPI.recipeCompact.getItem("biochaff").getItem(),
// 4), new
// ItemStack(TechRebornAPI.recipeCompact.getItem("plantBall").getItem(),
// 4), new ItemStack(Items.clay_ball), new ItemStack(Blocks.sand, 8),
// 2500, 5));
// Methane
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Items.MUSHROOM_STEW, 16), ItemCells.getCellByName("empty"),
2016-03-29 11:17:48 +02:00
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
2016-10-08 21:46:16 +02:00
RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.APPLE, 32), ItemCells.getCellByName("empty"),
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Items.PORKCHOP, 12), ItemCells.getCellByName("empty"),
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Items.COOKED_PORKCHOP, 16), ItemCells.getCellByName("empty"),
2016-03-29 11:17:48 +02:00
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
2016-10-08 21:46:16 +02:00
RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.BREAD, 64), ItemCells.getCellByName("empty"),
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
2016-05-06 23:13:24 +02:00
RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.FISH, 12), ItemCells.getCellByName("empty"),
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Items.COOKED_FISH, 16), ItemCells.getCellByName("empty"),
2016-03-29 11:17:48 +02:00
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
2016-10-08 21:46:16 +02:00
RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.BEEF, 12), ItemCells.getCellByName("empty"),
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Items.COOKED_BEEF, 16), ItemCells.getCellByName("empty"),
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Blocks.PUMPKIN, 16), ItemCells.getCellByName("empty"),
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Items.SPECKLED_MELON, 1), ItemCells.getCellByName("empty"),
ItemCells.getCellByName("methane", 1), new ItemStack(Items.GOLD_NUGGET, 6), null, null, 5000,
5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Items.SPIDER_EYE, 32), ItemCells.getCellByName("empty"),
2016-03-29 11:17:48 +02:00
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
2016-10-08 21:46:16 +02:00
RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.CHICKEN, 12), ItemCells.getCellByName("empty"),
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Items.COOKED_CHICKEN, 16), ItemCells.getCellByName("empty"),
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Items.ROTTEN_FLESH, 16), ItemCells.getCellByName("empty"),
2016-03-29 11:17:48 +02:00
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
2016-10-08 21:46:16 +02:00
RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.MELON, 64), ItemCells.getCellByName("empty"),
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
2016-05-06 23:13:24 +02:00
RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.COOKIE, 64), ItemCells.getCellByName("empty"),
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
2016-05-06 23:13:24 +02:00
RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.CAKE, 8), ItemCells.getCellByName("empty"),
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Items.GOLDEN_CARROT, 1), ItemCells.getCellByName("empty"),
ItemCells.getCellByName("methane", 1), new ItemStack(Items.GOLD_NUGGET, 6), null, null, 5000,
5));
2016-05-06 23:13:24 +02:00
RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.CARROT, 16), ItemCells.getCellByName("empty"),
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Items.BAKED_POTATO, 24), ItemCells.getCellByName("empty"),
2016-03-29 11:17:48 +02:00
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
2016-10-08 21:46:16 +02:00
RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.POTATO, 16), ItemCells.getCellByName("empty"),
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Items.POISONOUS_POTATO, 12), ItemCells.getCellByName("empty"),
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Items.NETHER_WART, 1), ItemCells.getCellByName("empty"),
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
2016-03-25 10:47:34 +01:00
// Fix with ic2
// RecipeHandler.addRecipe(new CentrifugeRecipe(new
// ItemStack(TechRebornAPI.recipeCompact.getItem("terraWart").getItem(),
2016-03-29 04:47:00 +02:00
// 16), ItemCells.getCellByName("empty"),
2016-03-25 10:47:34 +01:00
// ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Blocks.BROWN_MUSHROOM, 1), ItemCells.getCellByName("empty"),
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Blocks.RED_MUSHROOM, 1), ItemCells.getCellByName("empty"),
ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5));
2016-03-25 10:47:34 +01:00
// Rubber Wood Yields
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(getOre("rubberWood").getItem(), 16),
ItemCells.getCellByName("empty", 5), ItemParts.getPartByName("rubber", 8),
new ItemStack(Blocks.SAPLING, 6), ItemCells.getCellByName("methane", 1),
ItemCells.getCellByName("carbon", 4), 5000, 5, true));
2016-03-25 10:47:34 +01:00
// Soul Sand Byproducts
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Blocks.SOUL_SAND, 16), ItemCells.getCellByName("empty"),
ItemCells.getCellByName("oil", 1), ItemDusts.getDustByName("saltpeter", 4),
ItemDusts.getDustByName("coal", 1), new ItemStack(Blocks.SAND, 10), 2500, 5));
2016-03-25 10:47:34 +01:00
// Type Byproducts
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Items.GLOWSTONE_DUST, 16), ItemCells.getCellByName("empty"),
new ItemStack(Items.REDSTONE, 8), ItemDusts.getDustByName("gold", 8),
ItemCells.getCellByName("helium", 1), null, 25000, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(ItemDusts.getDustByName("phosphorous", 5), ItemCells.getCellByName("empty", 3),
ItemCells.getCellByName("calcium", 3), null, null, null, 1280, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(ItemDusts.getDustByName("ashes", 1), ItemCells.getCellByName("empty"),
ItemCells.getCellByName("carbon"), null, null, null, 80, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(new ItemStack(Items.REDSTONE, 10), ItemCells.getCellByName("empty", 4),
ItemCells.getCellByName("silicon", 1), ItemDusts.getDustByName("pyrite", 3),
ItemDusts.getDustByName("ruby", 1), ItemCells.getCellByName("mercury", 3), 6800, 5));
2016-03-29 11:17:48 +02:00
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(ItemDusts.getDustByName("endstone", 16), ItemCells.getCellByName("empty", 2),
ItemCells.getCellByName("helium3", 1), ItemCells.getCellByName("helium"),
ItemDustsSmall.getSmallDustByName("Tungsten", 1), new ItemStack(Blocks.SAND, 12), 4800, 5));
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(ItemDusts.getDustByName("cinnabar", 2), ItemCells.getCellByName("empty"),
ItemCells.getCellByName("mercury", 1), ItemDusts.getDustByName("sulfur", 1), null, null, 80,
5));
2016-03-25 10:47:34 +01:00
// Deuterium/Tritium
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new CentrifugeRecipe(ItemCells.getCellByName("helium", 16), null, ItemCells.getCellByName("helium3", 1),
ItemCells.getCellByName("empty", 15), null, null, 10000, 5));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new CentrifugeRecipe(ItemCells.getCellByName("deuterium", 4), null,
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("tritium", 1), ItemCells.getCellByName("empty", 3), null, null, 3000, 5));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new CentrifugeRecipe(ItemCells.getCellByName("hydrogen", 4), null,
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("deuterium", 1), ItemCells.getCellByName("empty", 3), null, null, 3000, 5));
2016-03-25 10:47:34 +01:00
// Lava Cell Byproducts
ItemStack lavaCells = ItemCells.getCellByName("lava");
2016-11-19 13:50:08 +01:00
lavaCells.setCount(8);
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new CentrifugeRecipe(lavaCells, null, ItemNuggets.getNuggetByName("electrum", 4),
2016-10-08 21:46:16 +02:00
ItemIngots.getIngotByName("copper", 2), ItemDustsSmall.getSmallDustByName("Tungsten", 1),
ItemIngots.getIngotByName("tin", 2), 6000, 5));
2016-03-25 10:47:34 +01:00
2016-12-05 10:40:55 +01:00
// Implosion compressor
2016-12-10 09:15:39 +01:00
RecipeHandler.addRecipe(new ImplosionCompressorRecipe(ItemIngots.getIngotByName("iridium_alloy"),
2016-10-08 21:46:16 +02:00
new ItemStack(Blocks.TNT, 8),
2016-12-11 20:34:56 +01:00
OreDictionary.getOres("plateIridium").get(0).copy(), ItemDusts.getDustByName("dark_ashes", 4), 20, 30));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new ImplosionCompressorRecipe(ItemDusts.getDustByName("diamond", 4),
2016-10-08 21:46:16 +02:00
new ItemStack(Blocks.TNT, 32),
new ItemStack(Items.DIAMOND, 3),
2016-12-11 20:34:56 +01:00
ItemDusts.getDustByName("dark_ashes", 16), 20, 30));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new ImplosionCompressorRecipe(ItemDusts.getDustByName("emerald", 4),
2016-10-08 21:46:16 +02:00
new ItemStack(Blocks.TNT, 24),
2016-12-11 20:34:56 +01:00
new ItemStack(Items.EMERALD, 3), ItemDusts.getDustByName("dark_ashes", 12), 20, 30));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new ImplosionCompressorRecipe(ItemDusts.getDustByName("sapphire", 4),
2016-10-08 21:46:16 +02:00
new ItemStack(Blocks.TNT, 24),
2016-12-11 20:34:56 +01:00
ItemGems.getGemByName("sapphire", 3), ItemDusts.getDustByName("dark_ashes", 12), 20, 30));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new ImplosionCompressorRecipe(ItemDusts.getDustByName("ruby", 4),
2016-10-08 21:46:16 +02:00
new ItemStack(Blocks.TNT, 24),
2016-12-11 20:34:56 +01:00
ItemGems.getGemByName("ruby", 3), ItemDusts.getDustByName("dark_ashes", 12), 20, 30));
RecipeHandler.addRecipe(new ImplosionCompressorRecipe(ItemDusts.getDustByName("yellow_garnet", 4),
2016-10-08 21:46:16 +02:00
new ItemStack(Blocks.TNT, 24),
2016-12-11 20:34:56 +01:00
ItemGems.getGemByName("yellow_garnet", 3), ItemDusts.getDustByName("dark_ashes", 12), 20, 30));
RecipeHandler.addRecipe(new ImplosionCompressorRecipe(ItemDusts.getDustByName("red_garnet", 4),
2016-10-08 21:46:16 +02:00
new ItemStack(Blocks.TNT, 24),
2016-12-11 20:34:56 +01:00
ItemGems.getGemByName("red_garnet", 3), ItemDusts.getDustByName("dark_ashes", 12), 20, 30));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new ImplosionCompressorRecipe(ItemDusts.getDustByName("peridot", 4),
2016-10-08 21:46:16 +02:00
new ItemStack(Blocks.TNT, 24),
2016-12-11 20:34:56 +01:00
ItemGems.getGemByName("peridot", 3), ItemDusts.getDustByName("dark_ashes", 12), 20, 30));
2016-03-25 10:47:34 +01:00
// Chemical Reactor
RecipeHandler.addRecipe(new ChemicalReactorRecipe(ItemDusts.getDustByName("calcite", 1), null,
2016-10-08 21:46:16 +02:00
new ItemStack(OreDictionary.getOres("fertilizer").get(0).getItem(), 1), 100, 30));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new ChemicalReactorRecipe(ItemDusts.getDustByName("calcite", 1),
2016-10-08 21:46:16 +02:00
ItemDusts.getDustByName("phosphorous", 1),
new ItemStack(OreDictionary.getOres("fertilizer").get(0).getItem(), 3), 100, 30));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new ChemicalReactorRecipe(ItemCells.getCellByName("sodiumSulfide", 1),
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("empty"), ItemCells.getCellByName("sodiumPersulfate", 2), 2000,
30));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new ChemicalReactorRecipe(ItemCells.getCellByName("nitrocarbon", 1),
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("water"), ItemCells.getCellByName("glyceryl", 2), 580, 30));
RecipeHandler.addRecipe(
new ChemicalReactorRecipe(ItemDusts.getDustByName("calcite", 1), ItemDusts.getDustByName("sulfur", 1),
new ItemStack(OreDictionary.getOres("fertilizer").get(0).getItem(), 2), 100, 30));
ItemStack waterCells = ItemCells.getCellByName("water").copy();
2016-11-19 13:50:08 +01:00
waterCells.setCount(2);
2016-10-08 21:46:16 +02:00
RecipeHandler.addRecipe(new ChemicalReactorRecipe(ItemCells.getCellByName("sulfur", 1), waterCells,
ItemCells.getCellByName("sulfuricAcid", 3), 1140, 30));
ItemStack waterCells2 = ItemCells.getCellByName("water").copy();
2016-11-19 13:50:08 +01:00
waterCells2.setCount(5);
2016-10-08 21:46:16 +02:00
RecipeHandler.addRecipe(new ChemicalReactorRecipe(ItemCells.getCellByName("hydrogen", 4),
ItemCells.getCellByName("empty"), waterCells2, 10, 30));
RecipeHandler.addRecipe(new ChemicalReactorRecipe(ItemCells.getCellByName("nitrogen", 1),
ItemCells.getCellByName("empty"), ItemCells.getCellByName("nitrogenDioxide", 2), 1240,
30));
2016-03-25 10:47:34 +01:00
2016-12-05 10:40:55 +01:00
// industrialElectrolyzer
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemCells.getCellByName("sulfuricAcid", 7), null,
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("hydrogen", 2), ItemDusts.getDustByName("sulfur"),
ItemCells.getCellByName("empty", 2), ItemCells.getCellByName("empty", 3), 400, 90));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("ruby", 9), ItemCells.getCellByName("empty"),
ItemDusts.getDustByName("aluminum", 2), ItemCells.getCellByName("empty", 1),
ItemDusts.getDustByName("chrome", 1), null, 140, 90));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("sapphire", 8),
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("empty"), ItemDusts.getDustByName("aluminum", 2),
ItemCells.getCellByName("empty"), null, null, 100, 60));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemCells.getCellByName("sodiumSulfide", 2), null,
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("sodium", 1), ItemDusts.getDustByName("sulfur", 1), null,
ItemCells.getCellByName("empty"), 200, 60));
2016-03-25 10:47:34 +01:00
2016-03-29 04:47:00 +02:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("peridot", 5),
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("empty"), ItemDusts.getDustByName("aluminum", 2),
ItemCells.getCellByName("empty"), null, null, 100, 60));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("emerald", 29),
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("empty", 18), ItemCells.getCellByName("berylium", 3),
ItemDusts.getDustByName("aluminum", 2), ItemCells.getCellByName("silicon", 6),
ItemCells.getCellByName("empty", 9), 520, 120));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(
2016-10-08 21:46:16 +02:00
new IndustrialElectrolyzerRecipe(new ItemStack(Items.DYE, 3, 15), ItemCells.getCellByName("empty", 1),
null, ItemCells.getCellByName("calcium", 1), null, null, 20, 106));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemCells.getCellByName("glyceryl", 20), null,
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("carbon", 3), ItemCells.getCellByName("hydrogen", 5),
ItemCells.getCellByName("nitrogen", 3), ItemCells.getCellByName("empty", 9), 800, 90));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("peridot", 9),
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("empty", 4), ItemDusts.getDustByName("magnesium", 2),
ItemDusts.getDustByName("iron"), ItemCells.getCellByName("silicon", 2),
ItemCells.getCellByName("empty", 2), 200, 120));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemCells.getCellByName("calciumCarbonate", 5), null,
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("carbon"), ItemCells.getCellByName("calcium"),
ItemCells.getCellByName("empty", 1), ItemCells.getCellByName("empty", 2), 400, 90));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemCells.getCellByName("sodiumPersulfate", 6), null,
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("sodium"), ItemDusts.getDustByName("sulfur"),
ItemCells.getCellByName("empty", 2), ItemCells.getCellByName("empty", 3), 420, 90));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("pyrope", 20),
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("empty", 9), ItemDusts.getDustByName("aluminum", 2),
ItemDusts.getDustByName("magnesium", 3), ItemCells.getCellByName("silicon", 3),
ItemCells.getCellByName("empty", 6), 400, 120));
2016-03-25 10:47:34 +01:00
2016-05-06 23:13:24 +02:00
ItemStack sand = new ItemStack(Blocks.SAND);
2016-11-19 13:50:08 +01:00
sand.setCount(16);
2016-03-25 10:47:34 +01:00
2016-03-29 11:17:48 +02:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(sand, ItemCells.getCellByName("empty", 2),
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("silicon", 1), ItemCells.getCellByName("empty"), null, null, 1000, 25));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("almandine", 20),
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("empty", 9), ItemDusts.getDustByName("aluminum", 2),
ItemDusts.getDustByName("iron", 3), ItemCells.getCellByName("silicon", 3),
ItemCells.getCellByName("empty", 6), 480, 120));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("spessartine", 20),
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("empty", 9), ItemDusts.getDustByName("aluminum", 2),
ItemDusts.getDustByName("manganese", 3), ItemCells.getCellByName("silicon", 3),
ItemCells.getCellByName("empty", 6), 480, 120));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("andradite", 20),
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("empty", 12), ItemCells.getCellByName("calcium", 3),
ItemDusts.getDustByName("iron", 2), ItemCells.getCellByName("silicon", 3),
ItemCells.getCellByName("empty", 6), 480, 120));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("grossular", 20),
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("empty", 12), ItemCells.getCellByName("calcium", 3),
ItemDusts.getDustByName("aluminum", 2), ItemCells.getCellByName("silicon", 3),
ItemCells.getCellByName("empty", 6), 440, 120));
2016-03-25 10:47:34 +01:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("Uvarovite", 20),
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("empty", 12), ItemCells.getCellByName("calcium", 3),
ItemDusts.getDustByName("chrome", 2), ItemCells.getCellByName("silicon", 3),
ItemCells.getCellByName("empty", 6), 480, 120));
2016-03-25 10:47:34 +01:00
2016-10-08 21:46:16 +02:00
// RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemCells.getCellByName("empty", 6), null,
// ItemCells.getCellByName("hydrogen", 4), ItemCells.getCellByName("empty", 5),
// ItemCells.getCellByName("empty", 1), null, 100, 30));
2016-03-25 10:47:34 +01:00
2016-12-11 20:34:56 +01:00
RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("dark_ashes"),
2016-10-08 21:46:16 +02:00
ItemCells.getCellByName("empty", 2), ItemCells.getCellByName("carbon", 2), null, null, null, 20, 30));
2016-03-25 10:47:34 +01:00
//Disable recipe for now
2016-12-22 01:41:33 +01:00
// if (OreUtil.doesOreExistAndValid("dustSalt")) {
// ItemStack salt = OreDictionary.getOres("dustSalt").get(0);
// salt.setCount(2);
// RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(salt, ItemCells.getCellByName("empty", 2),
// ItemCells.getCellByName("sodium"), ItemCells.getCellByName("chlorine"), null, null, 40, 60));
// }
2016-03-25 10:47:34 +01:00
2016-12-18 22:36:29 +01:00
if (ConfigTechReborn.ExpensiveMacerator && !IC2Duplicates.deduplicate())
CraftingHelper
2016-10-08 21:46:16 +02:00
.addShapedOreRecipe(getOre("ic2Macerator"), "FDF", "DMD", "FCF", 'F',
Items.FLINT, 'D', Items.DIAMOND, 'M', "machineBlockBasic", 'C',
"circuitBasic");
2016-03-25 10:47:34 +01:00
2016-12-18 22:36:29 +01:00
if (ConfigTechReborn.ExpensiveSolar && !IC2Duplicates.deduplicate())
CraftingHelper
2016-12-18 22:36:29 +01:00
.addShapedOreRecipe(IC2Duplicates.SOLAR_PANEL.getStackBasedOnConfig(), "PPP", "SZS", "CGC", 'P',
"paneGlass", 'S', ItemPlates.getPlateByName("lazurite"), 'Z',
2016-10-08 21:46:16 +02:00
"plateCarbon", 'G',
2016-12-18 22:36:29 +01:00
IC2Duplicates.GENERATOR.getStackBasedOnConfig(), 'C',
2016-10-08 21:46:16 +02:00
"circuitBasic");
2016-12-10 09:15:39 +01:00
CraftingHelper.addShapedOreRecipe(ItemIngots.getIngotByName("iridium_alloy"), "IAI", "ADA", "IAI", 'I',
2016-10-08 21:46:16 +02:00
"ingotIridium", 'D', ItemDusts.getDustByName("diamond"), 'A',
"plateAdvancedAlloy");
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModItems.LITHIUM_BATTERY_PACK, 1, OreDictionary.WILDCARD_VALUE), "BCB",
"BPB", "B B", 'B', new ItemStack(ModItems.LITHIUM_BATTERY), 'P', "plateAluminum", 'C',
2016-10-08 21:46:16 +02:00
"circuitAdvanced");
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModItems.LITHIUM_BATTERY, 1, OreDictionary.WILDCARD_VALUE), " C ",
2016-10-08 21:46:16 +02:00
"PFP", "PFP", 'F', ItemCells.getCellByName("lithium"), 'P', "plateAluminum", 'C',
IC2Duplicates.CABLE_IGOLD.getStackBasedOnConfig());
2016-03-25 10:47:34 +01:00
CraftingHelper
.addShapedOreRecipe(new ItemStack(ModItems.LAPOTRONIC_ORB_PACK, 1, OreDictionary.WILDCARD_VALUE), "FOF", "SPS",
2016-10-08 21:46:16 +02:00
"FIF", 'F', "circuitMaster", 'O',
new ItemStack(ModItems.LAPOTRONIC_ORB), 'S', ItemParts.getPartByName("superConductor"), 'I',
"ingotIridium", 'P', new ItemStack(ModItems.LITHIUM_BATTERY_PACK));
2016-03-28 19:31:32 +02:00
}
static void addFluidGeneratorRecipes() {
GeneratorRecipeHelper.registerFluidRecipe(EFluidGenerator.DIESEL, ModFluids.NITROFUEL, 24);
GeneratorRecipeHelper.registerFluidRecipe(EFluidGenerator.DIESEL, ModFluids.NITROCOAL_FUEL, 48);
GeneratorRecipeHelper.registerFluidRecipe(EFluidGenerator.DIESEL, ModFluids.LITHIUM, 24);
GeneratorRecipeHelper.registerFluidRecipe(EFluidGenerator.DIESEL, ModFluids.NITRO_DIESEL, 36);
GeneratorRecipeHelper.registerFluidRecipe(EFluidGenerator.DIESEL, ModFluids.OIL, 16);
GeneratorRecipeHelper.registerFluidRecipe(EFluidGenerator.SEMIFLUID, ModFluids.OIL, 64);
GeneratorRecipeHelper.registerFluidRecipe(EFluidGenerator.SEMIFLUID, ModFluids.SODIUM, 30);
GeneratorRecipeHelper.registerFluidRecipe(EFluidGenerator.SEMIFLUID, ModFluids.LITHIUM, 60);
GeneratorRecipeHelper.registerFluidRecipe(EFluidGenerator.THERMAL, FluidRegistry.LAVA, 60);
2016-12-22 01:41:33 +01:00
GeneratorRecipeHelper.registerFluidRecipe(EFluidGenerator.GAS, ModFluids.HYDROGEN, 15);
GeneratorRecipeHelper.registerFluidRecipe(EFluidGenerator.GAS, ModFluids.METHANE, 45);
}
2016-10-08 21:46:16 +02:00
public static ItemStack getBucketWithFluid(Fluid fluid) {
return UniversalBucket.getFilledBucket(ForgeModContainer.getInstance().universalBucket, fluid);
}
2016-07-16 17:17:44 +02:00
public static ItemStack getOre(String name) {
2016-10-08 21:46:16 +02:00
if (OreDictionary.getOres(name).isEmpty()) {
return new ItemStack(ModItems.MISSING_RECIPE_PLACEHOLDER);
2016-07-16 23:16:22 +02:00
}
return OreDictionary.getOres(name).get(0).copy();
}
2016-07-16 17:17:44 +02:00
}