From 49ea5b4f0cee9d6fc09a3683cdb82b8aa6c457da Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Fri, 24 Apr 2015 17:48:04 -0400 Subject: [PATCH] Fallback recipes --- .../storagedrawers/core/ModRecipes.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/com/jaquadro/minecraft/storagedrawers/core/ModRecipes.java b/src/com/jaquadro/minecraft/storagedrawers/core/ModRecipes.java index 561319a..c68062d 100644 --- a/src/com/jaquadro/minecraft/storagedrawers/core/ModRecipes.java +++ b/src/com/jaquadro/minecraft/storagedrawers/core/ModRecipes.java @@ -4,11 +4,13 @@ import com.jaquadro.minecraft.storagedrawers.StorageDrawers; import com.jaquadro.minecraft.storagedrawers.block.BlockDrawers; import com.jaquadro.minecraft.storagedrawers.config.ConfigManager; import cpw.mods.fml.common.registry.GameRegistry; +import minetweaker.mc1710.recipes.ShapedRecipeOre; import net.minecraft.block.BlockWood; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import net.minecraftforge.oredict.OreDictionary; +import net.minecraftforge.oredict.ShapedOreRecipe; public class ModRecipes { @@ -37,6 +39,23 @@ public class ModRecipes } } + // Fallback recipes + if (config.isBlockEnabled("fulldrawers1")) + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.fullDrawers1, config.getBlockRecipeOutput("fulldrawers1"), 0), "xxx", " y ", "xxx", + 'x', "plankWood", 'y', Blocks.chest)); + if (config.isBlockEnabled("fulldrawers2")) + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.fullDrawers2, config.getBlockRecipeOutput("fulldrawers2"), 0), "xyx", "xxx", "xyx", + 'x', "plankWood", 'y', Blocks.chest)); + if (config.isBlockEnabled("halfdrawers2")) + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.halfDrawers2, config.getBlockRecipeOutput("halfdrawers2"), 0), "xyx", "xxx", "xyx", + 'x', "plankWood", 'y', Blocks.chest)); + if (config.isBlockEnabled("fulldrawers4")) + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.fullDrawers4, config.getBlockRecipeOutput("fulldrawers4"), 0), "yxy", "xxx", "yxy", + 'x', "plankWood", 'y', Blocks.chest)); + if (config.isBlockEnabled("halfdrawers4")) + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.halfDrawers4, config.getBlockRecipeOutput("halfdrawers4"), 0), "yxy", "xxx", "yxy", + 'x', "plankWood", 'y', Blocks.chest)); + if (config.isBlockEnabled("compdrawers")) GameRegistry.addRecipe(new ItemStack(ModBlocks.compDrawers, config.getBlockRecipeOutput("compdrawers")), "xxx", "zwz", "xyx", 'x', new ItemStack(Blocks.stone), 'y', Items.iron_ingot, 'z', new ItemStack(Blocks.piston), 'w', new ItemStack(ModBlocks.fullDrawers2, 1, OreDictionary.WILDCARD_VALUE));