use of net.minecraftforge.oredict.ShapedOreRecipe in project ICBM-Classic by BuiltBrokenModding.
the class ExEMP method init.
@Override
public void init() {
boolean registered = false;
//IC2:itemAdvBat
Object[] items = { "battery", InventoryUtility.getItem("IC2:itemBatRE"), "capacitorBasic" };
for (Object object : items) {
if (object != null && (!(object instanceof String) || OreDictionary.doesOreNameExist((String) object))) {
RecipeUtility.addRecipe(new ShapedOreRecipe(Explosives.EMP.getItemStack(), "RBR", "BTB", "RBR", 'T', Explosives.REPLUSIVE.getItemStack(), 'R', Blocks.redstone_block, 'B', object), this.getUnlocalizedName(), ICBMClassic.INSTANCE.getConfig(), true);
registered = true;
}
}
if (!registered) {
RecipeUtility.addRecipe(new ShapedOreRecipe(Explosives.EMP.getItemStack(), "RBR", "BTB", "RBR", 'T', Explosives.REPLUSIVE.getItemStack(), 'R', Blocks.redstone_block, 'B', Items.emerald), this.getUnlocalizedName(), ICBMClassic.INSTANCE.getConfig(), true);
}
}
use of net.minecraftforge.oredict.ShapedOreRecipe in project PneumaticCraft by MineMaarten.
the class CoFHCore method preInit.
@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);
}
use of net.minecraftforge.oredict.ShapedOreRecipe in project PneumaticCraft by MineMaarten.
the class ComputerCraft method init.
@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));
}
}
use of net.minecraftforge.oredict.ShapedOreRecipe in project PneumaticCraft by MineMaarten.
the class CraftingRegistrator method addRecipe.
private static void addRecipe(ItemStack result, Object... recipe) {
ShapedOreRecipe newRecipe = new ShapedOreRecipe(result, recipe);
GameRegistry.addRecipe(newRecipe);
scanForFluids(newRecipe);
}
use of net.minecraftforge.oredict.ShapedOreRecipe in project PneumaticCraft by MineMaarten.
the class Hydraulicraft method registrarHandling.
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));
}
Aggregations