From 39b8e9bb9c90c4003a4b3065c425bce9dd48b952 Mon Sep 17 00:00:00 2001 From: Lizbeth Rika Date: Sun, 25 Jan 2015 18:42:19 +0000 Subject: [PATCH] Recipe/docs for the Spellbinding Cloth. --- .../botania/common/crafting/ModCraftingRecipes.java | 8 ++++++++ .../java/vazkii/botania/common/item/ItemSpellCloth.java | 2 +- .../java/vazkii/botania/common/lexicon/LexiconData.java | 4 ++++ src/main/java/vazkii/botania/common/lib/LibLexicon.java | 1 + src/main/resources/assets/botania/lang/en_US.lang | 5 +++++ 5 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/main/java/vazkii/botania/common/crafting/ModCraftingRecipes.java b/src/main/java/vazkii/botania/common/crafting/ModCraftingRecipes.java index 329e09df5..fcb222a7d 100644 --- a/src/main/java/vazkii/botania/common/crafting/ModCraftingRecipes.java +++ b/src/main/java/vazkii/botania/common/crafting/ModCraftingRecipes.java @@ -219,6 +219,7 @@ public final class ModCraftingRecipes { public static IRecipe recipeCobbleRod; public static IRecipe recipeSmeltRod; public static IRecipe recipeWorldSeed; + public static IRecipe recipeSpellCloth; public static void init() { // Lexicon Recipe @@ -1437,6 +1438,13 @@ public final class ModCraftingRecipes { 'D', LibOreDict.DRAGONSTONE); recipeWorldSeed = BotaniaAPI.getLatestAddedRecipe(); + // Spellbinding Cloth Recipe + addOreDictRecipe(new ItemStack(ModItems.spellCloth), + "WWW", "WPW", "WWW", + 'W', new ItemStack(Blocks.wool, 1, -1), + 'P', LibOreDict.MANA_PEARL); + recipeSpellCloth = BotaniaAPI.getLatestAddedRecipe(); + // Storage Block Recipes addOreDictRecipe(new ItemStack(ModBlocks.storage, 1, 0), "III", "III", "III", diff --git a/src/main/java/vazkii/botania/common/item/ItemSpellCloth.java b/src/main/java/vazkii/botania/common/item/ItemSpellCloth.java index 33843917f..d72860da2 100644 --- a/src/main/java/vazkii/botania/common/item/ItemSpellCloth.java +++ b/src/main/java/vazkii/botania/common/item/ItemSpellCloth.java @@ -37,7 +37,7 @@ public class ItemSpellCloth extends ItemMod { @Override @SideOnly(Side.CLIENT) public int getColorFromItemStack(ItemStack par1ItemStack, int par2) { - return Color.HSBtoRGB(0.75F, ((float) par1ItemStack.getMaxDamage() - (float) par1ItemStack.getItemDamage()) / par1ItemStack.getMaxDamage() * 0.5F, 1F); + return Color.HSBtoRGB(0.55F, ((float) par1ItemStack.getMaxDamage() - (float) par1ItemStack.getItemDamage()) / par1ItemStack.getMaxDamage() * 0.5F, 1F); } @Override diff --git a/src/main/java/vazkii/botania/common/lexicon/LexiconData.java b/src/main/java/vazkii/botania/common/lexicon/LexiconData.java index bb9487997..673b5605a 100644 --- a/src/main/java/vazkii/botania/common/lexicon/LexiconData.java +++ b/src/main/java/vazkii/botania/common/lexicon/LexiconData.java @@ -156,6 +156,7 @@ public final class LexiconData { public static LexiconEntry cobbleRod; public static LexiconEntry smeltRod; public static LexiconEntry worldSeed; + public static LexiconEntry spellCloth; public static LexiconEntry baublesIntro; public static LexiconEntry tinyPlanet; @@ -599,6 +600,9 @@ public final class LexiconData { worldSeed = new ALexiconEntry(LibLexicon.TOOL_WORLD_SEED, categoryTools); worldSeed.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeWorldSeed)); + spellCloth = new BLexiconEntry(LibLexicon.TOOL_SPELL_CLOTH, categoryTools); + spellCloth.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeSpellCloth)); + // BAUBLES ENTRIES baublesIntro = new BLexiconEntry(LibLexicon.BAUBLE_INTRO, categoryBaubles); baublesIntro.setPriority().setLexiconPages(new PageText("0"), new PageImage("1", LibResources.ENTRY_BAUBLES), new PageText("2")); diff --git a/src/main/java/vazkii/botania/common/lib/LibLexicon.java b/src/main/java/vazkii/botania/common/lib/LibLexicon.java index 06265849f..51bd28508 100644 --- a/src/main/java/vazkii/botania/common/lib/LibLexicon.java +++ b/src/main/java/vazkii/botania/common/lib/LibLexicon.java @@ -137,6 +137,7 @@ public final class LibLexicon { public static final String TOOL_COBBLE_ROD = "cobbleRod"; public static final String TOOL_SMELT_ROD = "smeltRod"; public static final String TOOL_WORLD_SEED = "worldSeed"; + public static final String TOOL_SPELL_CLOTH = "spellCloth"; public static final String BAUBLE_INTRO = "bIntro"; public static final String BAUBLE_TINY_PLANET = "tinyPlanet"; diff --git a/src/main/resources/assets/botania/lang/en_US.lang b/src/main/resources/assets/botania/lang/en_US.lang index 6a361cbe4..be0af6ea8 100644 --- a/src/main/resources/assets/botania/lang/en_US.lang +++ b/src/main/resources/assets/botania/lang/en_US.lang @@ -1668,6 +1668,11 @@ botania.entry.worldSeed=World Seed botania.page.worldSeed0=The &1World Seed&0 is a piece of elemental energized matter containing the ability to return its user to the world spawn.
Case the person who is using it is farther than 24 blocks from the world's spawn point, using the seed, via right click, will instantly teleport them there, consuming the seed. botania.page.worldSeed1=Where the heart is +# -- SPELLBINDING CLOTH +botania.entry.spellCloth=Spellbinding Cloth +botania.page.spellCloth0=Combining &1Wool&0 with some &4Mana&0 in the form of a &1Mana Pearl&0 allows for one to create a type of cloth that will absorb any &4Enchantments&0 it comes in contact with.
Combining the &1Spellbinding Cloth&0 with any enchanted item in a crafting table will remove all enchants from that item at the cost of some of the cloth's durability. +botania.page.spellCloth1=Oldest item in the book + # - BAUBLES # -- AN INTRODUCTION TO BAUBLES botania.entry.bIntro=An Introduction to Baubles