Added config option for trap string variety

master
einsteinsci 2015-08-23 23:33:20 -07:00
parent 09efb29f52
commit 4cbaaa0549
2 changed files with 37 additions and 13 deletions

View File

@ -24,6 +24,7 @@ public class BBConfig
public static boolean removeCraftedFoodRecipes;
public static boolean canMakeChainArmor;
public static boolean removeWoodToolRecipes;
public static boolean anyStringForTraps;
public static boolean flamingAnimalsDropCharredMeat;
public static boolean spidersDropString;
@ -58,6 +59,7 @@ public class BBConfig
removeCraftedFoodRecipes = true;
canMakeChainArmor = true;
removeWoodToolRecipes = true;
anyStringForTraps = false;
flamingAnimalsDropCharredMeat = true;
spidersDropString = false;
@ -127,6 +129,8 @@ public class BBConfig
"Allow vanilla chain armor to be craftable from iron nuggets");
removeWoodToolRecipes = config.getBoolean("Remove wooden tool recipes", CRAFTING, true,
"Remove recipes for wooden pickaxe, axe, shovel, and hoe.");
anyStringForTraps = config.getBoolean("Any string for traps", CRAFTING, false,
"Allow any string to be used for tripwire hooks, trapped chests, etc.");
// Smelting
canSmelterDoKilnStuff = config.getBoolean("Smelter can make kiln products", SMELTING, false,

View File

@ -282,19 +282,39 @@ public class RegisterRecipes
"# #",
"###",
'#', "plankWood");
// Trapped Chest
AdvancedCraftingHandler.addAdvancedRecipe(new ItemStack(Blocks.trapped_chest),
new Object[] {new ItemStack(RegisterItems.thread, 2), "dustRedstone", 2},
"C", "H",
'C', Blocks.chest,
'H', Blocks.tripwire_hook);
// Tripwire Hook
AdvancedCraftingHandler.addAdvancedRecipe(new ItemStack(Blocks.tripwire_hook),
new Object[] {new ItemStack(RegisterItems.thread, 1), "dustRedstone", 1},
"I", "/", "#",
'I', "ingotIron",
'/', "stickWood",
'#', "plankWood");
if (BBConfig.anyStringForTraps)
{
// Trapped Chest
AdvancedCraftingHandler.addAdvancedRecipe(new ItemStack(Blocks.trapped_chest),
new Object[]{"itemString", 2, "dustRedstone", 2},
"C", "H",
'C', Blocks.chest,
'H', Blocks.tripwire_hook);
// Tripwire Hook
AdvancedCraftingHandler.addAdvancedRecipe(new ItemStack(Blocks.tripwire_hook),
new Object[]{"itemString", 1, "dustRedstone", 1},
"I", "/", "#",
'I', "ingotIron",
'/', "stickWood",
'#', "plankWood");
}
else
{
// Trapped Chest
AdvancedCraftingHandler.addAdvancedRecipe(new ItemStack(Blocks.trapped_chest),
new Object[]{new ItemStack(RegisterItems.thread, 2), "dustRedstone", 2},
"C", "H",
'C', Blocks.chest,
'H', Blocks.tripwire_hook);
// Tripwire Hook
AdvancedCraftingHandler.addAdvancedRecipe(new ItemStack(Blocks.tripwire_hook),
new Object[]{new ItemStack(RegisterItems.thread, 1), "dustRedstone", 1},
"I", "/", "#",
'I', "ingotIron",
'/', "stickWood",
'#', "plankWood");
}
// Piston
AdvancedCraftingHandler.addAdvancedRecipe(new ItemStack(Blocks.piston),
new Object[] {"nuggetIron", 2},