Search in sources :

Example 6 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project MineFactoryReloaded by powercrystals.

the class GregTech method registerRedNet.

@Override
protected void registerRedNet() {
    if (!Loader.isModLoaded("GregTech_Addon") || !Loader.isModLoaded("IC2")) {
        return;
    }
    try {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.rednetCableBlock, 8), new Object[] { "PPP", "RRR", "PPP", 'R', "dustRedstone", 'P', "sheetPlastic" }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeBrickBlock, 1, 11), new Object[] { "PRP", "RGR", "PIP", 'R', "dustRedstone", 'P', "sheetPlastic", 'G', Block.glass, 'I', "plateIron" }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.rednetLogicBlock), new Object[] { "RDR", "LGL", "PHP", 'H', new ItemStack(MineFactoryReloadedCore.factoryDecorativeBrickBlock, 1, 11), 'P', "sheetPlastic", 'G', "plateGold", 'L', "craftingCircuitTier04", 'D', "gemDiamond", 'R', "dustRedstone" }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.logicCardItem, 1, 0), new Object[] { "RPR", "PGP", "RPR", 'P', "sheetPlastic", 'G', "ingotGold", 'R', "dustRedstone" }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.logicCardItem, 1, 1), new Object[] { "GPG", "PCP", "RGR", 'C', new ItemStack(MineFactoryReloadedCore.logicCardItem, 1, 0), 'P', "sheetPlastic", 'G', "plateGold", 'R', "dustRedstone" }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.logicCardItem, 1, 2), new Object[] { "DPD", "RCR", "GDG", 'C', new ItemStack(MineFactoryReloadedCore.logicCardItem, 1, 1), 'P', "sheetPlastic", 'G', "plateSteel", 'D', "gemDiamond", 'R', "dustRedstone" }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.rednetMeterItem, 1, 0), new Object[] { " G", "PR", "PP", 'P', "sheetPlastic", 'G', "nuggetGold", 'R', "dustRedstone" }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.rednetMemoryCardItem, 1, 0), new Object[] { "GGG", "PRP", "PPP", 'P', "sheetPlastic", 'G', "nuggetGold", 'R', "dustRedstone" }));
        GameRegistry.addShapelessRecipe(new ItemStack(MineFactoryReloadedCore.rednetMemoryCardItem, 1, 0), new ItemStack(MineFactoryReloadedCore.rednetMemoryCardItem, 1, 0));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.rednetPanelBlock, 1, 0), new Object[] { "PCP", "IBI", "KPK", 'P', "sheetPlastic", 'C', MineFactoryReloadedCore.rednetCableBlock, 'B', "craftingMonitorTier02", 'I', "craftingCircuitTier02", 'K', new ItemStack(Item.dyePowder, 1, 0) }));
    } catch (Exception x) {
        x.printStackTrace();
    }
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Example 7 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project MineFactoryReloaded by powercrystals.

the class GregTech method registerMiscItems.

@Override
protected void registerMiscItems() {
    if (!Loader.isModLoaded("GregTech_Addon") || !Loader.isModLoaded("IC2")) {
        return;
    }
    try {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.plasticSheetItem, 4), new Object[] { "##", "##", '#', "dustPlastic" }));
        GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.fertilizerItem, 16), new Object[] { "WBW", "STS", "WBW", 'W', Item.wheat, 'B', new ItemStack(Item.dyePowder, 1, 15), 'S', Item.silk, 'T', Item.stick });
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.safariNetItem, 1), new Object[] { " E ", "CGC", " E ", 'E', Item.enderPearl, 'G', Item.ghastTear, 'C', "craftingCircuitTier04" }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.safariNetSingleItem, 1), new Object[] { "SLS", "CBC", "S S", 'S', Item.silk, 'L', Item.leather, 'B', Item.slimeBall, 'C', "craftingCircuitTier02" }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.safariNetJailerItem, 1), new Object[] { " P ", "ISI", " P ", 'S', MineFactoryReloadedCore.safariNetSingleItem, 'I', Block.fenceIron, 'P', "plateIron" }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.safariNetLauncherItem, 1), new Object[] { "PGP", "LGL", "IRI", 'P', "sheetPlastic", 'L', Item.lightStoneDust, 'G', Item.gunpowder, 'I', "plateIron", 'R', "craftingItemValve" }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.factoryHammerItem, 1), new Object[] { "PPP", " S ", " S ", 'P', "sheetPlastic", 'S', Item.stick }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.blankRecordItem, 1), new Object[] { "RRR", "RPR", "RRR", 'R', "dustPlastic", 'P', Item.paper }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.spyglassItem), new Object[] { "GLG", "PLP", " S ", 'G', "ingotGold", 'L', Block.glass, 'P', "sheetPlastic", 'S', Item.stick }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.portaSpawnerItem), new Object[] { "GLG", "DND", "GLG", 'G', "plateChrome", 'L', "plateAlloyIridium", 'D', "gemDiamond", 'N', Item.netherStar }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.strawItem), new Object[] { "PP", "P ", "P ", 'P', "sheetPlastic" }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.xpExtractorItem), new Object[] { "PLP", "PLP", "RPR", 'R', "itemRubber", 'L', Block.glass, 'P', "sheetPlastic" }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.rulerItem), new Object[] { "P", "A", "P", 'P', "sheetPlastic", 'A', Item.paper }));
        GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.vineScaffoldBlock, 8), new Object[] { "VV", "VV", "VV", 'V', Block.vine });
        GameRegistry.addShapelessRecipe(new ItemStack(MineFactoryReloadedCore.chocolateMilkBucketItem), Item.bucketMilk, Item.bucketEmpty, new ItemStack(Item.dyePowder, 1, 3));
    } catch (Exception x) {
        x.printStackTrace();
    }
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Example 8 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project MineFactoryReloaded by powercrystals.

the class GregTech method registerRails.

@Override
protected void registerRails() {
    if (!Loader.isModLoaded("GregTech_Addon") || !Loader.isModLoaded("IC2")) {
        return;
    }
    try {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.railPickupCargoBlock, 1), new Object[] { " C ", "SDS", "SSS", 'C', "craftingConveyor", 'S', "sheetPlastic", 'D', Block.railDetector }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.railDropoffCargoBlock, 1), new Object[] { "SSS", "SDS", " C ", 'C', "craftingConveyor", 'S', "sheetPlastic", 'D', Block.railDetector }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.railPickupPassengerBlock, 1), new Object[] { " L ", "SDS", "SSS", 'L', Block.blockLapis, 'S', "sheetPlastic", 'D', Block.railDetector }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.railDropoffPassengerBlock, 1), new Object[] { "SSS", "SDS", " L ", 'L', Block.blockLapis, 'S', "sheetPlastic", 'D', Block.railDetector }));
    } catch (Exception x) {
        x.printStackTrace();
    }
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Example 9 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project MineFactoryReloaded by powercrystals.

the class GregTech method registerMachines.

@Override
protected void registerMachines() {
    if (!Loader.isModLoaded("GregTech_Addon") || !Loader.isModLoaded("IC2")) {
        return;
    }
    try {
        ItemStack generator = Items.getItem("generator");
        ItemStack compressor = Items.getItem("compressor");
        ItemStack luminator = Items.getItem("luminator");
        ItemStack mfsUnit = Items.getItem("mfsUnit");
        ItemStack reactorChamber = Items.getItem("reactorChamber");
        ItemStack reinforcedGlass = Items.getItem("reinforcedGlass");
        if (Machine.Planter.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 0), new Object[] { "PTP", "SFS", "OCO", 'P', "sheetPlastic", 'T', Item.flowerPot, 'S', Block.pistonBase, 'F', "craftingRawMachineTier00", 'O', "plateCopper", 'C', "craftingCircuitTier02" }));
        }
        if (Machine.Fisher.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 1), new Object[] { "PTP", "SFS", "OCO", 'P', "sheetPlastic", 'T', Item.fishingRod, 'S', Item.bucketEmpty, 'F', "craftingRawMachineTier01", 'O', "plateSteel", 'C', "craftingCircuitTier04" }));
        }
        if (Machine.Harvester.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 2), new Object[] { "PTP", "SFS", "OCO", 'P', "sheetPlastic", 'T', Item.axeIron, 'S', Item.shears, 'F', "craftingRawMachineTier00", 'O', "plateGold", 'C', "craftingCircuitTier02" }));
        }
        if (Machine.Rancher.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 3), new Object[] { "PTP", "SFS", "OCO", 'P', "sheetPlastic", 'T', "craftingPump", 'S', Item.shears, 'F', "craftingRawMachineTier01", 'O', "plateTin", 'C', "craftingCircuitTier04" }));
        }
        if (Machine.Fertilizer.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 4), new Object[] { "PTP", "SFS", "OCO", 'P', "sheetPlastic", 'T', Item.glassBottle, 'S', Item.leather, 'F', "craftingRawMachineTier01", 'O', "plateSilver", 'C', "craftingCircuitTier04" }));
        }
        if (Machine.Vet.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 5), new Object[] { "PTP", "TFT", "OCO", 'P', "sheetPlastic", 'T', MineFactoryReloadedCore.syringeEmptyItem, 'F', "craftingRawMachineTier01", 'O', "plateZinc", 'C', "craftingCircuitTier04" }));
        }
        if (Machine.ItemCollector.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 6), new Object[] { "PVP", " F ", "PCP", 'P', "sheetPlastic", 'F', "craftingRawMachineTier01", 'C', Block.chest, 'V', "craftingConveyor" }));
        }
        if (Machine.BlockBreaker.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 7), new Object[] { "PTP", "SFS", "OCO", 'P', "sheetPlastic", 'T', "craftingItemValve", 'S', Item.pickaxeIron, 'F', "craftingRawMachineTier02", 'O', "plateAluminium", 'C', "craftingCircuitTier04" }));
        }
        if (Machine.WeatherCollector.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 8), new Object[] { "PTP", "TFT", "OCO", 'P', "sheetPlastic", 'T', Item.bucketEmpty, 'F', "craftingRawMachineTier02", 'O', "plateBrass", 'C', "craftingCircuitTier04" }));
        }
        if (Machine.SludgeBoiler.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 9), new Object[] { "PTP", "SFS", "OCO", 'P', "sheetPlastic", 'T', Item.bucketEmpty, 'S', Block.furnaceIdle, 'F', "craftingRawMachineTier02", 'O', "plateRefinedIron", 'C', "craftingCircuitTier04" }));
        }
        if (Machine.Sewer.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 10), new Object[] { "PTP", "SFS", "SSS", 'P', "sheetPlastic", 'T', Item.bucketEmpty, 'S', Block.brick, 'F', "craftingRawMachineTier01" }));
        }
        if (Machine.Composter.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 11), new Object[] { "PTP", "SFS", "OCO", 'P', "sheetPlastic", 'T', Block.furnaceIdle, 'S', Block.pistonBase, 'F', "craftingRawMachineTier01", 'O', Block.brick, 'C', "craftingCircuitTier04" }));
        }
        if (Machine.Breeder.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 12), new Object[] { "PTP", "SFS", "OCO", 'P', "sheetPlastic", 'T', Item.appleGold, 'S', Item.goldenCarrot, 'F', "craftingRawMachineTier02", 'O', new ItemStack(Item.dyePowder, 1, 5), 'C', "craftingCircuitTier04" }));
        }
        if (Machine.Grinder.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 13), new Object[] { "PTP", "SFS", "OCO", 'P', "sheetPlastic", 'S', "craftingMachineParts", 'T', "craftingGrinder", 'F', "craftingRawMachineTier02", 'O', Item.book, 'C', "craftingCircuitTier04" }));
        }
        if (Machine.AutoEnchanter.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 14), new Object[] { "PTP", "SFS", "OCO", 'P', "sheetPlastic", 'T', "plateAlloyIridium", 'S', Item.book, 'F', "craftingRawMachineTier04", 'O', "craftingCircuitTier06", 'C', Block.obsidian }));
        }
        if (Machine.Chronotyper.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 15), new Object[] { "PTP", "TFT", "OCO", 'P', "sheetPlastic", 'T', "gemEmerald", 'F', "craftingRawMachineTier02", 'O', new ItemStack(Item.dyePowder, 1, 5), 'C', "craftingCircuitTier06" }));
        }
        if (Machine.Ejector.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 0), new Object[] { "PTP", " F ", "OOO", 'P', "sheetPlastic", 'T', "craftingRedstoneReceiver", 'F', "craftingRawMachineTier02", 'O', "dustRedstone" }));
        }
        if (Machine.ItemRouter.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 1), new Object[] { "PTP", "SFS", "PSP", 'P', "sheetPlastic", 'T', Block.chest, 'S', Item.redstoneRepeater, 'F', "craftingRawMachineTier02" }));
        }
        if (Machine.LiquidRouter.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 2), new Object[] { "PTP", "SFS", "PSP", 'P', "sheetPlastic", 'T', "craftingPump", 'S', Item.redstoneRepeater, 'F', "craftingRawMachineTier02" }));
        }
        if (Machine.DeepStorageUnit.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 3), new Object[] { "PDP", "CFC", "PEP", 'P', "sheetPlastic", 'C', "craftingCircuitTier07", 'E', Item.eyeOfEnder, 'D', "craftingCircuitTier08", 'F', "craftingRawMachineTier04" }));
            if (MFRConfig.enableCheapDSU.getBoolean(false)) {
                GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 3), new Object[] { "PCP", "CFC", "PCP", 'P', "sheetPlastic", 'C', Block.chest, 'F', "craftingRawMachineTier01" }));
            }
        }
        if (Machine.LiquiCrafter.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 4), new Object[] { "PTP", "SFS", "OCO", 'P', "sheetPlastic", 'T', Block.workbench, 'S', "craftingPump", 'F', "craftingRawMachineTier01", 'O', Item.book, 'C', "craftingLiquidMeter" }));
        }
        if (Machine.LavaFabricator.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 5), new Object[] { "PTP", "SFS", "OCO", 'P', "sheetPlastic", 'T', "plateSteel", 'S', Item.magmaCream, 'F', "craftingRawMachineTier03", 'O', Item.blazeRod, 'C', "craftingCircuitTier04" }));
        }
        if (Machine.OilFabricator.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 6), new Object[] { "PTP", "OFO", "OCO", 'P', "sheetPlastic", 'T', Block.tnt, 'F', "craftingRawMachineTier03", 'O', Block.obsidian, 'C', "craftingCircuitTier04" }));
        }
        if (Machine.AutoJukebox.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 7), new Object[] { "PJP", " F ", " P ", 'P', "sheetPlastic", 'J', Block.jukebox, 'F', "craftingRawMachineTier01" }));
        }
        if (Machine.Unifier.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 8), new Object[] { "PTP", "SFL", "OCO", 'P', "sheetPlastic", 'T', "plateCopper", 'S', "plateSilver", 'L', "plateGold", 'F', "craftingRawMachineTier01", 'O', Item.comparator, 'C', Item.book }));
        }
        if (Machine.AutoSpawner.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 9), new Object[] { "PTP", "SFS", "OCO", 'P', "sheetPlastic", 'T', "plateAlloyIridium", 'S', Item.magmaCream, 'F', "craftingRawMachineTier02", 'O', "gemRuby", 'C', "craftingCircuitTier05" }));
        }
        if (Machine.BioReactor.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 10), new Object[] { "PTP", "SFS", "OCO", 'P', "sheetPlastic", 'T', Item.fermentedSpiderEye, 'S', Item.slimeBall, 'F', "craftingRawMachineTier03", 'O', "craftingItemValve", 'C', "craftingPump" }));
        }
        if (Machine.BioFuelGenerator.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 11), new Object[] { "PCP", "SFS", "OCO", 'P', "sheetPlastic", 'S', "plateRefinedIron", 'F', generator, 'O', Item.blazeRod, 'C', "craftingCircuitTier04" }));
        }
        if (Machine.AutoDisenchanter.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 12), new Object[] { "PTP", "SFS", "OCO", 'P', "sheetPlastic", 'T', "plateAlloyIridium", 'S', Item.book, 'F', "craftingRawMachineTier03", 'O', "craftingCircuitTier06", 'C', Block.netherBrick }));
        }
        if (Machine.Slaughterhouse.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 13), new Object[] { "GIG", "SFS", "XCX", 'G', "sheetPlastic", 'S', "craftingPump", 'X', "craftingGrinder", 'I', "craftingDiamondBlade", 'F', "craftingRawMachineTier02", 'C', "craftingCircuitTier04" }));
        }
        if (Machine.MeatPacker.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 14), new Object[] { "GSG", "BFB", "TCT", 'G', "sheetPlastic", 'B', "craftingHeatingCoilTier01", 'S', "craftingPump", 'F', compressor, 'C', "craftingMachineParts", 'T', "craftingPump" }));
        }
        if (Machine.EnchantmentRouter.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 15), new Object[] { "PBP", "SFS", "PSP", 'P', "sheetPlastic", 'B', Item.book, 'S', Item.redstoneRepeater, 'F', "craftingRawMachineTier02" }));
        }
        if (Machine.LaserDrill.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(2), 1, 0), new Object[] { "GFG", "CRC", "DLD", 'G', "sheetPlastic", 'D', "gemDiamond", 'L', reinforcedGlass, 'R', reactorChamber, 'F', "craftingRawMachineTier04", 'C', "craftingSuperconductor" }));
        }
        if (Machine.LaserDrillPrecharger.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(2), 1, 1), new Object[] { "GSG", "RFL", "DCD", 'G', "sheetPlastic", 'D', "gemDiamond", 'S', MineFactoryReloadedCore.pinkSlimeballItem, 'L', luminator, 'F', mfsUnit, 'C', "craftingCircuitTier07", 'R', "craftingSuperconductor" }));
        }
        if (Machine.AutoAnvil.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(2), 1, 2), new Object[] { "GIG", "SFS", "ACA", 'G', "sheetPlastic", 'A', Block.anvil, 'S', "plateSteel", 'F', "craftingRawMachineTier04", 'C', "craftingCircuitTier07", 'I', "plateAlloyIridium" }));
        }
        if (Machine.BlockSmasher.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(2), 1, 3), new Object[] { "GPG", "HFH", "BCB", 'G', "sheetPlastic", 'P', Block.pistonBase, 'H', MineFactoryReloadedCore.factoryHammerItem, 'B', "craftingItemValve", 'F', "craftingRawMachineTier03", 'C', "craftingCircuitTier06" }));
        }
        if (Machine.RedNote.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(2), 1, 4), new Object[] { "GNG", "CFC", "GNG", 'G', "sheetPlastic", 'C', MineFactoryReloadedCore.rednetCableBlock, 'N', Block.music, 'F', "craftingRawMachineTier01" }));
        }
        if (Machine.AutoBrewer.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(2), 1, 5), new Object[] { "GBG", "CFC", "RCR", 'G', "sheetPlastic", 'C', "craftingPump", 'B', Item.brewingStand, 'R', "craftingItemValve", 'F', "craftingRawMachineTier02", 'C', "craftingCircuitTier05" }));
        }
        if (Machine.FruitPicker.getIsRecipeEnabled()) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(2), 1, 6), new Object[] { "GXG", "SFS", "SCS", 'G', "sheetPlastic", 'X', Item.axeGold, 'S', Item.shears, 'F', "craftingRawMachineTier03", 'C', "craftingCircuitTier04" }));
        }
    } catch (Exception x) {
        x.printStackTrace();
    }
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Example 10 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project MineFactoryReloaded by powercrystals.

the class Vanilla method registerDecorative.

protected void registerDecorative() {
    if (_registeredDecorative) {
        return;
    }
    _registeredDecorative = true;
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.factoryRoadBlock, 16), new Object[] { "BBB", "BPB", "BBB", 'P', "sheetPlastic", 'B', new ItemStack(Block.stoneBrick, 1, 0) }));
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryRoadBlock, 4, 1), new Object[] { "R R", " G ", "R R", 'R', new ItemStack(MineFactoryReloadedCore.factoryRoadBlock, 1, 0), 'G', Block.redstoneLampIdle });
    GameRegistry.addShapelessRecipe(new ItemStack(MineFactoryReloadedCore.factoryRoadBlock, 1, 4), new ItemStack(MineFactoryReloadedCore.factoryRoadBlock, 1, 1));
    GameRegistry.addShapelessRecipe(new ItemStack(MineFactoryReloadedCore.factoryRoadBlock, 1, 1), new ItemStack(MineFactoryReloadedCore.factoryRoadBlock, 1, 4));
    for (int i = 0; i < 16; i++) {
        GameRegistry.addShapelessRecipe(new ItemStack(MineFactoryReloadedCore.ceramicDyeItem, 4, i), new ItemStack(Item.clay), new ItemStack(Item.dyePowder, 1, 15 - i));
        GameRegistry.addShapelessRecipe(new ItemStack(MineFactoryReloadedCore.factoryGlassBlock, 1, i), new ItemStack(Block.glass), new ItemStack(MineFactoryReloadedCore.ceramicDyeItem, 1, i));
        GameRegistry.addShapelessRecipe(new ItemStack(MineFactoryReloadedCore.factoryGlassPaneBlock, 1, i), new ItemStack(Block.thinGlass), new ItemStack(MineFactoryReloadedCore.ceramicDyeItem, 1, i));
        GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryGlassPaneBlock, 16, i), new Object[] { "GGG", "GGG", 'G', new ItemStack(MineFactoryReloadedCore.factoryGlassBlock, 1, i) });
    }
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeBrickBlock, 8, 0), new Object[] { "M M", " B ", "M M", 'B', Block.brick, 'M', Block.ice });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeBrickBlock, 8, 1), new Object[] { "M M", " B ", "M M", 'B', Block.brick, 'M', Block.glowStone });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeBrickBlock, 8, 2), new Object[] { "M M", " B ", "M M", 'B', Block.brick, 'M', Block.blockLapis });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeBrickBlock, 8, 3), new Object[] { "M M", " B ", "M M", 'B', Block.brick, 'M', Block.obsidian });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeBrickBlock, 8, 4), new Object[] { "M M", " B ", "M M", 'B', Block.brick, 'M', new ItemStack(Block.stoneSingleSlab, 1, 0) });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeBrickBlock, 8, 5), new Object[] { "M M", " B ", "M M", 'B', Block.brick, 'M', Block.blockSnow });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeBrickBlock, 8, 6), new Object[] { "M M", " B ", "M M", 'B', Block.stoneBrick, 'M', Block.glowStone });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeBrickBlock, 8, 7), new Object[] { "M M", " B ", "M M", 'B', Block.stoneBrick, 'M', Block.ice });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeBrickBlock, 8, 8), new Object[] { "M M", " B ", "M M", 'B', Block.stoneBrick, 'M', Block.blockLapis });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeBrickBlock, 8, 9), new Object[] { "M M", " B ", "M M", 'B', Block.stoneBrick, 'M', Block.obsidian });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeBrickBlock, 8, 10), new Object[] { "M M", " B ", "M M", 'B', Block.stoneBrick, 'M', Block.blockSnow });
    /**
		 * Smooth:
		 **/
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 8, 0), new Object[] { "SSS", "SDS", "SSS", 'S', Block.stone, 'D', new ItemStack(Item.dyePowder, 1, 0) });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 8, 1), new Object[] { "SSS", "SDS", "SSS", 'S', Block.stone, 'D', Item.sugar });
    // cobble->smooth
    int stoneID = MineFactoryReloadedCore.factoryDecorativeStoneBlock.blockID;
    FurnaceRecipes.smelting().addSmelting(stoneID, 2, new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 1, 0), 0.0001F);
    FurnaceRecipes.smelting().addSmelting(stoneID, 3, new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 1, 1), 0.0001F);
    /**
		 * Cobble:
		 **/
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 8, 2), new Object[] { "SSS", "SDS", "SSS", 'S', Block.cobblestone, 'D', new ItemStack(Item.dyePowder, 1, 0) });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 8, 3), new Object[] { "SSS", "SDS", "SSS", 'S', Block.cobblestone, 'D', Item.sugar });
    // meta-sensitive optional override in block code?
    /**
		 * Large brick:
		 **/
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 8, 4), new Object[] { "SSS", "SDS", "SSS", 'S', Block.stoneBrick, 'D', new ItemStack(Item.dyePowder, 1, 0) });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 8, 5), new Object[] { "SSS", "SDS", "SSS", 'S', Block.stoneBrick, 'D', Item.sugar });
    // smooth->large brick
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 4, 4), new Object[] { "SS", "SS", 'S', new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 1, 0) });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 4, 5), new Object[] { "SS", "SS", 'S', new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 1, 1) });
    /**
		 * Small brick:
		 **/
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 8, 6), new Object[] { "SSS", "SDS", "SSS", 'S', Block.brick, 'D', new ItemStack(Item.dyePowder, 1, 0) });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 8, 7), new Object[] { "SSS", "SDS", "SSS", 'S', Block.brick, 'D', Item.sugar });
    // large brick->small brick
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 4, 6), new Object[] { "SS", "SS", 'S', new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 1, 4) });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 4, 7), new Object[] { "SS", "SS", 'S', new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 1, 5) });
    /**
		 * Gravel:
		 **/
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 8, 8), new Object[] { "SSS", "SDS", "SSS", 'S', Block.gravel, 'D', new ItemStack(Item.dyePowder, 1, 0) });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 8, 9), new Object[] { "SSS", "SDS", "SSS", 'S', Block.gravel, 'D', Item.sugar });
    // FZ grinder?
    /**
		 * Paved:
		 **/
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 4, 10), new Object[] { "SSS", "SDS", "SSS", 'S', new ItemStack(Block.stoneSingleSlab, 1, 0), 'D', new ItemStack(Item.dyePowder, 1, 0) });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 4, 11), new Object[] { "SSS", "SDS", "SSS", 'S', new ItemStack(Block.stoneSingleSlab, 1, 0), 'D', Item.sugar });
    // smooth->paved
    GameRegistry.addShapelessRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 1, 10), new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 1, 0));
    GameRegistry.addShapelessRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 1, 11), new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 1, 1));
    // paved->smooth
    GameRegistry.addShapelessRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 1, 0), new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 1, 10));
    GameRegistry.addShapelessRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 1, 1), new ItemStack(MineFactoryReloadedCore.factoryDecorativeStoneBlock, 1, 11));
    // TODO: add white/black sand?
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeBrickBlock, 1, 12), new Object[] { "MMM", "MMM", "MMM", 'M', MineFactoryReloadedCore.meatIngotRawItem });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.factoryDecorativeBrickBlock, 1, 13), new Object[] { "MMM", "MMM", "MMM", 'M', MineFactoryReloadedCore.meatIngotCookedItem });
    GameRegistry.addShapelessRecipe(new ItemStack(MineFactoryReloadedCore.meatIngotRawItem, 9), new Object[] { new ItemStack(MineFactoryReloadedCore.factoryDecorativeBrickBlock, 1, 12) });
    GameRegistry.addShapelessRecipe(new ItemStack(MineFactoryReloadedCore.meatIngotCookedItem, 9), new Object[] { new ItemStack(MineFactoryReloadedCore.factoryDecorativeBrickBlock, 1, 13) });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.meatIngotRawItem), new Object[] { "MMM", "MMM", "MMM", 'M', MineFactoryReloadedCore.meatNuggetRawItem });
    GameRegistry.addRecipe(new ItemStack(MineFactoryReloadedCore.meatIngotCookedItem), new Object[] { "MMM", "MMM", "MMM", 'M', MineFactoryReloadedCore.meatNuggetCookedItem });
    GameRegistry.addShapelessRecipe(new ItemStack(MineFactoryReloadedCore.meatNuggetRawItem, 9), new Object[] { new ItemStack(MineFactoryReloadedCore.meatIngotRawItem) });
    GameRegistry.addShapelessRecipe(new ItemStack(MineFactoryReloadedCore.meatNuggetCookedItem, 9), new Object[] { new ItemStack(MineFactoryReloadedCore.meatIngotCookedItem) });
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Aggregations

ShapedOreRecipe (net.minecraftforge.oredict.ShapedOreRecipe)72 ItemStack (net.minecraft.item.ItemStack)62 ShapelessOreRecipe (net.minecraftforge.oredict.ShapelessOreRecipe)19 IRecipe (net.minecraft.item.crafting.IRecipe)7 ArrayList (java.util.ArrayList)5 Item (net.minecraft.item.Item)5 ShapedRecipes (net.minecraft.item.crafting.ShapedRecipes)5 ResourceLocation (net.minecraft.util.ResourceLocation)5 List (java.util.List)4 Block (net.minecraft.block.Block)4 ShapelessRecipes (net.minecraft.item.crafting.ShapelessRecipes)3 Book (amerifrance.guideapi.api.impl.Book)2 CategoryAbstract (amerifrance.guideapi.api.impl.abstraction.CategoryAbstract)2 CategoryItemStack (amerifrance.guideapi.category.CategoryItemStack)2 EntryItemStack (amerifrance.guideapi.entry.EntryItemStack)2 PageFurnaceRecipe (amerifrance.guideapi.page.PageFurnaceRecipe)2 PageIRecipe (amerifrance.guideapi.page.PageIRecipe)2 PageText (amerifrance.guideapi.page.PageText)2 EnumDyeColor (net.minecraft.item.EnumDyeColor)2 SpellRecipeItemsEvent (am2.api.events.SpellRecipeItemsEvent)1