Java Code Examples for cpw.mods.fml.common.registry.GameRegistry#addRecipe()
The following examples show how to use
cpw.mods.fml.common.registry.GameRegistry#addRecipe() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CircuitImprintLoader.java From bartworks with MIT License | 6 votes |
private static void makeAndAddCraftingRecipes(NBTTagCompound tag) { ItemStack circuit = BW_Meta_Items.getNEWCIRCUITS().getStackWithNBT(tag,0,1); Object[] imprintRecipe = { " X ", "GPG", " X ", 'P', BW_Meta_Items.getNEWCIRCUITS().getStackWithNBT(tag,1,1), 'G', WerkstoffLoader.Prasiolite.get(OrePrefixes.gemExquisite,1), 'X', BW_Meta_Items.getNEWCIRCUITS().getStack(3) }; IRecipe bwrecipe = new BWRecipes.BWNBTDependantCraftingRecipe(circuit,imprintRecipe); ShapedOreRecipe gtrecipe = BW_Util.createGTCraftingRecipe(circuit, GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.BUFFERED, imprintRecipe); //Adds the actual recipe recipeWorldCache.add(bwrecipe); GameRegistry.addRecipe(bwrecipe); //Adds the NEI visual recipe recipeWorldCache.add(gtrecipe); GameRegistry.addRecipe(gtrecipe); }
Example 2
Source File: CoFHCore.java From PneumaticCraft with GNU General Public License v3.0 | 6 votes |
@Override public void preInit(){ pneumaticDynamo = new BlockPneumaticDynamo(Material.iron).setHardness(3.0F).setResistance(10.0F).setBlockName("pneumaticDynamo"); fluxCompressor = new BlockFluxCompressor(Material.iron).setHardness(3.0F).setResistance(10.0F).setBlockName("fluxCompressor"); Blockss.registerBlock(pneumaticDynamo); Blockss.registerBlock(fluxCompressor); GameRegistry.registerTileEntity(TileEntityPneumaticDynamo.class, "PneumaticCraft_pneumaticDynamo"); GameRegistry.registerTileEntity(TileEntityFluxCompressor.class, "PneumaticCraft_fluxCompressor"); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Itemss.compressedIronGear), " i ", "isi", " i ", 'i', Names.INGOT_IRON_COMPRESSED, 's', Items.iron_ingot)); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(pneumaticDynamo), " t ", "gig", "ipi", 'i', Names.INGOT_IRON_COMPRESSED, 'g', Itemss.compressedIronGear, 't', Blockss.advancedPressureTube, 'p', Itemss.printedCircuitBoard)); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(fluxCompressor), "gcp", "frt", "gqp", 'p', Itemss.printedCircuitBoard, 'c', Itemss.compressedIronGear, 'g', Items.redstone, 't', new ItemStack(Blockss.advancedPressureTube, 1, 0), 'r', Itemss.turbineRotor, 'f', Blocks.redstone_block, 'q', Blocks.furnace)); PneumaticRegistry.getInstance().registerBlockTrackEntry(new BlockTrackEntryRF()); PneumaticRegistry.getInstance().registerCustomBlockInteractor(new DroneInteractRFExport()); PneumaticRegistry.getInstance().registerCustomBlockInteractor(new DroneInteractRFImport()); WidgetRegistrator.register(new ProgWidgetRFCondition()); WidgetRegistrator.register(new ProgWidgetDroneConditionRF()); MinecraftForge.EVENT_BUS.register(this); }
Example 3
Source File: CarvableStairsMaker.java From Chisel-2 with GNU General Public License v2.0 | 6 votes |
public void create(IStairsCreator creator, String name, Block[] blocks) { for (int i = 0; i < blocks.length; i++) { String n = name + "." + i; blocks[i] = creator == null ? new BlockCarvableStairs(blockBase, i * 2, carverHelper) : creator.create(blockBase, i * 2, carverHelper); blocks[i].setBlockName("chisel." + n).setCreativeTab(ChiselTabs.tabStairChiselBlocks); GameRegistry.registerBlock(blocks[i], ItemCarvable.class, n); for (int meta = 0; meta < 2 && i * 2 + meta < carverHelper.infoList.size(); meta++) { IVariationInfo info = carverHelper.infoList.get(i * 2 + meta); carverHelper.registerVariation(name, info); GameRegistry.addRecipe(new ItemStack(blocks[i], 4, meta * 8), "* ", "** ", "***", '*', new ItemStack(blockBase, 1, i * 2 + meta)); } } }
Example 4
Source File: WRLogicProxy.java From WirelessRedstone with MIT License | 5 votes |
private static void addRecipies() { GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemwireless, 1, 0), "t ", "srr", "fff", 't', WirelessRedstoneCore.wirelessTransceiver, 's', "obsidianRod", 'f', new ItemStack(Blocks.stone_slab, 1, 0), 'r', Items.redstone)); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemwireless, 1, 1), "d ", "srr", "fff", 'd', WirelessRedstoneCore.recieverDish, 's', "obsidianRod", 'f', new ItemStack(Blocks.stone_slab, 1, 0), 'r', Items.redstone)); GameRegistry.addRecipe(new ItemStack(itemwireless, 1, 2), "p ", "srr", "fff", 'p', WirelessRedstoneCore.blazeTransceiver, 's', Items.blaze_rod, 'f', new ItemStack(Blocks.stone_slab, 1, 0), 'r', Items.redstone); }
Example 5
Source File: EnderStorageRecipe.java From EnderStorage with MIT License | 5 votes |
private static void addNormalRecipies() { for (int i = 0; i < 16; i++) { GameRegistry.addRecipe(new ItemStack(EnderStorage.blockEnderChest, 1, EnderStorageManager.getFreqFromColours(i, i, i)), "bWb", "OCO", "bpb", 'b', Items.blaze_rod, 'p', Items.ender_pearl, 'O', Blocks.obsidian, 'C', Blocks.chest, 'W', new ItemStack(Blocks.wool, 1, i)); GameRegistry.addRecipe(new ItemStack(EnderStorage.itemEnderPouch, 1, EnderStorageManager.getFreqFromColours(i, i, i)), "blb", "lpl", "bWb", 'b', Items.blaze_powder, 'p', Items.ender_pearl, 'l', Items.leather, 'W', new ItemStack(Blocks.wool, 1, i)); GameRegistry.addRecipe(new ItemStack(EnderStorage.blockEnderChest, 1, 1 << 12 | EnderStorageManager.getFreqFromColours(i, i, i)), "bWb", "OCO", "bpb", 'b', Items.blaze_rod, 'p', Items.ender_pearl, 'O', Blocks.obsidian, 'C', Items.cauldron, 'W', new ItemStack(Blocks.wool, 1, i)); } }
Example 6
Source File: Thaumcraft.java From PneumaticCraft with GNU General Public License v3.0 | 5 votes |
@Override public void init(){ ItemStack lapis = new ItemStack(Items.dye, 1, 4); Item shard = GameRegistry.findItem(ModIds.THAUMCRAFT, "ItemShard"); if(shard != null) { GameRegistry.addRecipe(new ItemStack(Itemss.machineUpgrade, 1, 10), "lal", "bcd", "lel", 'l', lapis, 'a', new ItemStack(shard, 1, 0), 'b', new ItemStack(shard, 1, 1), 'c', new ItemStack(shard, 1, 6), 'd', new ItemStack(shard, 1, 3), 'e', new ItemStack(shard, 1, 4)); } else { Log.error("Thaumcraft shard item couldn't be found! Registry name has changed? Thaumcraft Upgrade has no recipe!"); } }
Example 7
Source File: Registries.java From Ex-Aliquo with MIT License | 5 votes |
public static void postInitHammers() { for (AliquoHammer hammer : AliquoHammer.registeredHammers()) { AliquoMaterial am = AliquoMaterial.get(hammer.material); EnumToolMaterial toolEnum = am.getToolEnumFromRecipe(); if (toolEnum == null) { toolEnum = am.getFallbackToolEnum(); } GameRegistry.addRecipe(new ShapedOreRecipe(hammer, hammershape, 's', "stickWood", 'i', hammer.getIngotName())); hammer.setToolMaterial(toolEnum); } }
Example 8
Source File: BuildCraft.java From PneumaticCraft with GNU General Public License v3.0 | 5 votes |
@Override public void init(){ ItemStack stoneGear = PneumaticCraftUtils.getBuildcraftItemStack(EnumBuildcraftModule.CORE, "stoneGearItem"); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Itemss.compressedIronGear), " i ", "isi", " i ", 'i', Names.INGOT_IRON_COMPRESSED, 's', stoneGear)); //PneumaticRegistry.getInstance().registerFuel(FluidRegistry.getFluid("fuel"), 1500000); }
Example 9
Source File: ModRecipes.java From GardenCollection with MIT License | 5 votes |
public void init () { for (int i = 0; i < BlockThinLog.subNames.length; i++) { GameRegistry.addRecipe(new ItemStack(ModBlocks.thinLogFence, 3, i), "xyx", " y ", 'x', Items.string, 'y', new ItemStack(ModBlocks.thinLog, 1, i)); if (i / 4 == 0) { GameRegistry.addRecipe(new ItemStack(Blocks.log, 1, i % 4), "xx", "xx", 'x', new ItemStack(ModBlocks.thinLog, 1, i)); for (int j = 0; j < axeList.length; j++) GameRegistry.addRecipe(new ItemStack(ModBlocks.thinLog, 4, i), "x", "y", 'x', new ItemStack(axeList[j], 1, OreDictionary.WILDCARD_VALUE), 'y', new ItemStack(Blocks.log, 1, i % 4)); } else if (i / 4 == 1) { GameRegistry.addRecipe(new ItemStack(Blocks.log2, 1, i % 4), "xx", "xx", 'x', new ItemStack(ModBlocks.thinLog, 1, i)); for (int j = 0; j < axeList.length; j++) GameRegistry.addRecipe(new ItemStack(ModBlocks.thinLog, 4, i), "x", "y", 'x', new ItemStack(axeList[j], 1, OreDictionary.WILDCARD_VALUE), 'y', new ItemStack(Blocks.log2, 1, i % 4)); } } ItemStack enrichedSoil = new ItemStack(ModItems.compostPile); GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.sapling), new ItemStack(Blocks.sapling, 1, 1), enrichedSoil); GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.sapling, 1, 1), new ItemStack(Blocks.sapling), new ItemStack(Blocks.vine), enrichedSoil); GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.sapling, 1, 2), new ItemStack(Blocks.sapling, 1, 2), enrichedSoil); GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.ivy), new ItemStack(Blocks.vine), enrichedSoil); GameRegistry.addSmelting(com.jaquadro.minecraft.gardentrees.core.ModItems.candelilla, new ItemStack(ModItems.wax), 0); addExtraWoodRecipes(); }
Example 10
Source File: ComputerCraft.java From PneumaticCraft with GNU General Public License v3.0 | 5 votes |
@Override public void init(){ if(Loader.isModLoaded(ModIds.OPEN_COMPUTERS)) super.init(); Block modem = GameRegistry.findBlock(ModIds.COMPUTERCRAFT, "CC-Peripheral"); if(modem != null) { GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(droneInterface), true, " u ", "mp ", "iii", 'u', new ItemStack(Itemss.machineUpgrade, 1, ItemMachineUpgrade.UPGRADE_RANGE), 'm', new ItemStack(modem, 1, 1), 'p', Itemss.printedCircuitBoard, 'i', Names.INGOT_IRON_COMPRESSED)); } else { Log.error("Wireless Modem block not found! Using the backup recipe"); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(droneInterface), true, " u ", "mp ", "iii", 'u', new ItemStack(Itemss.machineUpgrade, 1, ItemMachineUpgrade.UPGRADE_RANGE), 'm', Items.ender_pearl, 'p', Itemss.printedCircuitBoard, 'i', Names.INGOT_IRON_COMPRESSED)); } }
Example 11
Source File: Hydraulicraft.java From PneumaticCraft with GNU General Public License v3.0 | 5 votes |
public static void registrarHandling(IHydraulicraftRegistrar registrar){ registrar.registerTrolley(new TrolleyPlasticPlants()); ItemStack cropsTrolly = registrar.getTrolleyItem("plasticPlants"); cropsTrolly.stackSize = 4; Block pressureCore = GameData.getBlockRegistry().getObject(ModIds.HC + ":LPBlockCore"); Block pressureWall = GameData.getBlockRegistry().getObject(ModIds.HC + ":hydraulicPressureWall"); Block hydraulicPiston = GameData.getBlockRegistry().getObject(ModIds.HC + ":hydraulicPiston"); GameRegistry.addRecipe(new ShapedOreRecipe(cropsTrolly, true, "-P-", "WCW", "-H-", 'C', new ItemStack(pressureCore, 1, 1), 'W', pressureWall, 'H', Itemss.turbineRotor, 'P', hydraulicPiston)); }
Example 12
Source File: CraftingRegistrator.java From PneumaticCraft with GNU General Public License v3.0 | 4 votes |
private static void addRecipe(ItemStack result, Object... recipe){ ShapedOreRecipe newRecipe = new ShapedOreRecipe(result, recipe); GameRegistry.addRecipe(newRecipe); scanForFluids(newRecipe); }
Example 13
Source File: Crafting.java From Chisel with GNU General Public License v2.0 | 4 votes |
public static void init() { Block concreteRecipeBlock = Block.getBlockFromName(Configurations.config.get("tweaks", "concrete recipe block", "gravel", "Unlocalized name of the block that, when burned, will produce concrete (examples: lightgem, stone)").getString()); if(concreteRecipeBlock == null) concreteRecipeBlock = Blocks.gravel; FurnaceRecipes.smelting().func_151393_a(concreteRecipeBlock, new ItemStack(ChiselBlocks.blockConcrete), 0.1F); GameRegistry.addRecipe(new ItemStack(ChiselBlocks.blockSandstoneScribbles, 1), new Object[]{"X", 'X', new ItemStack(ChiselBlocks.blockSandstone, 1, 8),}); for(int meta = 0; meta < 16; meta++) { GameRegistry.addRecipe(new ItemStack(ChiselBlocks.blockMarbleSlab, 6, 0), new Object[]{"***", '*', new ItemStack(ChiselBlocks.blockMarble, 1, meta)}); GameRegistry.addRecipe(new ItemStack(ChiselBlocks.blockLimestoneSlab, 6, 0), new Object[]{"***", '*', new ItemStack(ChiselBlocks.blockLimestone, 1, meta)}); GameRegistry.addRecipe(new ItemStack(ChiselBlocks.blockMarblePillarSlab, 6, 0), new Object[]{"***", '*', new ItemStack(ChiselBlocks.blockMarblePillar, 1, meta)}); GameRegistry.addRecipe(new ItemStack(ChiselBlocks.blockMarblePillar, 6), new Object[]{"XX", "XX", "XX", 'X', new ItemStack(ChiselBlocks.blockMarble, 1, meta),}); GameRegistry.addRecipe(new ItemStack(ChiselBlocks.blockMarble, 4), new Object[]{"XX", "XX", 'X', new ItemStack(ChiselBlocks.blockMarblePillar, 1, meta),}); GameRegistry.addRecipe(new ItemStack(ChiselBlocks.blockIcePillar, 6, 1), new Object[]{"XX", "XX", "XX", 'X', new ItemStack(ChiselBlocks.blockIce, 1, meta),}); GameRegistry.addRecipe(new ItemStack(ChiselBlocks.blockIce, 4, 1), new Object[]{"XX", "XX", 'X', new ItemStack(ChiselBlocks.blockIcePillar, 1, meta),}); GameRegistry.addRecipe(new ItemStack(Blocks.sandstone, 1, 1), new Object[]{"X", 'X', new ItemStack(ChiselBlocks.blockSandstoneScribbles, 1, meta),}); GameRegistry.addRecipe(new ItemStack(ChiselBlocks.blockCarpet, 8, meta), new Object[]{"YYY", "YXY", "YYY", 'X', new ItemStack(Items.string, 1), 'Y', new ItemStack(Blocks.wool, 1, meta),}); GameRegistry.addRecipe(new ItemStack(ChiselBlocks.blockCarpetFloor, 3, meta), new Object[]{"XX", 'X', new ItemStack(ChiselBlocks.blockCarpet, 1, meta),}); } // The following recipe is due to bugs with Chisel 1.5.1 to 1.5.6a GameRegistry.addRecipe(new ItemStack(Blocks.sandstone, 1, 0), new Object[]{"X", 'X', new ItemStack(ChiselBlocks.blockSandstone, 1, 0),}); // The following recipe is due to bug with Chisel 1.5.6b GameRegistry.addRecipe(new ItemStack(Blocks.sandstone, 1, 1), new Object[]{"X", 'X', new ItemStack(ChiselBlocks.blockSandstone, 1, 1),}); GameRegistry.addRecipe(new ItemStack(ChiselBlocks.blockHolystone, 8, 0), new Object[]{"***", "*X*", "***", '*', new ItemStack(Blocks.stone, 1), 'X', new ItemStack(Items.feather, 1)}); GameRegistry.addRecipe(new ItemStack(ChiselBlocks.blockLavastone, 8, 0), new Object[]{"***", "*X*", "***", '*', new ItemStack(Blocks.stone, 1), 'X', new ItemStack(Items.lava_bucket, 1)}); GameRegistry.addRecipe(new ItemStack(ChiselBlocks.blockFft, 8, 0), new Object[]{"***", "*X*", "***", '*', new ItemStack(Blocks.stone, 1), 'X', new ItemStack(Items.gold_nugget, 1)}); GameRegistry.addRecipe(new ItemStack(ChiselBlocks.blockTyrian, 8, 0), new Object[]{"***", "*X*", "***", '*', new ItemStack(Blocks.stone, 1), 'X', new ItemStack(Items.iron_ingot, 1)}); GameRegistry.addRecipe(new ItemStack(ChiselBlocks.blockTemple, 8, 0), new Object[]{"***", "*X*", "***", '*', new ItemStack(Blocks.stone, 1), 'X', new ItemStack(Items.dye, 1, 4)}); GameRegistry.addRecipe(new ItemStack(ChiselBlocks.blockFactory, Configurations.factoryBlockAmount, 0), new Object[]{"*X*", "X X", "*X*", '*', new ItemStack(Blocks.stone, 1), 'X', new ItemStack(Items.iron_ingot, 1)}); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ChiselBlocks.blockRoadLine, 8, 0), new Object[]{"wrw", "wrw", "wrw", ('w'), "dyeWhite", ('r'), Items.redstone})); if(Configurations.chiselRecipe) { GameRegistry.addRecipe(new ItemStack(Chisel.chisel, 1), new Object[]{" YY", " YY", "X ", 'X', Items.stick, 'Y', Items.iron_ingot}); } else { GameRegistry.addRecipe(new ItemStack(Chisel.chisel, 1), new Object[]{" Y", "X ", 'X', Items.stick, 'Y', Items.iron_ingot}); } if(Configurations.featureEnabled("ballOfMoss")) GameRegistry.addRecipe(new ItemStack(Chisel.itemBallOMoss, 1), new Object[]{"XYX", "YXY", "XYX", 'X', Blocks.vine, 'Y', Items.stick}); if(Configurations.featureEnabled("cloud")) GameRegistry.addRecipe(new ItemStack(Chisel.itemCloudInABottle, 1), new Object[]{"X X", "XYX", " X ", 'X', Blocks.glass, 'Y', Items.quartz}); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ChiselBlocks.blockPaperwall, 8), new Object[]{"ppp", "psp", "ppp", ('p'), Items.paper, ('s'), "stickWood"})); String[] sGNames = new String[]{ "White", "Orange", "Magenta", "Light Blue", "Yellow", "Lime", "Pink", "Gray", "Light Gray", "Cyan", "Purple", "Blue", "Brown", "Green", "Red", "Black" }; for(int i = 0; i < 16; i++) { OreDictionary.registerOre("stainedClay" + sGNames[i].replaceAll(" ", ""), new ItemStack(Blocks.stained_hardened_clay, 1, i)); OreDictionary.registerOre("blockWool" + sGNames[i].replaceAll(" ", ""), new ItemStack(Blocks.wool, 1, i)); GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ChiselBlocks.blockWoolenClay, 2, i), new Object[]{"blockWool" + sGNames[i].replaceAll(" ", ""), "stainedClay" + sGNames[i].replaceAll(" ", "")})); } GameRegistry.addRecipe(new ItemStack(ChiselBlocks.blockLaboratory, 8, 0), new Object[]{"***", "*X*", "***", '*', new ItemStack(Blocks.stone, 1), 'X', new ItemStack(Items.quartz, 1)}); }
Example 14
Source File: CraftingRegistrator.java From PneumaticCraft with GNU General Public License v3.0 | 4 votes |
public static void addShapelessRecipe(ItemStack result, Object... recipe){ GameRegistry.addRecipe(new ShapelessOreRecipe(result, recipe)); }
Example 15
Source File: WRCoreProxy.java From WirelessRedstone with MIT License | 4 votes |
private void addRecipies() { GameRegistry.addRecipe(new ItemStack(obsidianStick, 2), "O", "O", 'O', Blocks.obsidian); OreDictionary.registerOre("obsidianRod", new ItemStack(obsidianStick)); OreDictionary.registerOre("stoneBowl", new ItemStack(stoneBowl)); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(wirelessTransceiver), "r", "o", 'r', retherPearl, 'o', "obsidianRod")); GameRegistry.addRecipe(new ItemStack(stoneBowl), "S S", " S ", 'S', Blocks.stone); GameRegistry.addRecipe(new ItemStack(retherPearl), "rgr", "gpg", "rgr", 'r', Items.redstone, 'g', Items.glowstone_dust, 'p', Items.ender_pearl); GameRegistry.addRecipe(new ItemStack(retherPearl), "grg", "rpr", "grg", 'r', Items.redstone, 'g', Items.glowstone_dust, 'p', Items.ender_pearl); GameRegistry.addRecipe(new ItemStack(blazeTransceiver), "r", "b", 'r', retherPearl, 'b', Items.blaze_rod); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(recieverDish), "t", "b", 't', wirelessTransceiver, 'b', "stoneBowl")); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(blazeRecieverDish), "t", "b", 't', blazeTransceiver, 'b', "stoneBowl")); }
Example 16
Source File: ModRecipes.java From GardenCollection with MIT License | 4 votes |
public void init () { GameRegistry.addRecipe(new ItemStack(ModBlocks.largePot, 3, 1), "x x", "x x", "xxx", 'x', Blocks.clay); GameRegistry.addRecipe(new ItemStack(ModBlocks.largePot, 3), "x x", "x x", "xxx", 'x', Blocks.hardened_clay); for (int i = 0; i < 16; i++) { GameRegistry.addRecipe(new ItemStack(ModBlocks.largePotColored, 3, i), "x x", "x x", "xxx", 'x', new ItemStack(Blocks.stained_hardened_clay, 1, 15 - i)); GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModBlocks.largePotColored, 1, i), ModBlocks.largePot, dyeOreDict[i])); } GameRegistry.addRecipe(new ItemStack(ModBlocks.mediumPot, 3), "x x", "x x", " x ", 'x', Blocks.hardened_clay); for (int i = 0; i < 16; i++) { GameRegistry.addRecipe(new ItemStack(ModBlocks.mediumPotColored, 3, i), "x x", "x x", " x ", 'x', new ItemStack(Blocks.stained_hardened_clay, 1, 15 - i)); GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModBlocks.mediumPotColored, 1, i), ModBlocks.mediumPot, dyeOreDict[i])); } GameRegistry.addRecipe(new ItemStack(ModBlocks.potteryTable), "x", "y", 'x', Items.clay_ball, 'y', Blocks.crafting_table); GameRegistry.addSmelting(new ItemStack(ModBlocks.largePot, 1, 1), new ItemStack(ModBlocks.largePot, 1, 0), 0); for (int i = 1; i < 256; i++) { if (GardenContainers.config.hasPattern(i)) GameRegistry.addSmelting(new ItemStack(ModBlocks.largePot, 1, 1 | (i << 8)), new ItemStack(ModBlocks.largePot, 1, (i << 8)), 0); } for (int i = 0; i < 6; i++) { GameRegistry.addRecipe(new ItemStack(ModBlocks.decorativePot, 3, i), "x x", "xxx", " x ", 'x', new ItemStack(Blocks.quartz_block, 1, i)); } for (int i = 0; i < 6; i++) { GameRegistry.addRecipe(new ItemStack(ModBlocks.woodWindowBox, 1, i), "yxy", 'x', Items.flower_pot, 'y', new ItemStack(Blocks.planks, 1, i)); } for (int i = 0; i < ModBlocks.stoneWindowBox.getSubTypes().length; i++) { GameRegistry.addRecipe(new ItemStack(ModBlocks.stoneWindowBox, 1, i), "yxy", 'x', Items.flower_pot, 'y', new ItemStack(ModBlocks.stoneWindowBox.getBlockFromMeta(i), 1, ModBlocks.stoneWindowBox.getMetaFromMeta(i))); } // Smelting GameRegistry.addSmelting(new ItemStack(ModBlocks.largePot, 1, 1), new ItemStack(ModBlocks.largePot, 1, 0), 0); for (int i = 1; i < 256; i++) { if (GardenContainers.config.hasPattern(i)) GameRegistry.addSmelting(new ItemStack(ModBlocks.largePot, 1, 1 | (i << 8)), new ItemStack(ModBlocks.largePot, 1, (i << 8)), 0); } }
Example 17
Source File: ExThaumiquo.java From Ex-Aliquo with MIT License | 4 votes |
static void addOreDictRecipes(String name, ItemStack stack, Object[] recipe) { GameRegistry.addRecipe(new ShapedOreRecipe(stack, recipe)); List<IRecipe> irecipe = CraftingManager.getInstance().getRecipeList(); ConfigResearch.recipes.put(name, irecipe.get(irecipe.size() -1)); }
Example 18
Source File: EnderStorageRecipe.java From EnderStorage with MIT License | 4 votes |
public static void init() { EnderStorageRecipe instance = new EnderStorageRecipe(); GameRegistry.addRecipe(instance); RecipeSorter.register("enderstorage:recolour", EnderStorageRecipe.class, Category.SHAPED, ""); addNormalRecipies(); }
Example 19
Source File: ModRecipes.java From Et-Futurum with The Unlicense | 4 votes |
private static void addShapelessRecipe(ItemStack output, Object... objects) { GameRegistry.addRecipe(new ShapelessOreRecipe(output, objects)); }
Example 20
Source File: ModRecipes.java From Et-Futurum with The Unlicense | 4 votes |
private static void addShapedRecipe(ItemStack output, Object... objects) { GameRegistry.addRecipe(new ShapedOreRecipe(output, objects)); }