Search in sources :

Example 46 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project OpenModularTurrets by OpenModularTurretsTeam.

the class RecipeHandler method initRecipes.

@SuppressWarnings("StatementWithEmptyBody")
public static void initRecipes() {
    ammoBlazingClay = new ItemStack(ModItems.ammoMetaItem, 32, 0);
    ammoBullet = new ItemStack(ModItems.ammoMetaItem, 64, 1);
    ammoFerroSlug = new ItemStack(ModItems.ammoMetaItem, 16, 2);
    ammoGrenade = new ItemStack(ModItems.ammoMetaItem, 32, 3);
    ammoRocket = new ItemStack(ModItems.ammoMetaItem, 32, 4);
    expanderInvTierOne = new ItemStack(ModBlocks.expander, 1, 0);
    expanderInvTierTwo = new ItemStack(ModBlocks.expander, 1, 1);
    expanderInvTierThree = new ItemStack(ModBlocks.expander, 1, 2);
    expanderInvTierFour = new ItemStack(ModBlocks.expander, 1, 3);
    expanderInvTierFive = new ItemStack(ModBlocks.expander, 1, 4);
    expanderPowerTierOne = new ItemStack(ModBlocks.expander, 1, 5);
    expanderPowerTierTwo = new ItemStack(ModBlocks.expander, 1, 6);
    expanderPowerTierThree = new ItemStack(ModBlocks.expander, 1, 7);
    expanderPowerTierFour = new ItemStack(ModBlocks.expander, 1, 8);
    expanderPowerTierFive = new ItemStack(ModBlocks.expander, 1, 9);
    addonConcealer = new ItemStack(ModItems.addonMetaItem, 1, 0);
    addonDamageAmp = new ItemStack(ModItems.addonMetaItem, 1, 1);
    addonPotentia = new ItemStack(ModItems.addonMetaItem, 1, 2);
    addonRecycler = new ItemStack(ModItems.addonMetaItem, 1, 3);
    addonRedstoneReactor = new ItemStack(ModItems.addonMetaItem, 1, 4);
    addonSerialPort = new ItemStack(ModItems.addonMetaItem, 1, 5);
    addonSolarPanel = new ItemStack(ModItems.addonMetaItem, 1, 6);
    upgradeAccuracy = new ItemStack(ModItems.upgradeMetaItem, 1, 0);
    upgradeEfficiency = new ItemStack(ModItems.upgradeMetaItem, 1, 1);
    upgradeFireRate = new ItemStack(ModItems.upgradeMetaItem, 1, 2);
    upgradeRange = new ItemStack(ModItems.upgradeMetaItem, 1, 3);
    upgradeScatterShot = new ItemStack(ModItems.upgradeMetaItem, 1, 4);
    ioBus = new ItemStack(ModItems.intermediateProductRegular, 1, 0);
    memoryCard = new ItemStack(ModItems.usableMetaItem, 1, 2);
    boolean recipesDone = false;
    if (ModCompatibility.EnderIOLoaded && ConfigHandler.recipes.equals("enderio")) {
        EnderIORecipeHandler.init();
        recipesDone = true;
    } else if (ModCompatibility.MekanismLoaded && ConfigHandler.recipes.equals("mekanism")) {
        MekanismRecipeHandler.init();
        recipesDone = true;
    } else if (ConfigHandler.recipes.equals("vanilla")) {
        VanillaRecipeHandler.init();
        recipesDone = true;
    } else if (ConfigHandler.recipes.equals("auto")) {
        if (ModCompatibility.EnderIOLoaded) {
            EnderIORecipeHandler.init();
        } else if (ModCompatibility.MekanismLoaded) {
            MekanismRecipeHandler.init();
        } else {
            VanillaRecipeHandler.init();
        }
        recipesDone = true;
    }
    // Only do vanilla if setting was invalid (recipes chosen but mod not available)
    if (!recipesDone) {
        VanillaRecipeHandler.init();
    }
    //RECIPES THAT DON'T CHANGE BASED ON MODS LOADED:
    //Tier 1 static recipes (Because they shouldn't use expensive mod items, only redstone, cobblestone and planks)
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.intermediateProductTiered, 1, 10), "AAA", " B ", "AAA", 'A', Blocks.COBBLESTONE, 'B', "plankWood"));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.intermediateProductTiered, 1, 5), "AAA", " BC", "AAA", 'A', Blocks.COBBLESTONE, 'B', "plankWood", 'C', Items.REDSTONE));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.intermediateProductTiered, 1, 0), " A ", "ABA", " A ", 'A', Items.REDSTONE, 'B', "plankWood"));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.turretBase, 1, 0), "ABA", "BCB", "ABA", 'A', Blocks.COBBLESTONE, 'B', "plankWood", 'C', new ItemStack(ModItems.intermediateProductTiered, 1, 0)));
    GameRegistry.addRecipe(new ShapedOreRecipe(expanderPowerTierOne, "ABA", "DCD", "ADA", 'A', Blocks.COBBLESTONE, 'B', "plankWood", 'C', Items.REDSTONE, 'D', ioBus));
    GameRegistry.addRecipe(new ShapedOreRecipe(expanderInvTierOne, "ABA", "DCD", "ADA", 'A', Blocks.COBBLESTONE, 'B', "plankWood", 'C', Blocks.CHEST, 'D', ioBus));
    if (ConfigHandler.getDisposableTurretSettings().isEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.disposableItemTurret, 1), " A ", "CBC", "CDC", 'A', new ItemStack(ModItems.intermediateProductTiered, 1, 10), 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 5), 'C', Blocks.COBBLESTONE, 'D', Items.REDSTONE));
    }
    if (ConfigHandler.getPotatoCannonTurretSettings().isEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.potatoCannonTurret, 1), "CAC", "CAC", "DBD", 'A', new ItemStack(ModItems.intermediateProductTiered, 1, 10), 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 5), 'C', Blocks.COBBLESTONE, 'D', Items.REDSTONE));
    }
    GameRegistry.addRecipe(new ItemStack(ModBlocks.leverBlock, 1), "AAA", "A  ", "A  ", 'A', Blocks.COBBLESTONE);
    // Addons
    GameRegistry.addRecipe(addonSolarPanel, "AAA", "CBC", "DED", 'A', Blocks.GLASS_PANE, 'B', Blocks.LAPIS_BLOCK, 'C', Items.REDSTONE, 'D', Items.IRON_INGOT, 'E', ioBus);
    GameRegistry.addRecipe(new ShapedOreRecipe(addonRedstoneReactor, "CAC", "ABD", "CAC", 'A', Items.IRON_INGOT, 'B', Items.ENDER_EYE, 'C', Items.QUARTZ, 'D', ioBus));
    GameRegistry.addRecipe(new ShapedOreRecipe(addonDamageAmp, "AAA", "B B", "AAA", 'A', Items.IRON_INGOT, 'B', Items.ENDER_PEARL));
    GameRegistry.addRecipe(new ShapedOreRecipe(addonRecycler, "ABA", "BCD", "ABA", 'A', "ingotGold", 'B', Items.MAGMA_CREAM, 'C', Blocks.ENDER_CHEST, 'D', ioBus));
    GameRegistry.addRecipe(new ShapedOreRecipe(addonConcealer, "ABA", "BCD", "ABA", 'A', Items.IRON_INGOT, 'B', Items.QUARTZ, 'C', Blocks.CHEST, 'D', ioBus));
    // Integration
    if (ModCompatibility.ThaumcraftLoaded && ConfigHandler.shouldDoThaumcraftIntegration) {
    //ThaumcraftRecipeHandler.init();
    }
    if ((ModCompatibility.ComputerCraftLoaded || ModCompatibility.OpenComputersLoaded) && ConfigHandler.shouldDoThaumcraftIntegration) {
        ComputerRecipeHandler.init();
    }
    // Upgrades
    GameRegistry.addRecipe(new ShapedOreRecipe(upgradeEfficiency, " A ", "ABA", " C ", 'A', Items.QUARTZ, 'B', Items.ENDER_EYE, 'C', ioBus));
    GameRegistry.addRecipe(new ShapedOreRecipe(upgradeAccuracy, " A ", "ABA", " C ", 'A', Items.QUARTZ, 'B', "ingotGold", 'C', ioBus));
    GameRegistry.addRecipe(new ShapedOreRecipe(upgradeFireRate, " A ", "ABA", " C ", 'A', Items.QUARTZ, 'B', Items.BLAZE_POWDER, 'C', ioBus));
    GameRegistry.addRecipe(upgradeRange, " A ", "ABA", " C ", 'A', Items.QUARTZ, 'B', Items.DIAMOND, 'C', ioBus);
    GameRegistry.addRecipe(new ShapedOreRecipe(upgradeScatterShot, " A ", "ABA", " C ", 'A', Items.QUARTZ, 'B', Items.FLINT, 'C', ioBus));
    //Ammo
    GameRegistry.addRecipe(ammoBlazingClay, "BCB", "CAC", "BCB", 'A', Items.BLAZE_POWDER, 'B', Items.CLAY_BALL, 'C', Items.REDSTONE);
    //Other
    GameRegistry.addRecipe(new ShapedOreRecipe(ioBus, " A ", "BBB", " C ", 'A', "ingotGold", 'B', Items.REDSTONE, 'C', Items.IRON_INGOT));
    GameRegistry.addRecipe(new ShapedOreRecipe(memoryCard, "BAB", "CEC", "FDF", 'A', "ingotGold", 'B', Items.REDSTONE, 'C', Items.IRON_INGOT, 'D', RecipeHandler.ioBus, 'E', Items.PAPER, 'F', new ItemStack(Items.DYE, 1, 4)));
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Example 47 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project OpenModularTurrets by OpenModularTurretsTeam.

the class VanillaRecipeHandler method init.

public static void init() {
    // ModItems
    // Barrels
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.intermediateProductTiered, 1, 11), "AAA", " B ", "AAA", 'A', "ingotIron", 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 10)));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.intermediateProductTiered, 1, 12), "AAA", " B ", "AAA", 'A', "ingotGold", 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 11)));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.intermediateProductTiered, 1, 13), "CAC", " B ", "CAC", 'A', Items.DIAMOND, 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 12), 'C', Items.QUARTZ));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.intermediateProductTiered, 1, 14), "AAA", "CBC", "AAA", 'A', Blocks.OBSIDIAN, 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 13), 'C', Items.GLOWSTONE_DUST));
    // Chambers
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.intermediateProductTiered, 1, 6), "AAA", " BC", "AAA", 'A', "ingotIron", 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 5), 'C', Items.REDSTONE));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.intermediateProductTiered, 1, 7), "AAA", " BC", "AAA", 'A', "ingotGold", 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 6), 'C', RecipeHandler.ioBus));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.intermediateProductTiered, 1, 8), "DAD", " BC", "DAD", 'A', Items.DIAMOND, 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 7), 'C', RecipeHandler.ioBus, 'D', Items.QUARTZ));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.intermediateProductTiered, 1, 9), "ADA", " BC", "ADA", 'A', Blocks.OBSIDIAN, 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 8), 'C', RecipeHandler.ioBus, 'D', Items.QUARTZ));
    // Sensors
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.intermediateProductTiered, 1, 1), " A ", "ABA", " C ", 'A', "ingotIron", 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 0), 'C', RecipeHandler.ioBus));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.intermediateProductTiered, 1, 2), " C ", "ABA", " C ", 'A', "ingotGold", 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 1), 'C', RecipeHandler.ioBus));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.intermediateProductTiered, 1, 3), "EDE", "CBC", "EDE", 'A', "ingotGold", 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 2), 'C', RecipeHandler.ioBus, 'D', Items.DIAMOND, 'E', Items.QUARTZ));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.intermediateProductTiered, 1, 4), "EDE", "CBC", "EDE", 'A', "ingotGold", 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 3), 'C', RecipeHandler.ioBus, 'D', Items.GLOWSTONE_DUST, 'E', Blocks.OBSIDIAN));
    // Bases
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.turretBase, 1, 1), "ABA", "DCD", "ADA", 'A', "ingotIron", 'B', new ItemStack(ModBlocks.turretBase, 1, 0), 'C', new ItemStack(ModItems.intermediateProductTiered, 1, 1), 'D', RecipeHandler.ioBus));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.turretBase, 1, 2), "ABA", "DCD", "ADA", 'A', "ingotGold", 'B', new ItemStack(ModBlocks.turretBase, 1, 1), 'C', new ItemStack(ModItems.intermediateProductTiered, 1, 2), 'D', RecipeHandler.ioBus));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.turretBase, 1, 3), "ABA", "DCD", "ADA", 'A', Items.DIAMOND, 'B', new ItemStack(ModBlocks.turretBase, 1, 2), 'C', new ItemStack(ModItems.intermediateProductTiered, 1, 3), 'D', RecipeHandler.ioBus));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.turretBase, 1, 4), "ABA", "DCD", "ADA", 'A', Blocks.OBSIDIAN, 'B', new ItemStack(ModBlocks.turretBase, 1, 3), 'C', new ItemStack(ModItems.intermediateProductTiered, 1, 4), 'D', RecipeHandler.ioBus));
    // Power Expanders
    GameRegistry.addRecipe(new ShapedOreRecipe(RecipeHandler.expanderPowerTierTwo, "ABA", "DCD", "ADA", 'A', "ingotIron", 'B', RecipeHandler.expanderPowerTierOne, 'C', Blocks.REDSTONE_BLOCK, 'D', RecipeHandler.ioBus));
    GameRegistry.addRecipe(new ShapedOreRecipe(RecipeHandler.expanderPowerTierThree, "ABA", "DCD", "ADA", 'A', "ingotGold", 'B', RecipeHandler.expanderPowerTierTwo, 'C', Blocks.REDSTONE_BLOCK, 'D', RecipeHandler.ioBus));
    GameRegistry.addRecipe(new ShapedOreRecipe(RecipeHandler.expanderPowerTierFour, "ABA", "DCD", "ADA", 'A', Items.DIAMOND, 'B', RecipeHandler.expanderPowerTierThree, 'C', Blocks.REDSTONE_BLOCK, 'D', RecipeHandler.ioBus));
    GameRegistry.addRecipe(new ShapedOreRecipe(RecipeHandler.expanderPowerTierFive, "ABA", "DCD", "ADA", 'A', Blocks.OBSIDIAN, 'B', RecipeHandler.expanderPowerTierFour, 'C', Blocks.REDSTONE_BLOCK, 'D', RecipeHandler.ioBus));
    // Inventory Expanders
    GameRegistry.addRecipe(new ShapedOreRecipe(RecipeHandler.expanderInvTierTwo, "ABA", "DCD", "ADA", 'A', "ingotIron", 'B', RecipeHandler.expanderInvTierOne, 'C', Blocks.CHEST, 'D', RecipeHandler.ioBus));
    GameRegistry.addRecipe(new ShapedOreRecipe(RecipeHandler.expanderInvTierThree, "ABA", "DCD", "ADA", 'A', "ingotGold", 'B', RecipeHandler.expanderInvTierTwo, 'C', Blocks.CHEST, 'D', RecipeHandler.ioBus));
    GameRegistry.addRecipe(new ShapedOreRecipe(RecipeHandler.expanderInvTierFour, "ABA", "DCD", "ADA", 'A', Items.DIAMOND, 'B', RecipeHandler.expanderInvTierThree, 'C', Blocks.CHEST, 'D', RecipeHandler.ioBus));
    GameRegistry.addRecipe(new ShapedOreRecipe(RecipeHandler.expanderInvTierFive, "ABA", "DCD", "ADA", 'A', Blocks.OBSIDIAN, 'B', RecipeHandler.expanderInvTierFour, 'C', Blocks.CHEST, 'D', RecipeHandler.ioBus));
    // Turrets
    if (ConfigHandler.getGunTurretSettings().isEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.machineGunTurret, 1), " A ", "CAC", "DBD", 'A', new ItemStack(ModItems.intermediateProductTiered, 1, 11), 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 6), 'C', "ingotIron", 'D', RecipeHandler.ioBus));
    }
    if (ConfigHandler.getIncendiaryTurretSettings().isEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.incendiaryTurret, 1), "A A", "BCB", "DCD", 'A', new ItemStack(ModItems.intermediateProductTiered, 1, 11), 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 6), 'C', "ingotIron", 'D', RecipeHandler.ioBus));
    }
    if (ConfigHandler.getGrenadeTurretSettings().isEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.grenadeLauncherTurret, 1), " A ", "CBC", "CDC", 'A', new ItemStack(ModItems.intermediateProductTiered, 1, 12), 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 7), 'C', "ingotGold", 'D', RecipeHandler.ioBus));
    }
    if (ConfigHandler.getRelativisticTurretSettings().isEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.relativisticTurret, 1), "CAC", "ABA", "CDC", 'A', Items.ENDER_PEARL, 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 2), 'C', "ingotGold", 'D', RecipeHandler.ioBus));
    }
    if (ConfigHandler.getRocketTurretSettings().isEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rocketTurret, 1), "CAC", "ABA", "EDE", 'A', new ItemStack(ModItems.intermediateProductTiered, 1, 13), 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 8), 'C', Items.QUARTZ, 'D', RecipeHandler.ioBus, 'E', Items.DIAMOND));
    }
    if (ConfigHandler.getTeleporterTurretSettings().isEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.teleporterTurret, 1), "CEC", "ABA", "CDC", 'A', Items.DIAMOND, 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 3), 'C', Items.ENDER_EYE, 'D', RecipeHandler.ioBus, 'E', Items.QUARTZ));
    }
    if (ConfigHandler.getLaserTurretSettings().isEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.laserTurret, 1), " A ", "CBC", "DCD", 'A', new ItemStack(ModItems.intermediateProductTiered, 1, 14), 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 9), 'C', Blocks.OBSIDIAN, 'D', RecipeHandler.ioBus));
    }
    if (ConfigHandler.getRailgunTurretSettings().isEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.railGunTurret, 1), "CAC", "CAC", "DBD", 'A', new ItemStack(ModItems.intermediateProductTiered, 1, 14), 'B', new ItemStack(ModItems.intermediateProductTiered, 1, 9), 'C', Blocks.OBSIDIAN, 'D', RecipeHandler.ioBus));
    }
    // Ammo
    GameRegistry.addRecipe(ammoRocket, " A ", "ABA", "ACA", 'A', Items.IRON_INGOT, 'B', Items.GUNPOWDER, 'C', Items.REDSTONE);
    GameRegistry.addRecipe(ammoBullet, " A ", "BC ", " A ", 'A', Items.IRON_INGOT, 'B', Items.GUNPOWDER, 'C', Items.REDSTONE);
    GameRegistry.addRecipe(ammoGrenade, " C ", "ABA", " A ", 'A', Items.IRON_INGOT, 'B', Items.GUNPOWDER, 'C', Items.REDSTONE);
    GameRegistry.addRecipe(ammoFerroSlug, " C ", "CBC", " A ", 'A', Items.IRON_INGOT, 'B', Items.FLINT, 'C', Items.REDSTONE);
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Example 48 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project minecolonies by Minecolonies.

the class RecipeHandler method addSupplyChestRecipes.

private static void addSupplyChestRecipes(final boolean enable) {
    if (enable) {
        GameRegistry.addRecipe(new ItemStack(ModItems.supplyChest, 1), "B B", "BBB", 'B', Items.BOAT);
        GameRegistry.addRecipe(new ItemStack(ModItems.supplyChest, 1), "B B", "BBB", 'B', Items.ACACIA_BOAT);
        GameRegistry.addRecipe(new ItemStack(ModItems.supplyChest, 1), "B B", "BBB", 'B', Items.BIRCH_BOAT);
        GameRegistry.addRecipe(new ItemStack(ModItems.supplyChest, 1), "B B", "BBB", 'B', Items.DARK_OAK_BOAT);
        GameRegistry.addRecipe(new ItemStack(ModItems.supplyChest, 1), "B B", "BBB", 'B', Items.JUNGLE_BOAT);
        GameRegistry.addRecipe(new ItemStack(ModItems.supplyChest, 1), "B B", "BBB", 'B', Items.SPRUCE_BOAT);
        GameRegistry.addRecipe(new ItemStack(ModItems.supplyCamp, 1), "B B", "BBB", 'B', Blocks.CHEST);
    } else {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockHutTownHall, 1), "XXX", "X#X", "XXX", 'X', PLANK_WOOD, '#', Items.BOAT));
    }
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Example 49 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project minecolonies by Minecolonies.

the class RecipeHandler method init.

/**
     * Initialize all recipes for minecolonies.
     *
     * @param enableInDevelopmentFeatures if we want development recipes.
     * @param supplyChests                if we want supply chests or direct
     *                                    town hall crafting.
     */
public static void init(final boolean enableInDevelopmentFeatures, final boolean supplyChests) {
    GameRegistry.addRecipe(new ItemStack(ModBlocks.blockConstructionTape, ONE_FORTH_OF_A_STACK), "SWS", "S S", "S S", 'S', Items.STICK, 'W', new ItemStack(Blocks.WOOL, 1, Constants.YELLOW));
    GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.blockConstructionTapeCorner, 1), ModBlocks.blockConstructionTape);
    GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.blockConstructionTape, 1), ModBlocks.blockConstructionTapeCorner);
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockHutMiner, 1), "XXX", "X#X", "XXX", 'X', PLANK_WOOD, '#', Items.WOODEN_PICKAXE));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockHutMiner, 2), "XXX", "X#X", "XXX", 'X', PLANK_WOOD, '#', Items.STONE_PICKAXE));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockHutLumberjack, 1), "XXX", "X#X", "XXX", 'X', PLANK_WOOD, '#', Items.WOODEN_AXE));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockHutLumberjack, 2), "XXX", "X#X", "XXX", 'X', PLANK_WOOD, '#', Items.STONE_AXE));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockHutBuilder, 1), "XXX", "X#X", "XXX", 'X', PLANK_WOOD, '#', Items.ACACIA_DOOR));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockHutBuilder, 1), "XXX", "X#X", "XXX", 'X', PLANK_WOOD, '#', Items.BIRCH_DOOR));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockHutBuilder, 1), "XXX", "X#X", "XXX", 'X', PLANK_WOOD, '#', Items.DARK_OAK_DOOR));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockHutBuilder, 1), "XXX", "X#X", "XXX", 'X', PLANK_WOOD, '#', Items.JUNGLE_DOOR));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockHutBuilder, 1), "XXX", "X#X", "XXX", 'X', PLANK_WOOD, '#', Items.OAK_DOOR));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockHutBuilder, 1), "XXX", "X#X", "XXX", 'X', PLANK_WOOD, '#', Items.SPRUCE_DOOR));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockHutCitizen, 1), "XXX", "X#X", "XXX", 'X', PLANK_WOOD, '#', "torch"));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockHutFisherman, 1), "XXX", "X#X", "XXX", 'X', PLANK_WOOD, '#', Items.FISHING_ROD));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.scanTool, 1), "  I", " S ", "S  ", 'I', Items.IRON_INGOT, 'S', WOODEN_STICK));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.buildTool, 1), "  C", " S ", "S  ", 'C', "cobblestone", 'S', WOODEN_STICK));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockSubstitution, ONE_FORTH_OF_A_STACK), "XXX", "X#X", "XXX", 'X', PLANK_WOOD, '#', ModItems.scanTool));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockSolidSubstitution, ONE_FORTH_OF_A_STACK), "XXX", "X#X", "XXX", 'X', "logWood", '#', ModItems.scanTool));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockHutFarmer, 1), "XXX", "X#X", "XXX", 'X', PLANK_WOOD, '#', Items.WOODEN_HOE));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockHutFarmer, 2), "XXX", "X#X", "XXX", 'X', PLANK_WOOD, '#', Items.STONE_HOE));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockHutField, 1), " Y ", "X#X", " X ", 'X', WOODEN_STICK, '#', Items.LEATHER, 'Y', Blocks.HAY_BLOCK));
    GameRegistry.addRecipe(new ItemStack(Blocks.WEB, 1), "X X", " X ", "X X", 'X', Items.STRING);
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockHutGuardTower, 2), "XXX", "X#X", "XXX", 'X', PLANK_WOOD, '#', Items.BOW));
    // check
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockHutWareHouse, 1), "XXX", "X#X", "XXX", 'X', PLANK_WOOD, '#', "chest"));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.blockHutDeliveryman, 1), "XXX", "X#X", "XXX", 'X', PLANK_WOOD, '#', Items.LEATHER_BOOTS));
    //enableInDevelopmentFeatures(enableInDevelopmentFeatures);
    addSupplyChestRecipes(supplyChests);
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Example 50 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project ICBM-Classic by BuiltBrokenModding.

the class TileLauncherFrame method genRecipes.

@Override
public void genRecipes(List<IRecipe> recipes) {
    // Missile Launcher Support Frame
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ICBMClassic.blockLaunchSupport, 1, 0), "! !", "!!!", "! !", '!', UniversalRecipe.SECONDARY_METAL.get()));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ICBMClassic.blockLaunchSupport, 1, 1), "! !", "!@!", "! !", '!', UniversalRecipe.PRIMARY_METAL.get(), '@', new ItemStack(ICBMClassic.blockLaunchSupport, 1, 0)));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ICBMClassic.blockLaunchSupport, 1, 2), "! !", "!@!", "! !", '!', UniversalRecipe.PRIMARY_PLATE.get(), '@', new ItemStack(ICBMClassic.blockLaunchSupport, 1, 1)));
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Aggregations

ShapedOreRecipe (net.minecraftforge.oredict.ShapedOreRecipe)73 ItemStack (net.minecraft.item.ItemStack)63 ShapelessOreRecipe (net.minecraftforge.oredict.ShapelessOreRecipe)19 ResourceLocation (net.minecraft.util.ResourceLocation)8 IRecipe (net.minecraft.item.crafting.IRecipe)7 ArrayList (java.util.ArrayList)6 Item (net.minecraft.item.Item)6 List (java.util.List)5 ShapedRecipes (net.minecraft.item.crafting.ShapedRecipes)5 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 AgriNuggetType (com.infinityraider.agricraft.reference.AgriNuggetType)2 SpellRecipeItemsEvent (am2.api.events.SpellRecipeItemsEvent)1