Examples of ShapedOreRecipe


Examples of net.minecraftforge.oredict.ShapedOreRecipe

    //powered light
    ItemStack poweredLamp = new ItemStack(EnderIO.blockElectricLight, 1, 0);
    ItemStack glowstone = new ItemStack(Items.glowstone_dust);
    if(Config.useHardRecipes) {
      GameRegistry.addRecipe(new ShapedOreRecipe(poweredLamp, "ggg", "sds", "scs", 'g', fusedQuartz, 'd', glowstone, 's', "itemSilicon", 'c', capacitor));
    } else {
      GameRegistry.addRecipe(new ShapedOreRecipe(poweredLamp, "ggg", "sds", "scs", 'g', "glass", 'd', glowstone, 's', "itemSilicon", 'c', capacitor));
    }
    ItemStack invPoweredLamp = new ItemStack(EnderIO.blockElectricLight, 1, 1);
    GameRegistry.addShapelessRecipe(invPoweredLamp, poweredLamp, Blocks.redstone_torch);
    GameRegistry.addShapelessRecipe(poweredLamp, invPoweredLamp, Blocks.redstone_torch);

    //light
    ItemStack lamp = new ItemStack(EnderIO.blockElectricLight, 1, 2);
    GameRegistry.addRecipe(new ShapedOreRecipe(lamp, "   ", "ggg", "isi", 'g', "glass", 's', Blocks.glowstone, 'i', Items.iron_ingot));
    ItemStack invLamp = new ItemStack(EnderIO.blockElectricLight, 1, 3);
    GameRegistry.addShapelessRecipe(invLamp, lamp, Blocks.redstone_torch);
    GameRegistry.addShapelessRecipe(lamp, invLamp, Blocks.redstone_torch);

    //MJ Reader
    ItemStack mJReader = new ItemStack(EnderIO.itemConduitProbe, 1, 0);
    ItemStack electricalSteel = new ItemStack(EnderIO.itemAlloy, 1, Alloy.ELECTRICAL_STEEL.ordinal());
    ItemStack powerConduit = new ItemStack(EnderIO.itemPowerConduit, 1, 0);
    ItemStack redstoneConduit = new ItemStack(EnderIO.itemRedstoneConduit, 1, 2);

    GameRegistry.addRecipe(new ShapedOreRecipe(mJReader, "epe", "gcg", "srs", 'p', powerConduit, 'r', redstoneConduit, 'c', Items.comparator, 'g',
        Blocks.glass_pane, 's', "itemSilicon", 'e',
        electricalSteel));

    //Slice'N'Splice
    ItemStack soularium = new ItemStack(EnderIO.itemAlloy, 1, Alloy.SOULARIUM.ordinal());
    ItemStack sns = new ItemStack(EnderIO.blockSliceAndSplice);
    GameRegistry.addRecipe(new ShapedOreRecipe(sns, "iki", "ams", "iii", 'i', soularium, 'm', machineChassi, 'k', "itemSkull", 'a', Items.iron_axe, 's',
        Items.shears));

  }
View Full Code Here

Examples of net.minecraftforge.oredict.ShapedOreRecipe

  }
 
  public static void addOreDictionaryRecipes() {
    ItemStack darkSteel = new ItemStack(EnderIO.itemAlloy, 1, Alloy.DARK_STEEL.ordinal());
    GameRegistry.addRecipe(new ShapedOreRecipe(EnderIO.itemDarkSteelSword.createItemStack()" s ", " s ", " w ", 's', darkSteel, 'w', "stickWood"));
    GameRegistry.addRecipe(new ShapedOreRecipe(EnderIO.itemDarkSteelSword.createItemStack()" s ", " s ", " w ", 's', darkSteel, 'w', "woodStick"));
    GameRegistry.addRecipe(new ShapedOreRecipe(EnderIO.itemDarkSteelPickaxe.createItemStack(), "sss", " w ", " w ", 's', darkSteel, 'w', "stickWood"));
    GameRegistry.addRecipe(new ShapedOreRecipe(EnderIO.itemDarkSteelPickaxe.createItemStack(), "sss", " w ", " w ", 's', darkSteel, 'w', "woodStick"));
    GameRegistry.addRecipe(new ShapedOreRecipe(EnderIO.itemDarkSteelAxe.createItemStack(), "ss ", "sw ", " w ", 's', darkSteel, 'w', "woodStick"));
    GameRegistry.addRecipe(new ShapedOreRecipe(EnderIO.itemDarkSteelAxe.createItemStack(), "ss ", "sw ", " w ", 's', darkSteel, 'w', "stickWood"));
  }
View Full Code Here

Examples of net.minecraftforge.oredict.ShapedOreRecipe

        'g', Item.goldNugget
    );

    // Chip Case
    ItemStack chip = new ItemStack( itemRecipeBlank );
    GameRegistry.addRecipe( new ShapedOreRecipe( itemChipCase,
        new String[] { "cgc", "c c", "wCw" },
        'c', chip,
        'g', Block.thinGlass,
        'w', "plankWood",
        'C', Block.chest
View Full Code Here

Examples of net.minecraftforge.oredict.ShapedOreRecipe

    //Dark Iron Bars
    ItemStack diBars = new ItemStack(EnderIO.blockDarkIronBars, 16, 0);
    GameRegistry.addShapedRecipe(diBars, "ddd", "ddd", 'd', darkSteel);

    // 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"));

    // Machine Chassi

    ArrayList<ItemStack> steelIngots = OreDictionary.getOres("ingotSteel");

    if(Config.useSteelInChassi == true && steelIngots != null && !steelIngots.isEmpty()) {
      GameRegistry.addRecipe(new ShapedOreRecipe(machineChassi, "fif", "ici", "fif", 'f', Blocks.iron_bars, 'i', "ingotSteel", 'c', capacitor));
    } else {
      GameRegistry.addShapedRecipe(machineChassi, "fif", "ici", "fif", 'f', Blocks.iron_bars, 'i', Items.iron_ingot, 'c', capacitor);
    }

    // Basic Gear
    GameRegistry.addRecipe(new ShapedOreRecipe(basicGear, "scs", "c c", "scs", 's', "stickWood", 'c', Blocks.cobblestone));
    GameRegistry.addRecipe(new ShapedOreRecipe(basicGear, "scs", "c c", "scs", 's', "woodStick", 'c', Blocks.cobblestone));

    //Ender Capacitor
    ItemStack enderCapacitor = new ItemStack(EnderIO.itemBasicCapacitor, 1, 2);
    ItemStack activatedCapacitor = new ItemStack(EnderIO.itemBasicCapacitor, 1, 1);
    if(Config.useHardRecipes) {
      GameRegistry.addShapedRecipe(enderCapacitor, "eee", "cgc", "eee", 'e', phasedGold, 'c', activatedCapacitor, 'g', Blocks.glowstone);
    } else {
      GameRegistry.addShapedRecipe(enderCapacitor, " e ", "cgc", " e ", 'e', phasedGold, 'c', activatedCapacitor, 'g', Blocks.glowstone);
    }

    if(Config.reinforcedObsidianEnabled) {
      ItemStack reinfObs = new ItemStack(EnderIO.blockReinforcedObsidian);
      ItemStack corners = darkSteel;
      if(Config.reinforcedObsidianUseDarkSteelBlocks) {
        corners = new ItemStack(EnderIO.blockIngotStorage, 1, Alloy.DARK_STEEL.ordinal());
      }
      GameRegistry.addShapedRecipe(reinfObs , "dbd", "bob", "dbd", 'd', corners, 'b', EnderIO.blockDarkIronBars, 'o', Blocks.obsidian);
    }
   
    GameRegistry.addRecipe(new ShapedOreRecipe(EnderIO.blockDarkSteelAnvil,
      "bbb",
      " i ",
      "iii",
     
      'b', "blockDarkSteel",
      'i', "ingotDarkSteel"
    ));

    for (Alloy alloy : Alloy.values()) {
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(EnderIO.blockIngotStorage, 1, alloy.ordinal()), "iii", "iii", "iii", 'i', alloy.oredictIngotName));
      GameRegistry.addShapelessRecipe(new ItemStack(EnderIO.itemAlloy, 9, alloy.ordinal()), new ItemStack(EnderIO.blockIngotStorage, 1, alloy.ordinal()));
    }
  }
View Full Code Here

Examples of net.minecraftforge.oredict.ShapedOreRecipe

      gold = Items.gold_ingot;
    } else {
      gold = Items.gold_nugget;
    }
    if(copperIngots != null && !copperIngots.isEmpty() && Config.useModMetals) {
      GameRegistry.addRecipe(new ShapedOreRecipe(capacitor, " gr", "gcg", "rg ", 'r', Items.redstone, 'g', gold, 'c', "ingotCopper"));
    } else {
      GameRegistry.
          addShapedRecipe(capacitor, " gr", "gig", "rg ", 'r', Items.redstone, 'g', gold, 'i', Items.iron_ingot);
    }

    int dustCoal = OreDictionary.getOreID("dustCoal");
    ItemStack activatedCapacitor = new ItemStack(EnderIO.itemBasicCapacitor, 1, 1);
    ItemStack energeticAlloy = new ItemStack(EnderIO.itemAlloy, 1, Alloy.ENERGETIC_ALLOY.ordinal());
    if(Config.useHardRecipes) {
      GameRegistry.addRecipe(new ShapedOreRecipe(activatedCapacitor, "eee", "cCc", "eee", 'e', energeticAlloy, 'c', capacitor, 'C', "dustCoal"));
    } else {
      GameRegistry.addRecipe(new ShapedOreRecipe(activatedCapacitor, " e ", "cCc", " e ", 'e', energeticAlloy, 'c', capacitor, 'C', "dustCoal"));
    }
  }
View Full Code Here

Examples of net.minecraftforge.oredict.ShapedOreRecipe

    //Filter Recipes
    ItemStack basicFilter = new ItemStack(EnderIO.itemBasicFilterUpgrade, 1, 0);
    GameRegistry.addShapedRecipe(basicFilter, " p ", "php", " p ", 'p', Items.paper, 'h', Blocks.hopper);

    ItemStack advFilter = new ItemStack(EnderIO.itemBasicFilterUpgrade, 1, 1);
    GameRegistry.addRecipe(new ShapedOreRecipe(advFilter, "rpr", "pzp", "rpr", 'p', Items.paper, 'z', zombieController, 'r', Items.redstone));

    ItemStack modFilter = new ItemStack(EnderIO.itemModItemFilter, 1, 0);
    GameRegistry.addShapedRecipe(modFilter, " p ", "pwp", " p ", 'p', Items.paper, 'w', EnderIO.itemYetaWench);

    ItemStack exFilt = new ItemStack(EnderIO.itemExistingItemFilter);
View Full Code Here

Examples of net.minecraftforge.oredict.ShapedOreRecipe

  {
    Settings.configuration.load();

    // -- General Items --
    // Focus Matrix
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemFocusMatix, 8), "RMR", "MDM", "RMR", 'M', UniversalRecipe.PRIMARY_METAL.get(), 'D', Item.diamond, 'R', Item.redstone));

    // Remote Controller
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemRemoteController), "WWW", "MCM", "MCM", 'W', UniversalRecipe.WIRE.get(), 'C', UniversalRecipe.BATTERY.get(), 'M', UniversalRecipe.PRIMARY_METAL.get()));

    // -- Machines --
    // Coercion Deriver
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(blockCoercionDeriver), "FMF", "FCF", "FMF", 'C', UniversalRecipe.BATTERY.get(), 'M', UniversalRecipe.PRIMARY_METAL.get(), 'F', itemFocusMatix));
    // Fortron Capacitor
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(blockFortronCapacitor), "MFM", "FCF", "MFM", 'D', Item.diamond, 'C', UniversalRecipe.BATTERY.get(), 'F', itemFocusMatix, 'M', UniversalRecipe.PRIMARY_METAL.get()));
    // Force Field Projector
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(blockForceFieldProjector), " D ", "FFF", "MCM", 'D', Item.diamond, 'C', UniversalRecipe.BATTERY.get(), 'F', itemFocusMatix, 'M', UniversalRecipe.PRIMARY_METAL.get()));
    // Biometric Identifier
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(blockBiometricIdentifier), "FMF", "MCM", "FMF", 'C', itemCardBlank, 'M', UniversalRecipe.PRIMARY_METAL.get(), 'F', itemFocusMatix));
    // Interdiction Matrix
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(blockInterdictionMatrix), "SSS", "FFF", "FEF", 'S', itemModuleShock, 'E', Block.enderChest, 'F', itemFocusMatix));
    // Force Manipulator
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(blockForceManipulator), "FCF", "TMT", "FCF", 'F', itemFocusMatix, 'C', UniversalRecipe.MOTOR.get(), 'T', itemModuleTranslate, 'M', UniversalRecipe.MOTOR.get()));

    // -- Cards --
    // Blank
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemCardBlank), "PPP", "PMP", "PPP", 'P', Item.paper, 'M', UniversalRecipe.PRIMARY_METAL.get()));
    // Link
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemCardLink), "BWB", 'B', itemCardBlank, 'W', UniversalRecipe.WIRE.get()));
    // Frequency
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemCardFrequency), "WBW", 'B', itemCardBlank, 'W', UniversalRecipe.WIRE.get()));
    // ID
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemCardID), "R R", " B ", "R R", 'B', itemCardBlank, 'R', Item.redstone));

    // -- Modes --
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModeSphere), " F ", "FFF", " F ", 'F', itemFocusMatix));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModeCube), "FFF", "FFF", "FFF", 'F', itemFocusMatix));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModeTube), "FFF", "   ", "FFF", 'F', itemFocusMatix));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModePyramid), "F  ", "FF ", "FFF", 'F', itemFocusMatix));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModeCylinder), "S", "S", "S", 'S', itemModeSphere));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModeCustom), " C ", "TFP", " S ", 'S', itemModeSphere, 'C', itemModeCube, 'T', itemModeTube, 'P', itemModePyramid, 'F', itemFocusMatix));
    GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(itemModeCustom), new ItemStack(itemModeCustom)));

    // -- Modules --
    // -- -- General -- --
    // Speed
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleSpeed, 1), "FFF", "RRR", "FFF", 'F', itemFocusMatix, 'R', Item.redstone));
    // Capacity
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleCapacity, 2), "FCF", 'F', itemFocusMatix, 'C', UniversalRecipe.BATTERY.get()));
    // Shock
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleShock), "FWF", 'F', itemFocusMatix, 'W', UniversalRecipe.WIRE.get()));
    // Sponge
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleSponge), "BBB", "BFB", "BBB", 'F', itemFocusMatix, 'B', Item.bucketWater));
    // Disintegration
    RecipeUtility.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleDisintegration), " W ", "FBF", " W ", 'F', itemFocusMatix, 'W', UniversalRecipe.WIRE.get(), 'B', UniversalRecipe.BATTERY.get()), Settings.configuration, true);
    // Manipulator
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleDome), "F", " ", "F", 'F', itemFocusMatix));
    // Camouflage
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleCamouflage), "WFW", "FWF", "WFW", 'F', itemFocusMatix, 'W', new ItemStack(Block.cloth, 1, OreDictionary.WILDCARD_VALUE)));
    // Fusion
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleFusion), "FJF", 'F', itemFocusMatix, 'J', itemModuleShock));
    // Scale
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleScale, 2), "FRF", 'F', itemFocusMatix));
    // Translate
    RecipeUtility.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleTranslate, 2), "FSF", 'F', itemFocusMatix, 'S', itemModuleScale), Settings.configuration, true);
    // Rotate
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleRotate, 4), "F  ", " F ", "  F", 'F', itemFocusMatix));
    // Glow
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleGlow, 4), "GGG", "GFG", "GGG", 'F', itemFocusMatix, 'G', Block.glowStone));
    // Stabilizer
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleStablize), "FDF", "PSA", "FDF", 'F', itemFocusMatix, 'P', Item.pickaxeDiamond, 'S', Item.shovelDiamond, 'A', Item.axeDiamond, 'D', Item.diamond));
    // Collection
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleCollection), "F F", " H ", "F F", 'F', itemFocusMatix, 'H', Block.hopperBlock));
    // Invert
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleInvert), "L", "F", "L", 'F', itemFocusMatix, 'L', Block.blockLapis));
    // Silence
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleSilence), " N ", "NFN", " N ", 'F', itemFocusMatix, 'N', Block.music));
    // Approximation
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleApproximation), " N ", "NFN", " N ", 'F', itemFocusMatix, 'N', Item.axeGold));
    // Array
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleArray), " F ", "DFD", " F ", 'F', itemFocusMatix, 'D', Item.diamond));
    // Repulsion
    RecipeUtility.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleRepulsion), "FFF", "DFD", "SFS", 'F', itemFocusMatix, 'D', Item.diamond, 'S', Item.slimeBall), Settings.configuration, true);

    // -- -- Interdiction Matrix -- --
    // Anti-Hostile
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleAntiHostile), " R ", "GFB", " S ", 'F', itemFocusMatix, 'G', Item.gunpowder, 'R', Item.rottenFlesh, 'B', Item.bone, 'S', Item.ghastTear));
    // Anti-Friendly
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleAntiFriendly), " R ", "GFB", " S ", 'F', itemFocusMatix, 'G', Item.porkCooked, 'R', new ItemStack(Block.cloth, 1, OreDictionary.WILDCARD_VALUE), 'B', Item.leather, 'S', Item.slimeBall));
    // Anti-Personnel
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleAntiPersonnel), "BFG", 'F', itemFocusMatix, 'B', itemModuleAntiHostile, 'G', itemModuleAntiFriendly));
    // Confiscate
    RecipeUtility.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleConfiscate), "PEP", "EFE", "PEP", 'F', itemFocusMatix, 'E', Item.eyeOfEnder, 'P', Item.enderPearl), Settings.configuration, true);
    // Warn
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleWarn), "NFN", 'F', itemFocusMatix, 'N', Block.music));
    // Block Access
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleBlockAccess), " C ", "BFB", " C ", 'F', itemFocusMatix, 'B', Block.blockIron, 'C', Block.chest));
    // Block Alter
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleBlockAlter), " G ", "GFG", " G ", 'F', itemModuleBlockAccess, 'G', Block.blockGold));
    // Anti-Spawn
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemModuleAntiSpawn), " H ", "G G", " H ", 'H', itemModuleAntiHostile, 'G', itemModuleAntiFriendly));

    proxy.init();

    try
    {
View Full Code Here

Examples of net.minecraftforge.oredict.ShapedOreRecipe

        blockMetal.registerIngotRecipes(ingotGeneric);
      }
     
      if(blockMetal != null) {
        // Ludicrite block. Because.
        GameRegistry.addRecipe(new ShapedOreRecipe(blockMetal.getItemStackForMaterial("Ludicrite"), "BPB", "ENE", "BPB", 'N', Items.nether_star, 'P', Items.ender_pearl, 'E', Blocks.emerald_block, 'B', blutoniumIngot));
        if(ItemHelper.getOre("blockEnderium") != null) {
          // Ok, how about some ludicrous shit here. Enderium and blaze rods. Have fun, bucko.
          GameRegistry.addRecipe(new ShapedOreRecipe(blockMetal.getItemStackForMaterial("Ludicrite"), "BRB", "E E", "BRB", 'B', blutoniumIngot, 'R', Items.blaze_rod, 'E', "blockEnderium"));
        }
      }

      if(ingotGeneric != null) {
        // Map all dusts to ingots.
        for(int i = 0; i < ItemIngot.MATERIALS.length; i++) {
          ItemStack ingotStack = ingotGeneric.getIngotItem(ItemIngot.MATERIALS[i]);
          ItemStack dustStack = ingotGeneric.getDustItem(ItemIngot.MATERIALS[i]);
          GameRegistry.addSmelting(dustStack, ingotStack, 0f);
        }
      }
     
      ItemStack ingotGraphite = OreDictionaryArbiter.getOres("ingotGraphite").get(0).copy();
      ItemStack ingotCyanite = OreDictionaryArbiter.getOres("ingotCyanite").get(0).copy();
     
      if(registerCoalFurnaceRecipe) {
        // Coal -> Graphite
        GameRegistry.addSmelting(Items.coal, ingotGraphite, 1);
      }
     
      if(registerCharcoalFurnaceRecipe) {
        // Charcoal -> Graphite
        GameRegistry.addSmelting(new ItemStack(Items.coal, 1, 1), ingotGraphite, 1);
      }
     
      if(registerCoalCraftingRecipe) {
        GameRegistry.addRecipe(new ShapedOreRecipe(ingotGraphite, "GCG", 'G', Blocks.gravel, 'C', new ItemStack(Items.coal, 1, 0)));
      }
     
      if(registerCharcoalCraftingRecipe) {
        GameRegistry.addRecipe(new ShapedOreRecipe( ingotGraphite, "GCG", 'G', Blocks.gravel, 'C', new ItemStack(Items.coal, 1, 1)));
      }
     
      if(enableCyaniteFromYelloriumRecipe) {
        GameRegistry.addRecipe(new ShapelessOreRecipe(ingotCyanite, yelloriumIngot, Blocks.sand ));
      }

      // Basic Parts: Reactor Casing, Fuel Rods
      if(blockYelloriumFuelRod != null) {
        GameRegistry.addRecipe(new ShapedOreRecipe( new ItemStack(blockYelloriumFuelRod, 1), "ICI", "IUI", "ICI", 'I', ironOrSteelIngot, 'C', "ingotGraphite", 'U', yelloriumIngot));
      }

      if(blockReactorPart != null) {
        ItemStack reactorPartStack = BigReactors.blockReactorPart.getReactorCasingItemStack();
        reactorPartStack.stackSize = 4;
        GameRegistry.addRecipe(new ShapedOreRecipe(reactorPartStack, "ICI", "CUC", "ICI", 'I', ironOrSteelIngot, 'C', "ingotGraphite", 'U', yelloriumIngot));
      }
     
      // Advanced Parts: Control Rod, Access Port, Power Tap, Controller
      if(blockReactorPart != null) {
        ItemStack reactorPartStack = BigReactors.blockReactorPart.getReactorControllerItemStack();
       
        GameRegistry.addRecipe(new ShapedOreRecipe(reactorPartStack, "C C", "GDG", "CRC", 'D', Items.diamond, 'G', yelloriumIngot, 'C', "reactorCasing", 'R', Items.redstone));

        if(enableReactorPowerTapRecipe) {
          reactorPartStack = BigReactors.blockReactorPart.getReactorPowerTapItemStack();
          GameRegistry.addRecipe(new ShapedOreRecipe(reactorPartStack, "CRC", "R R", "CRC", 'C', "reactorCasing", 'R', Items.redstone));
        }

        reactorPartStack = BigReactors.blockReactorPart.getAccessPortItemStack();
        GameRegistry.addRecipe(new ShapedOreRecipe(reactorPartStack, "C C", " V ", "CPC", 'C', "reactorCasing", 'V', Blocks.chest, 'P', Blocks.piston));

        reactorPartStack = BigReactors.blockReactorPart.getCoolantPortItemStack();
        GameRegistry.addRecipe(new ShapedOreRecipe(reactorPartStack, "C C", "IVI", "CPC", 'C', "reactorCasing", 'V', Items.bucket, 'P', Blocks.piston, 'I', ironOrSteelIngot));
       
        reactorPartStack = BigReactors.blockReactorPart.getControlRodItemStack();
        GameRegistry.addRecipe(new ShapedOreRecipe(reactorPartStack, "CGC", "GRG", "CUC", 'G', "ingotGraphite", 'C', "reactorCasing", 'R', Items.redstone, 'U', yelloriumIngot));
       
        if(Loader.isModLoaded("MineFactoryReloaded")) {
          reactorPartStack = BigReactors.blockReactorPart.getRedNetPortItemStack();
          GameRegistry.addRecipe(new ShapedOreRecipe(reactorPartStack, "CRC", "RGR", "CRC", 'C', "reactorCasing", 'R', "cableRedNet", 'G', "ingotGold"));
        }
       
        if(Loader.isModLoaded("ComputerCraft") || Loader.isModLoaded("OpenComputers")) {
          reactorPartStack = BigReactors.blockReactorPart.getComputerPortItemStack();
          GameRegistry.addRecipe(new ShapedOreRecipe(reactorPartStack, "CRC", "GPG", "CRC", 'C', "reactorCasing", 'R', Items.redstone, 'G', "ingotGold", 'P', Items.repeater));
        }
      }
     
      if(blockMultiblockGlass != null) {
        ItemStack reactorGlassStack = blockMultiblockGlass.getItemStack("reactor");
        ItemStack turbineGlassStack = blockMultiblockGlass.getItemStack("turbine");
       
        if(useExpensiveGlass && (ItemHelper.oreNameExists("glassReinforced") || ItemHelper.oreNameExists("blockGlassHardened"))) {
          GameRegistry.addRecipe(new ShapedOreRecipe(reactorGlassStack, "GCG", 'G', "glassReinforced", 'C', "reactorCasing"));
          GameRegistry.addRecipe(new ShapedOreRecipe(reactorGlassStack, "GCG", 'G', "blockGlassHardened", 'C', "reactorCasing"));
         
          GameRegistry.addRecipe(new ShapedOreRecipe(turbineGlassStack, "GCG", 'G', "glassReinforced", 'C', "turbineHousing"));
          GameRegistry.addRecipe(new ShapedOreRecipe(turbineGlassStack, "GCG", 'G', "blockGlassHardened", 'C', "turbineHousing"));
        }
        else {
          GameRegistry.addRecipe(new ShapedOreRecipe(reactorGlassStack, "GCG", 'G', "blockGlassColorless", 'C', "reactorCasing"));
          GameRegistry.addRecipe(new ShapedOreRecipe(turbineGlassStack, "GCG", 'G', "blockGlassColorless", 'C', "turbineHousing"));
        }
      }
     
      if(blockDevice != null) {
        ItemStack cyaniteReprocessorStack = ((BlockBRDevice)blockDevice).getCyaniteReprocessorItemStack();
        GameRegistry.addRecipe(new ShapedOreRecipe(cyaniteReprocessorStack, "CIC", "PFP", "CRC", 'C', "reactorCasing", 'I', ironOrSteelIngot, 'F', blockYelloriumFuelRod, 'P', Blocks.piston, 'R', Items.redstone));
      }
     
      if(blockReactorRedstonePort != null) {
        ItemStack redstonePortStack = new ItemStack(BigReactors.blockReactorRedstonePort, 1);
        GameRegistry.addRecipe(new ShapedOreRecipe(redstonePortStack, "CRC", "RGR", "CRC", 'C', "reactorCasing", 'R', Items.redstone, 'G', Items.gold_ingot));
      }
     
      if(blockTurbinePart != null) {
        ItemStack turbineHousing = blockTurbinePart.getItemStack("housing");
        ItemStack turbineController = blockTurbinePart.getItemStack("controller");
        ItemStack turbinePowerTap = blockTurbinePart.getItemStack("powerTap");
        ItemStack turbineFluidPort = blockTurbinePart.getItemStack("fluidPort");
        ItemStack turbineBearing = blockTurbinePart.getItemStack("bearing");

        turbineHousing.stackSize = 4;
        GameRegistry.addRecipe(new ShapedOreRecipe(turbineHousing, "IGI", "QCQ", "IGI", 'C', "ingotCyanite", 'I', ironOrSteelIngot, 'Q', Items.quartz, 'G', "ingotGraphite"));
        GameRegistry.addRecipe(new ShapedOreRecipe(turbineController, "H H", "BDB", "H H", 'H', "turbineHousing", 'D', Items.diamond, 'B', blutoniumIngot));
        GameRegistry.addRecipe(new ShapedOreRecipe(turbinePowerTap, "HRH", "R R", "HRH", 'H', "turbineHousing", 'R', Items.redstone));
        GameRegistry.addRecipe(new ShapedOreRecipe(turbineFluidPort, "H H", "IVI", "HPH", 'H', "turbineHousing", 'I', ironOrSteelIngot, 'V', Items.bucket, 'P', Blocks.piston));
        GameRegistry.addRecipe(new ShapedOreRecipe(turbineBearing, "HRH", "DDD", "HRH", 'H', "turbineHousing", 'D', Items.diamond, 'R', "turbineRotorShaft"));

        if(Loader.isModLoaded("ComputerCraft") || Loader.isModLoaded("OpenComputers")) {
          ItemStack turbineComputerPort = blockTurbinePart.getItemStack("computerPort");
          GameRegistry.addRecipe(new ShapedOreRecipe(turbineComputerPort, "HRH", "GPG", "HRH", 'H', "turbineHousing", 'G', "ingotGold", 'R', "turbineRotorShaft"));
         
        }
      }
     
      if(blockTurbineRotorPart != null) {
        ItemStack rotorShaft = blockTurbineRotorPart.getItemStack("rotor");
        ItemStack rotorBlade = blockTurbineRotorPart.getItemStack("blade");

        GameRegistry.addRecipe(new ShapedOreRecipe(rotorShaft, "ICI", 'C', "ingotCyanite", 'I', ironOrSteelIngot));
        GameRegistry.addRecipe(new ShapedOreRecipe(rotorBlade, "CII", 'C', "ingotCyanite", 'I', ironOrSteelIngot));
      }
     
      registerGameBalanceData();
    }
View Full Code Here

Examples of net.minecraftforge.oredict.ShapedOreRecipe

      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",
View Full Code Here

Examples of net.minecraftforge.oredict.ShapedOreRecipe

    }
    try
    {
      ItemStack insulatedGoldCableItem = Items.getItem("insulatedGoldCableItem");
     
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 0), new Object[]
          {
        "III",
        "PPP",
        "RGR",
        'I', "dyeBlue",
        'P', "dustPlastic",
        'R', insulatedGoldCableItem,
        'G', "craftingCircuitTier02",
          } ));
     
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 1), new Object[]
          {
        "III",
        "PPP",
        "RGR",
        'I', Item.ingotIron,
        'P', "dustPlastic",
        'R', insulatedGoldCableItem,
        'G', "craftingCircuitTier02",
          } ));
     
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 2), new Object[]
          {
        "III",
        "PPP",
        "RGR",
        'I', "ingotTin",
        'P', "dustPlastic",
        'R', insulatedGoldCableItem,
        'G', "craftingCircuitTier02",
          } ));
     
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 3), new Object[]
          {
        "III",
        "PPP",
        "RGR",
        'I', "ingotCopper",
        'P', "dustPlastic",
        'R', insulatedGoldCableItem,
        'G', "craftingCircuitTier04",
          } ));
     
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 4), new Object[]
          {
        "III",
        "PPP",
        "RGR",
        'I', "ingotBronze",
        'P', "dustPlastic",
        'R', insulatedGoldCableItem,
        'G', "craftingCircuitTier04",
          } ));
     
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 5), new Object[]
          {
        "III",
        "PPP",
        "RGR",
        'I', "ingotSilver",
        'P', "dustPlastic",
        'R', insulatedGoldCableItem,
        'G', "craftingCircuitTier04",
          } ));
     
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 6), new Object[]
          {
        "III",
        "PPP",
        "RGR",
        'I', "ingotGold",
        'P', "dustPlastic",
        'R', insulatedGoldCableItem,
        'G', "craftingCircuitTier04",
          } ));
     
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 7), new Object[]
          {
        "III",
        "PPP",
        "RGR",
        'I', Item.netherQuartz,
        'P', "dustPlastic",
        'R', insulatedGoldCableItem,
        'G', "craftingCircuitTier06",
          } ));
     
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 8), new Object[]
          {
        "III",
        "PPP",
        "RGR",
        'I', "gemDiamond",
        'P', "dustPlastic",
        'R', insulatedGoldCableItem,
        'G', "craftingCircuitTier06",
          } ));
     
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 9), new Object[]
          {
        "III",
        "PPP",
        "RGR",
        'I', "ingotPlatinum",
        'P', "dustPlastic",
        'R', insulatedGoldCableItem,
        'G', "craftingCircuitTier06",
          } ));
     
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 10), new Object[]
          {
        "III",
        "PPP",
        "RGR",
        'I', Item.emerald,
        'P', "dustPlastic",
        'R', insulatedGoldCableItem,
        'G', "craftingCircuitTier06",
          } ));
     
      for(int i = 0; i < 16; i++)
      {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.laserFocusItem, 1, i), new Object[]
            {
          "ENE",
          "NGN",
          "ENE",
          'E', Item.emerald,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.