public static void registerOresInDictionary() { // Ore Dictionary Registeration OreDictionary.registerOre( "dustCoal", new ItemStack(ModObject.itemPowderIngot.actualId, 1, PowderIngot.POWDER_COAL.ordinal())); OreDictionary.registerOre( "dustIron", new ItemStack(ModObject.itemPowderIngot.actualId, 1, PowderIngot.POWDER_IRON.ordinal())); OreDictionary.registerOre( "dustGold", new ItemStack(ModObject.itemPowderIngot.actualId, 1, PowderIngot.POWDER_GOLD.ordinal())); OreDictionary.registerOre( "dustCopper", new ItemStack(ModObject.itemPowderIngot.actualId, 1, PowderIngot.POWDER_COPPER.ordinal())); OreDictionary.registerOre( "dustTin", new ItemStack(ModObject.itemPowderIngot.actualId, 1, PowderIngot.POWDER_TIN.ordinal())); }
public static void addRecipes() { // Common Ingredients ItemStack conduitBinder = new ItemStack(ModObject.itemMaterial.actualId, 4, Material.CONDUIT_BINDER.ordinal()); ItemStack basicGear = new ItemStack(ModObject.itemMachinePart.actualId, 1, MachinePart.BASIC_GEAR.ordinal()); ItemStack binderComposite = new ItemStack(ModObject.itemMaterial.actualId, 1, Material.BINDER_COMPOSITE.ordinal()); ItemStack industrialBinder = new ItemStack(ModObject.itemMaterial.actualId, 1, Material.CONDUIT_BINDER.ordinal()); ItemStack wrench = new ItemStack(ModObject.itemYetaWrench.actualId, 1, 0); ItemStack enderCapacitor = new ItemStack(itemBasicCapacitor.actualId, 1, 2); ItemStack fusedQuartzFrame = new ItemStack(ModObject.itemFusedQuartzFrame.actualId, 1, 0); ItemStack machineChassi = new ItemStack(ModObject.itemMachinePart.actualId, 1, MachinePart.MACHINE_CHASSI.ordinal()); ItemStack activatedCapacitor = new ItemStack(itemBasicCapacitor.actualId, 1, 1); ItemStack endergold = new ItemStack(ModObject.itemAlloy.actualId, 1, Alloy.PHASED_GOLD.ordinal()); ItemStack electricalSteel = new ItemStack(ModObject.itemAlloy.actualId, 1, Alloy.ELECTRICAL_STEEL.ordinal()); // Conduit Binder ItemStack cbc = binderComposite.copy(); cbc.stackSize = 8; if (Config.useAlternateBinderRecipe) { GameRegistry.addShapedRecipe( cbc, "gcg", "sgs", "gcg", 'g', Block.gravel, 's', Block.sand, 'c', Item.clay); } else { GameRegistry.addShapedRecipe( cbc, "ggg", "scs", "ggg", 'g', Block.gravel, 's', Block.sand, 'c', Item.clay); } FurnaceRecipes.smelting() .addSmelting(binderComposite.itemID, binderComposite.getItemDamage(), conduitBinder, 0); // Aloys int meta = 0; for (Alloy alloy : Alloy.values()) { ItemStack ingot = new ItemStack(ModObject.itemAlloy.actualId, 1, meta); IMachineRecipe recipe = new BasicAlloyRecipe(ingot, alloy.unlocalisedName, alloy.ingrediants); if (ItemAlloy.useNuggets) { ItemStack nugget = new ItemStack(ModObject.itemAlloy.actualId, 9, meta + Alloy.values().length); GameRegistry.addShapelessRecipe(nugget, ingot); nugget = nugget.copy(); nugget.stackSize = 1; GameRegistry.addShapedRecipe(ingot, "nnn", "nnn", "nnn", 'n', nugget); } MachineRecipeRegistry.instance.registerRecipe( ModObject.blockAlloySmelter.unlocalisedName, recipe); meta++; } MachineRecipeRegistry.instance.registerRecipe( ModObject.blockAlloySmelter.unlocalisedName, new FusedQuartzRecipe()); MachineRecipeRegistry.instance.registerRecipe( ModObject.blockAlloySmelter.unlocalisedName, new VanillaSmeltingRecipe()); FurnaceRecipes.smelting() .addSmelting( ModObject.itemPowderIngot.actualId, PowderIngot.POWDER_IRON.ordinal(), new ItemStack(Item.ingotIron), 0); FurnaceRecipes.smelting() .addSmelting( ModObject.itemPowderIngot.actualId, PowderIngot.POWDER_GOLD.ordinal(), new ItemStack(Item.ingotGold), 0); // Fused Quartz Frame GameRegistry.addRecipe( new ShapedOreRecipe( fusedQuartzFrame, "bsb", "s s", "bsb", 'b', conduitBinder, 's', "stickWood")); GameRegistry.addRecipe( new ShapedOreRecipe( fusedQuartzFrame, "bsb", "s s", "bsb", 'b', conduitBinder, 's', "woodStick")); // Wrench GameRegistry.addShapedRecipe(wrench, "s s", " b ", " s ", 's', electricalSteel, 'b', basicGear); // Machine Chassi GameRegistry.addShapedRecipe( machineChassi, "fif", "i i", "fif", 'f', Block.fenceIron, 'i', Item.ingotIron); // Basic Gear GameRegistry.addRecipe( new ShapedOreRecipe( basicGear, "scs", "c c", "scs", 's', "stickWood", 'c', Block.cobblestone)); GameRegistry.addRecipe( new ShapedOreRecipe( basicGear, "scs", "c c", "scs", 's', "woodStick", 'c', Block.cobblestone)); // Ender Capacitor if (Config.useHardRecipes) { GameRegistry.addShapedRecipe( enderCapacitor, "eee", "cgc", "eee", 'e', endergold, 'c', activatedCapacitor, 'g', Block.glowStone); } else { GameRegistry.addShapedRecipe( enderCapacitor, " e ", "cgc", " e ", 'e', endergold, 'c', activatedCapacitor, 'g', Block.glowStone); } }