From 077b023cff512a73ae2249960787518eaaeb7fa3 Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Fri, 8 May 2015 00:35:39 -0400 Subject: [PATCH] Add fallback recipe for trim; nerf trim recipe output; add configure option for trim recipe output; fix fallback half drawer recipes to use slabWood. --- .../minecraft/storagedrawers/config/ConfigManager.java | 1 + .../minecraft/storagedrawers/core/ModRecipes.java | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/com/jaquadro/minecraft/storagedrawers/config/ConfigManager.java b/src/com/jaquadro/minecraft/storagedrawers/config/ConfigManager.java index 333e6c5e3..d7151758b 100644 --- a/src/com/jaquadro/minecraft/storagedrawers/config/ConfigManager.java +++ b/src/com/jaquadro/minecraft/storagedrawers/config/ConfigManager.java @@ -168,6 +168,7 @@ public void syncConfig () { config.get(sectionBlocksController.getQualifiedName(), "enabled", true).setLanguageKey(LANG_PREFIX + "prop.enabled").setRequiresMcRestart(true); config.get(sectionBlocksTrim.getQualifiedName(), "enabled", true).setLanguageKey(LANG_PREFIX + "prop.enabled").setRequiresMcRestart(true); + config.get(sectionBlocksTrim.getQualifiedName(), "recipeOutput", 4).setLanguageKey(LANG_PREFIX + "prop.recipeOutput").setRequiresMcRestart(true); config.get(sectionBlocksSlave.getQualifiedName(), "enabled", true).setLanguageKey(LANG_PREFIX + "prop.enabled").setRequiresMcRestart(true); diff --git a/src/com/jaquadro/minecraft/storagedrawers/core/ModRecipes.java b/src/com/jaquadro/minecraft/storagedrawers/core/ModRecipes.java index 4fd701926..281636240 100644 --- a/src/com/jaquadro/minecraft/storagedrawers/core/ModRecipes.java +++ b/src/com/jaquadro/minecraft/storagedrawers/core/ModRecipes.java @@ -34,7 +34,7 @@ public void init () { GameRegistry.addRecipe(new ItemStack(ModBlocks.halfDrawers4, config.getBlockRecipeOutput("halfdrawers4"), i), "yxy", "xxx", "yxy", 'x', new ItemStack(Blocks.wooden_slab, 1, i), 'y', Blocks.chest); if (config.isBlockEnabled("trim")) { - GameRegistry.addRecipe(new ItemStack(ModBlocks.trim, 24, i), "xyx", "yyy", "xyx", + GameRegistry.addRecipe(new ItemStack(ModBlocks.trim, config.getBlockRecipeOutput("trim"), i), "xyx", "yyy", "xyx", 'x', Items.stick, 'y', new ItemStack(Blocks.planks, 1, i)); } } @@ -51,10 +51,13 @@ public void init () { '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)); + 'x', "slabWood", '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)); + 'x', "slabWood", 'y', Blocks.chest)); + if (config.isBlockEnabled("trim")) + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.trim, config.getBlockRecipeOutput("trim"), 0), "xyx", "yyy", "xyx", + 'x', Items.stick, 'y', "plankWood")); if (config.isBlockEnabled("compdrawers")) GameRegistry.addRecipe(new ItemStack(ModBlocks.compDrawers, config.getBlockRecipeOutput("compdrawers")), "xxx", "zwz", "xyx",