Added a config option to disable the 1.8 stones. Closes #752

This commit is contained in:
Lizbeth Rika committed 2015-04-17 12:27:10 +01:00
1 parent c0df8d7605
commit c3e8d98216
5 files changed
+25 -14

No files matched your search

@@ -318,13 +318,15 @@ public final class BotaniaCreativeTab extends CreativeTabs {
addBlock(ModFluffBlocks.sunnyQuartz);
addBlock(ModFluffBlocks.sunnyQuartzSlab);
addBlock(ModFluffBlocks.sunnyQuartzStairs);
addBlock(ModFluffBlocks.stone);
for(int i= 0; i < 8; i++)
addBlock(ModFluffBlocks.stoneStairs[i]);
for(int i= 0; i < 8; i++)
addBlock(ModFluffBlocks.stoneSlabs[i]);
if(ConfigHandler.stones18Enabled) {
addBlock(ModFluffBlocks.stone);
for(int i= 0; i < 8; i++)
addBlock(ModFluffBlocks.stoneStairs[i]);
for(int i= 0; i < 8; i++)
addBlock(ModFluffBlocks.stoneSlabs[i]);
}
addBlock(ModFluffBlocks.biomeStoneA);
addBlock(ModFluffBlocks.biomeStoneB);
for(int i = 0; i < 24; i++)
@@ -58,6 +58,7 @@ public final class ConfigHandler {
public static boolean enchanterEnabled = true;
public static boolean fluxfieldEnabled = true;
public static boolean relicsEnabled = true;
public static boolean stones18Enabled = true;
public static boolean ringOfOdinFireResist = true;
public static int flowerQuantity = 2;
@@ -172,6 +173,9 @@ public final class ConfigHandler {
desc = "Set this to false to disable the Relic System. This only disables the entries, drops and achievements. Old ones that are already in the world will stay.";
relicsEnabled = loadPropBool("relics.enabled", desc, relicsEnabled);
desc = "Set this to false to disable the 1.8 Stones available as mana alchemy recipes. This only disables the recipes and entries. Old ones that are already in the world will stay.";
stones18Enabled = loadPropBool("18stones.enabled", desc, stones18Enabled);
desc = "Set this to false to make the Ring of Odin not apply fire resistance. Mostly for people who use Witchery transformations.";
ringOfOdinFireResist = loadPropBool("ringOfOdin.fireResist", desc, ringOfOdinFireResist);
@@ -129,9 +129,11 @@ public final class ModManaAlchemyRecipes {
prismarineRecipe = BotaniaAPI.registerManaAlchemyRecipe(new ItemStack(ModItems.manaResource, 1, 10), new ItemStack(Items.quartz), 200);
stoneRecipes = new ArrayList();
stoneRecipes.add(BotaniaAPI.registerManaAlchemyRecipe(new ItemStack(ModFluffBlocks.stone), "stone", 200));
for(int i = 0; i < 4; i++)
stoneRecipes.add(BotaniaAPI.registerManaAlchemyRecipe(new ItemStack(ModFluffBlocks.stone, 1, i), new ItemStack(ModFluffBlocks.stone, 1, i == 0 ? 3 : i - 1), 200));
if(ConfigHandler.stones18Enabled) {
stoneRecipes = new ArrayList();
stoneRecipes.add(BotaniaAPI.registerManaAlchemyRecipe(new ItemStack(ModFluffBlocks.stone), "stone", 200));
for(int i = 0; i < 4; i++)
stoneRecipes.add(BotaniaAPI.registerManaAlchemyRecipe(new ItemStack(ModFluffBlocks.stone, 1, i), new ItemStack(ModFluffBlocks.stone, 1, i == 0 ? 3 : i - 1), 200));
}
}
}
@@ -876,9 +876,11 @@ public final class LexiconData {
phantomInk = new BLexiconEntry(LibLexicon.MISC_PHANTOM_INK, categoryMisc);
phantomInk.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipePhantomInk));
stoneAlchemy = new BLexiconEntry(LibLexicon.MISC_STONE_ALCHEMY, categoryMisc);
stoneAlchemy.setLexiconPages(new PageText("0"), new PageManaInfusionRecipe("1", ModManaAlchemyRecipes.stoneRecipes), new PageCraftingRecipe("2", ModCraftingRecipes.recipe18StonePolish), new PageCraftingRecipe("3", ModCraftingRecipes.recipe18StoneBrick), new PageCraftingRecipe("4", ModCraftingRecipes.recipe18StoneChisel));
if(ConfigHandler.stones18Enabled) {
stoneAlchemy = new BLexiconEntry(LibLexicon.MISC_STONE_ALCHEMY, categoryMisc);
stoneAlchemy.setLexiconPages(new PageText("0"), new PageManaInfusionRecipe("1", ModManaAlchemyRecipes.stoneRecipes), new PageCraftingRecipe("2", ModCraftingRecipes.recipe18StonePolish), new PageCraftingRecipe("3", ModCraftingRecipes.recipe18StoneBrick), new PageCraftingRecipe("4", ModCraftingRecipes.recipe18StoneChisel));
}
if(Botania.bcTriggersLoaded) {
bcIntegration = new BLexiconEntry(LibLexicon.MISC_BC_INTEGRATION, categoryMisc);
bcIntegration.setLexiconPages(new PageText("0")).setIcon(new ItemStack(Items.redstone));
@@ -247,6 +247,7 @@ fallenKanade.enabled=Enable Fallen Kanade
manaEnchanter.enabled=Enable Mana Enchanter
manaFluxfield.enabled=Enable Mana Fluxfield
relics.enabled=Enable Relics
18stones.enabled=Enable 1.8 Stones
ringOfOdin.fireResist=Enable Ring of Odin Fire Resist
flower.forceCheck=Flower Force Checking
enderPickpocket.enabled=Enable Ender Pickpocketting