From 49d2c36f72bad40dbd14f6b66984bef9d0cead84 Mon Sep 17 00:00:00 2001 From: Vasco Lavos Date: Sat, 24 Sep 2016 18:26:47 +0100 Subject: [PATCH] Added recipes for prismarine and prismarine crystals if you're in garden of glass. --- .../botania/common/crafting/ModManaAlchemyRecipes.java | 10 ++++++++++ .../vazkii/botania/common/lexicon/LexiconData.java | 3 ++- src/main/resources/assets/botania/lang/en_US.lang | 3 ++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/main/java/vazkii/botania/common/crafting/ModManaAlchemyRecipes.java b/src/main/java/vazkii/botania/common/crafting/ModManaAlchemyRecipes.java index 534e1bc58..59b7823cc 100644 --- a/src/main/java/vazkii/botania/common/crafting/ModManaAlchemyRecipes.java +++ b/src/main/java/vazkii/botania/common/crafting/ModManaAlchemyRecipes.java @@ -16,6 +16,7 @@ import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import vazkii.botania.api.BotaniaAPI; import vazkii.botania.api.recipe.RecipeManaInfusion; +import vazkii.botania.common.Botania; import vazkii.botania.common.block.ModFluffBlocks; import vazkii.botania.common.core.handler.ConfigHandler; import vazkii.botania.common.item.ModItems; @@ -51,6 +52,9 @@ public final class ModManaAlchemyRecipes { public static List tallgrassRecipes; public static List flowersRecipes; + // Garden of Glass + public static List prismarineRecipes; + public static void init() { leatherRecipe = BotaniaAPI.registerManaAlchemyRecipe(new ItemStack(Items.LEATHER), new ItemStack(Items.ROTTEN_FLESH), 600); @@ -154,5 +158,11 @@ public final class ModManaAlchemyRecipes { flowersRecipes.add(BotaniaAPI.registerManaAlchemyRecipe(new ItemStack(Blocks.DOUBLE_PLANT, 1, 4), new ItemStack(Blocks.DOUBLE_PLANT, 1, 1), 400)); flowersRecipes.add(BotaniaAPI.registerManaAlchemyRecipe(new ItemStack(Blocks.DOUBLE_PLANT, 1, 5), new ItemStack(Blocks.DOUBLE_PLANT, 1, 4), 400)); flowersRecipes.add(BotaniaAPI.registerManaAlchemyRecipe(new ItemStack(Blocks.YELLOW_FLOWER), new ItemStack(Blocks.DOUBLE_PLANT, 1, 5), 400)); + + if(Botania.gardenOfGlassLoaded) { + prismarineRecipes = new ArrayList<>(); + prismarineRecipes.add(BotaniaAPI.registerManaAlchemyRecipe(new ItemStack(Items.PRISMARINE_SHARD), new ItemStack(Items.QUARTZ), 1000)); + prismarineRecipes.add(BotaniaAPI.registerManaAlchemyRecipe(new ItemStack(Items.PRISMARINE_CRYSTALS), new ItemStack(Items.PRISMARINE_SHARD), 500)); + } } } diff --git a/src/main/java/vazkii/botania/common/lexicon/LexiconData.java b/src/main/java/vazkii/botania/common/lexicon/LexiconData.java index 372c83f08..11ff9a92c 100644 --- a/src/main/java/vazkii/botania/common/lexicon/LexiconData.java +++ b/src/main/java/vazkii/botania/common/lexicon/LexiconData.java @@ -394,7 +394,8 @@ public final class LexiconData { new PageCraftingRecipe("4", ModCraftingRecipes.recipeRootToFertilizer), new PageCraftingRecipe("5", ModCraftingRecipes.recipePebbleCobblestone), new PageText("6"), new PageManaInfusionRecipe("7", ModManaInfusionRecipes.sugarCaneRecipe), - new PageCraftingRecipe("8", ModCraftingRecipes.recipeMagmaToSlimeball), new PageText("9"), + new PageCraftingRecipe("8", ModCraftingRecipes.recipeMagmaToSlimeball), + new PageManaInfusionRecipe("13", ModManaAlchemyRecipes.prismarineRecipes), new PageText("9"), new PageText("11"), new PageCraftingRecipe("12", ModCraftingRecipes.recipeEndPortal)); gardenOfGlass.setPriority().setIcon(new ItemStack(ModItems.manaResource, 1, 20)); } diff --git a/src/main/resources/assets/botania/lang/en_US.lang b/src/main/resources/assets/botania/lang/en_US.lang index 07c211590..0e56ec93c 100644 --- a/src/main/resources/assets/botania/lang/en_US.lang +++ b/src/main/resources/assets/botania/lang/en_US.lang @@ -1928,9 +1928,10 @@ botania.page.gardenOfGlass2=After spawning in the &1Garden of Glass&0 you'll fin botania.page.gardenOfGlass3=Creating &1Saplings&0 botania.page.gardenOfGlass4=Creating &1Floral Fertilizer&0 botania.page.gardenOfGlass5=Creating &1Cobblestone&0 -botania.page.gardenOfGlass6=Aside from that, some things in Botania are different to fit the Skyblock play: The &1Orechid&0 is easier to make, faster, and much cheaper; The &1Cocoon of Caprice&0 and the &1Mana Spreader&0 have different recipes; the &1Blaze Lamp&0, which can be used to create &1Obsidian&0, uses powder instead of rods; melon or pumpkin seeds may drop from tall grass; floral fertilizer creates more per craft, and &1Sugar Canes&0 and &1Slimeballs&0 can be crafted. +botania.page.gardenOfGlass6=Aside from that, some things in Botania are different to fit the Skyblock play: The &1Orechid&0 is easier to make, faster, and much cheaper; The &1Cocoon of Caprice&0 and the &1Mana Spreader&0 have different recipes; the &1Blaze Lamp&0, which can be used to create &1Obsidian&0, uses powder instead of rods; melon or pumpkin seeds may drop from tall grass; floral fertilizer creates more per craft, and some recipes are added. botania.page.gardenOfGlass7=Creating &1Sugar Canes&0 botania.page.gardenOfGlass8=Creating &1Slimeballs&0 +botania.page.gardenOfGlass13=Infusing &1Prismarine&0 botania.page.gardenOfGlass9=A problem that one might face in this world is entering the &4Nether&0. Worry not, however, as &1Blaze Lamps&0, as mentioned previously, can create &1Obsidian&0. To get these lamps, creating &1Blazes&0 using &1Fel Pumpkins&0 might be a good investment.
Since there's no easily available &1Flint&0, opening the portal with a &1Fire Charge&0 will have to do. botania.page.gardenOfGlass11=Aside from providing light, the &1Mana Flash&0 present in the starting area allows a player who has lost their &1Lexica Botania&0 to exchange a &1Sapling&0 for it, by right clicking with the &1Sapling&0 on the &1Mana Flame&0.
This can only be done if the player doesn't have a &1Lexica Botania&0 on them. botania.page.gardenOfGlass12=Lastly, a way to finish the game