Search in sources :

Example 6 with RecipeTool

use of com.builtbroken.mc.lib.recipe.item.RecipeTool in project Engine by VoltzEngine-Project.

the class ItemCircuits method onPostInit.

@Override
public void onPostInit() {
    if (Engine.itemSimpleCraftingTools != null) {
        GameRegistry.addRecipe(new RecipeTool(new ItemStack(Engine.itemCircuits), "wcw", "dpt", "wrw", 'w', OreNames.WIRE_TIN, 'p', OreNames.WOOD, 'c', Items.clay_ball, 'r', OreNames.REDSTONE, 'd', Engine.itemSimpleCraftingTools.getDrill(), 't', Engine.itemSimpleCraftingTools.getCutters()));
        GameRegistry.addRecipe(new RecipeTool(new ItemStack(Engine.itemCircuits, 1, 1), "wcw", "dpt", "wrw", 'w', OreNames.WIRE_COPPER, 'p', OreNames.PLATE_COPPER, 'c', Items.clay_ball, 'r', OreNames.REDSTONE, 'd', Engine.itemSimpleCraftingTools.getDrill(), 't', Engine.itemSimpleCraftingTools.getCutters()));
        GameRegistry.addRecipe(new RecipeTool(new ItemStack(Engine.itemCircuits, 1, 2), "wcw", "dpt", "wrw", 'w', OreNames.WIRE_GOLD, 'p', OreNames.PLATE_GOLD, 'c', Items.clay_ball, 'r', OreNames.REDSTONE, 'd', Engine.itemSimpleCraftingTools.getDrill(), 't', Engine.itemSimpleCraftingTools.getCutters()));
    } else {
        GameRegistry.addRecipe(new RecipeTool(new ItemStack(Engine.itemCircuits), "wcw", "rpr", "wcw", 'w', OreNames.WIRE_TIN, 'p', OreNames.WOOD, 'c', "clay", 'r', OreNames.REDSTONE));
        GameRegistry.addRecipe(new RecipeTool(new ItemStack(Engine.itemCircuits, 1, 1), "wcw", "rpr", "wcw", 'w', OreNames.WIRE_COPPER, 'p', OreNames.INGOT_IRON, 'c', "clay", 'r', OreNames.REDSTONE));
        GameRegistry.addRecipe(new RecipeTool(new ItemStack(Engine.itemCircuits, 1, 2), "wcw", "rpr", "wcw", 'w', OreNames.WIRE_GOLD, 'p', OreNames.INGOT_GOLD, 'c', "clay", 'r', OreNames.REDSTONE));
    }
}
Also used : RecipeTool(com.builtbroken.mc.lib.recipe.item.RecipeTool) ItemStack(net.minecraft.item.ItemStack)

Example 7 with RecipeTool

use of com.builtbroken.mc.lib.recipe.item.RecipeTool in project Engine by VoltzEngine-Project.

the class WireRecipeLoader method postInit.

@Override
public void postInit() {
    if (DefinedGenItems.WIRE.item != null) {
        if (Engine.itemSimpleCraftingTools != null) {
            EnumSet<GenMaterial> mats = EnumSet.allOf(GenMaterial.class);
            mats.remove(GenMaterial.UNKNOWN);
            for (GenMaterial material : mats) {
                if (OreDictionary.getOres("nugget" + LanguageUtility.capitalizeFirst(material.name().toLowerCase()), false).size() > 0 && !DefinedGenItems.WIRE.ignoreMaterials.contains(material)) {
                    //TODO change tools to iron
                    GameRegistry.addRecipe(new RecipeTool(new ItemStack(DefinedGenItems.WIRE.item, 1, material.ordinal()), "WH", "C ", 'W', "nugget" + LanguageUtility.capitalizeFirst(material.name().toLowerCase()), 'C', Engine.itemSimpleCraftingTools.getCutters(), 'H', Engine.itemSimpleCraftingTools.getHammer()));
                }
            }
        }
    }
}
Also used : RecipeTool(com.builtbroken.mc.lib.recipe.item.RecipeTool) GenMaterial(com.builtbroken.mc.core.content.resources.GenMaterial) ItemStack(net.minecraft.item.ItemStack)

Aggregations

RecipeTool (com.builtbroken.mc.lib.recipe.item.RecipeTool)7 ItemStack (net.minecraft.item.ItemStack)6 GenMaterial (com.builtbroken.mc.core.content.resources.GenMaterial)5 RecipeShapedOre (com.builtbroken.mc.lib.recipe.item.RecipeShapedOre)1