diff --git a/MODSRC/vazkii/botania/common/block/BlockForestEye.java b/MODSRC/vazkii/botania/common/block/BlockForestEye.java index ca6edde73..5d83a1f71 100644 --- a/MODSRC/vazkii/botania/common/block/BlockForestEye.java +++ b/MODSRC/vazkii/botania/common/block/BlockForestEye.java @@ -13,14 +13,19 @@ package vazkii.botania.common.block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; +import vazkii.botania.api.ILexiconable; +import vazkii.botania.api.lexicon.LexiconEntry; import vazkii.botania.client.core.helper.IconHelper; import vazkii.botania.common.block.tile.TileForestEye; +import vazkii.botania.common.lexicon.LexiconData; import vazkii.botania.common.lib.LibBlockNames; -public class BlockForestEye extends BlockModContainer { +public class BlockForestEye extends BlockModContainer implements ILexiconable { IIcon[] icons; @@ -71,4 +76,9 @@ public class BlockForestEye extends BlockModContainer { return new TileForestEye(); } + @Override + public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) { + return LexiconData.forestEye; + } + } diff --git a/MODSRC/vazkii/botania/common/crafting/ModCrafingRecipes.java b/MODSRC/vazkii/botania/common/crafting/ModCrafingRecipes.java index b6c372ec0..f5f215140 100644 --- a/MODSRC/vazkii/botania/common/crafting/ModCrafingRecipes.java +++ b/MODSRC/vazkii/botania/common/crafting/ModCrafingRecipes.java @@ -109,6 +109,7 @@ public final class ModCrafingRecipes { public static IRecipe recipeTinyPlanetBlock; public static IRecipe recipeAlchemyCatalyst; public static IRecipe recipeOpenCrate; + public static IRecipe recipeForestEye; public static void init() { // Lexicon Recipe @@ -575,6 +576,14 @@ public final class ModCrafingRecipes { "WWW", "W W", "W W", 'W', new ItemStack(ModBlocks.livingwood, 1, 1)); recipeOpenCrate = BotaniaAPI.getLatestAddedRecipe(); + + // Eye of the Ancients Recipe + addOreDictRecipe(new ItemStack(ModBlocks.forestEye), + "MSM", "SES", "MSM", + 'M', LibOreDict.MANA_STEEL, + 'S', LibOreDict.LIVING_ROCK, + 'E', new ItemStack(Items.ender_eye)); + recipeForestEye = BotaniaAPI.getLatestAddedRecipe(); } private static void addOreDictRecipe(ItemStack output, Object... recipe) { diff --git a/MODSRC/vazkii/botania/common/lexicon/LexiconData.java b/MODSRC/vazkii/botania/common/lexicon/LexiconData.java index 16de4dbf1..57016a954 100644 --- a/MODSRC/vazkii/botania/common/lexicon/LexiconData.java +++ b/MODSRC/vazkii/botania/common/lexicon/LexiconData.java @@ -100,6 +100,7 @@ public final class LexiconData { public static LexiconEntry turntable; public static LexiconEntry alchemy; public static LexiconEntry openCrate; + public static LexiconEntry forestEye; public static LexiconEntry manaBlaster; public static LexiconEntry grassSeeds; @@ -309,6 +310,9 @@ public final class LexiconData { openCrate = new BLexiconEntry(LibLexicon.DEVICE_OPEN_CRATE, categoryDevices); openCrate.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCrafingRecipes.recipeOpenCrate)); + forestEye = new BLexiconEntry(LibLexicon.DEVICE_FOREST_EYE, categoryDevices); + forestEye.setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCrafingRecipes.recipeForestEye)); + // TOOLS ENTRIES manaBlaster = new BLexiconEntry(LibLexicon.TOOL_MANA_BLASTER, categoryTools); manaBlaster.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageCraftingRecipe("3", ModCrafingRecipes.recipeManaBlaster)); diff --git a/MODSRC/vazkii/botania/common/lib/LibLexicon.java b/MODSRC/vazkii/botania/common/lib/LibLexicon.java index 4c1e597e6..b45e067d1 100644 --- a/MODSRC/vazkii/botania/common/lib/LibLexicon.java +++ b/MODSRC/vazkii/botania/common/lib/LibLexicon.java @@ -81,6 +81,7 @@ public final class LibLexicon { public static final String DEVICE_TURNTABLE = "turntable"; public static final String DEVICE_ALCHEMY = "manaAlchemy"; public static final String DEVICE_OPEN_CRATE = "openCrate"; + public static final String DEVICE_FOREST_EYE = "forestEye"; public static final String TOOL_MANA_BLASTER = "manaBlaster"; public static final String TOOL_GRASS_SEEDS = "grassSeeds"; diff --git a/resources/assets/botania/lang/en_US.lang b/resources/assets/botania/lang/en_US.lang index b02767bd4..abc6af98b 100644 --- a/resources/assets/botania/lang/en_US.lang +++ b/resources/assets/botania/lang/en_US.lang @@ -670,6 +670,12 @@ botania.page.manaAlchemy15=Making &1Name Tags&0 botania.page.manaAlchemy16=Creating &1Ender Pearls&0 botania.page.manaAlchemy17=Breaking &1Cobblestone&0 into &1Sand&0 +# -- EYE OF THE ANCIENTS +botania.entry.forestEye=Eye of the Ancients +botania.page.forestEye0=As the Ancients who used to watch over the world always looked for the living beings on it, this block, the &1Eye of the Ancients&0 will do just that.
By attaching a &1Comparator&0 next to it, it'll send out a redstone signal equivalent to the amount of animals it can find. +botania.page.forestEye1=The counting only starts at 2, so, with 2 animals around, it'd output a signal of strength 3, with 3 animals, of strength 4 and so on.
Lastly, the time has worn down the sight of the Ancients, so this block can only see animals in about 6 blocks in any direction. +botania.page.forestEye2=Now you see me... + # -- OPEN CRATE botania.entry.openCrate=Open Crate botania.page.openCrate0=Sometimes devices like &1Droppers&0 or &1Dispensers&0 aren't precise or fast enough. A simple solution is to make a crate and punch a hole in the bottom.
Yeah, it's that simple. The &1Open Crate&0 accepts items from &1Hoppers&0 or any other means of inserting items, and obviously, drops them directly below it.