diff --git a/build.properties b/build.properties index 35524d4d7..2e50e145d 100644 --- a/build.properties +++ b/build.properties @@ -1,9 +1,9 @@ # -#Tue Nov 17 22:57:23 GMT 2015 +#Thu Nov 26 22:01:32 GMT 2015 version=r1.7 dir_output=../Build Output/Botania/ -mc_version=1.7.10 -forge_version=10.13.2.1291 dir_repo=./ -build_number=235 +forge_version=10.13.2.1291 +mc_version=1.7.10 +build_number=238 mod_name=Botania diff --git a/contributing.md b/contributing.md index 7edd52275..ce03bf13f 100644 --- a/contributing.md +++ b/contributing.md @@ -7,8 +7,7 @@ Hey there. Looks like you want to contribute with an issue. Great. Here's what y * Unless you manually update every mod on the pack to the latest, issues regarding any public modpack that is not officially maintained or supported by the botania developers (the ones in the modpack section of the website are not) are **not accepted**; * Duplicate issues or issues that have been solved already (use the search feature!) will be closed without asking. * Do not tag your issues' names. "Something Broke" is prefered to "[Bug] Something Broke" because there's a proper label system in place. - * Post suggestions or ideas on reddit or the forums. This is for bugs, not ideas. Unless I really like them and want to keep the issue open as a reminder (unlikely), they'll be closed without comment. - * If you ARE going to post a suggestion, which you shouldn't, post ONE, not a wishlist. + * Suggestions are **not** accepted here. Post them on the forums or reddit instead. If there's any still open they're old ones before this rule was added. The following "bugs" are not accepted: * Intended Behaviour diff --git a/src/main/java/vazkii/botania/api/BotaniaAPI.java b/src/main/java/vazkii/botania/api/BotaniaAPI.java index 8c627f937..f69477af5 100644 --- a/src/main/java/vazkii/botania/api/BotaniaAPI.java +++ b/src/main/java/vazkii/botania/api/BotaniaAPI.java @@ -83,8 +83,9 @@ public final class BotaniaAPI { public static Map oreWeights = new HashMap(); public static Map oreWeightsNether = new HashMap(); public static Map seeds = new HashMap(); - public static Set looniumBlacklist = new LinkedHashSet(); + public static Set looniumBlacklist = new LinkedHashSet(); public static Set paintableBlocks = new LinkedHashSet(); + public static Set magnetBlacklist = new LinkedHashSet(); public static ArmorMaterial manasteelArmorMaterial = EnumHelper.addArmorMaterial("MANASTEEL", 16, new int[] { 2, 6, 5, 2 }, 18); public static ToolMaterial manasteelToolMaterial = EnumHelper.addToolMaterial("MANASTEEL", 3, 300, 6.2F, 2F, 20); @@ -214,7 +215,7 @@ public final class BotaniaAPI { registerModWiki("EnderIO", new SimpleWikiProvider("EnderIO Wiki", "http://wiki.enderio.com/%s")); registerModWiki("TropiCraft", new SimpleWikiProvider("Tropicraft Wiki", "http://wiki.tropicraft.net/wiki/%s")); registerModWiki("RandomThings", new SimpleWikiProvider("Random Things Wiki", "http://randomthingsminecraftmod.wikispaces.com/%s")); - registerModWiki("Witchery", new SimpleWikiProvider("Witchery Wiki", "https://sites.google.com/site/witcherymod/%s", "-")); + registerModWiki("Witchery", new SimpleWikiProvider("Witchery Wiki", "https://sites.google.com/site/witcherymod/%s", "-", true)); registerModWiki("AppliedEnergistics2", new SimpleWikiProvider("AE2 Wiki", "http://ae-mod.info/%s")); registerModWiki("BigReactors", technicWiki); registerModWiki("BuildCraft|Core", buildcraftWiki); @@ -281,6 +282,47 @@ public final class BotaniaAPI { paintableBlocks.add(paintable); return paintable; } + + /** + * Blacklists an item from being pulled by the Ring of Magnetization. + * Short.MAX_VALUE can be used as the stack's damage for a wildcard. + */ + public static void blacklistItemFromMagnet(ItemStack stack) { + String key = getMagnetKey(stack); + magnetBlacklist.add(key); + } + + /** + * Blacklists a block from having items on top of it being pulled by the Ring of Magnetization. + * Short.MAX_VALUE can be used as meta for a wildcard. + */ + public static void blacklistBlockFromMagnet(Block block, int meta) { + String key = getMagnetKey(block, meta); + magnetBlacklist.add(key); + } + + public static boolean isItemBlacklistedFromMagnet(ItemStack stack) { + if(stack.getItemDamage() != Short.MAX_VALUE) { + ItemStack copy = new ItemStack(stack.getItem(), 0, Short.MAX_VALUE); + boolean general = isItemBlacklistedFromMagnet(copy); + if(general) + return true; + } + + String key = getMagnetKey(stack); + return magnetBlacklist.contains(key); + } + + public static boolean isBlockBlacklistedFromMagnet(Block block, int meta) { + if(meta != Short.MAX_VALUE) { + boolean general = isBlockBlacklistedFromMagnet(block, Short.MAX_VALUE); + if(general) + return true; + } + + String key = getMagnetKey(block, meta); + return magnetBlacklist.contains(key); + } /** * Registers a Petal Recipe. @@ -559,4 +601,16 @@ public final class BotaniaAPI { public static Set getAllSubTiles() { return subTiles.keySet(); } + + private static String getMagnetKey(ItemStack stack) { + if(stack == null) + return ""; + + return "i_" + stack.getItem().getUnlocalizedName() + "@" + stack.getItemDamage(); + } + + private static String getMagnetKey(Block block, int meta) { + return "bm_" + block.getUnlocalizedName() + "@" + meta; + } + } diff --git a/src/main/java/vazkii/botania/api/internal/DummyMethodHandler.java b/src/main/java/vazkii/botania/api/internal/DummyMethodHandler.java index d8eb34330..8b5203632 100644 --- a/src/main/java/vazkii/botania/api/internal/DummyMethodHandler.java +++ b/src/main/java/vazkii/botania/api/internal/DummyMethodHandler.java @@ -14,6 +14,7 @@ import java.util.List; import net.minecraft.client.gui.ScaledResolution; import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.inventory.IInventory; @@ -200,11 +201,15 @@ public class DummyMethodHandler implements IInternalMethodHandler { return false; } - @Override public void breakOnAllCursors(EntityPlayer player, Item item, ItemStack stack, int x, int y, int z, int side) { // NO-OP } + + @Override + public boolean hasSolegnoliaAround(Entity e) { + return false; + } @Override public long getWorldElapsedTicks() { diff --git a/src/main/java/vazkii/botania/api/internal/IInternalMethodHandler.java b/src/main/java/vazkii/botania/api/internal/IInternalMethodHandler.java index 9061812e2..ce1c5c29c 100644 --- a/src/main/java/vazkii/botania/api/internal/IInternalMethodHandler.java +++ b/src/main/java/vazkii/botania/api/internal/IInternalMethodHandler.java @@ -14,6 +14,7 @@ import java.util.List; import net.minecraft.client.gui.ScaledResolution; import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.IInventory; import net.minecraft.item.Item; @@ -94,6 +95,8 @@ public interface IInternalMethodHandler { public void breakOnAllCursors(EntityPlayer player, Item item, ItemStack stack, int x, int y, int z, int side); + public boolean hasSolegnoliaAround(Entity e); + @SideOnly(Side.CLIENT) public void drawSimpleManaHUD(int color, int mana, int maxMana, String name, ScaledResolution res); diff --git a/src/main/java/vazkii/botania/api/lexicon/BotaniaTutorialStartEvent.java b/src/main/java/vazkii/botania/api/lexicon/BotaniaTutorialStartEvent.java new file mode 100644 index 000000000..d1e60d045 --- /dev/null +++ b/src/main/java/vazkii/botania/api/lexicon/BotaniaTutorialStartEvent.java @@ -0,0 +1,29 @@ +/** + * This class was created by . It's distributed as + * part of the Botania Mod. Get the Source Code in github: + * https://github.com/Vazkii/Botania + * + * Botania is Open Source and distributed under the + * Botania License: http://botaniamod.net/license.php + * + * File Created @ [04/12/2015, 18:29:56 (GMT)] + */ +package vazkii.botania.api.lexicon; + +import java.util.Queue; + +import cpw.mods.fml.common.eventhandler.Event; + +/** + * Fired when the Lexica Botania's tutorial is started. You can add your + * own entries to the tutorial here. Please use this responsibly. + */ +public class BotaniaTutorialStartEvent extends Event { + + public final Queue tutorial; + + public BotaniaTutorialStartEvent(Queue tutorial) { + this.tutorial = tutorial; + } + +} diff --git a/src/main/java/vazkii/botania/api/mana/ICompositableLens.java b/src/main/java/vazkii/botania/api/mana/ICompositableLens.java new file mode 100644 index 000000000..d073eb89e --- /dev/null +++ b/src/main/java/vazkii/botania/api/mana/ICompositableLens.java @@ -0,0 +1,32 @@ +/** + * This class was created by . It's distributed as + * part of the Botania Mod. Get the Source Code in github: + * https://github.com/Vazkii/Botania + * + * Botania is Open Source and distributed under the + * Botania License: http://botaniamod.net/license.php + * + * File Created @ [Nov 23, 2015, 10:30:34 AM (GMT)] + */ +package vazkii.botania.api.mana; + +import net.minecraft.item.ItemStack; + +/** + * Have an Item implement this to be counted as a lens that can be combined with an ItemLens. + */ +public interface ICompositableLens extends ILens { + + /** + * Returns the properties of the itemstack, used to check if two lenses can combine. + */ + public int getProps(ItemStack stack); + + /** + * Checks if the lens is combinable. + */ + public boolean isCombinable(ItemStack stack); + +} + + diff --git a/src/main/java/vazkii/botania/api/package-info.java b/src/main/java/vazkii/botania/api/package-info.java index 80735fb05..a470db79d 100644 --- a/src/main/java/vazkii/botania/api/package-info.java +++ b/src/main/java/vazkii/botania/api/package-info.java @@ -1,4 +1,4 @@ -@API(owner = "Botania", apiVersion = "68", provides = "BotaniaAPI") +@API(owner = "Botania", apiVersion = "70", provides = "BotaniaAPI") package vazkii.botania.api; import cpw.mods.fml.common.API; diff --git a/src/main/java/vazkii/botania/api/subtile/signature/BasicSignature.java b/src/main/java/vazkii/botania/api/subtile/signature/BasicSignature.java index a17938739..7657aedba 100644 --- a/src/main/java/vazkii/botania/api/subtile/signature/BasicSignature.java +++ b/src/main/java/vazkii/botania/api/subtile/signature/BasicSignature.java @@ -10,10 +10,18 @@ */ package vazkii.botania.api.subtile.signature; +import java.util.List; + import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; +import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.IIcon; +import net.minecraft.util.StatCollector; import vazkii.botania.api.BotaniaAPI; +import vazkii.botania.api.subtile.SubTileEntity; +import vazkii.botania.api.subtile.SubTileFunctional; +import vazkii.botania.api.subtile.SubTileGenerating; /** * A basic (and fallback) implementation of SubTileSignature. @@ -49,6 +57,31 @@ public class BasicSignature extends SubTileSignature { public String getName() { return name; } + + public String getType() { + Class clazz = BotaniaAPI.getSubTileMapping(name); + + if(clazz == null) + return "uwotm8"; + + System.out.println(clazz + " " + clazz.isAssignableFrom(SubTileGenerating.class)); + + if(clazz.getAnnotation(PassiveFlower.class) != null) + return "botania.flowerType.passiveGenerating"; + + if(SubTileGenerating.class.isAssignableFrom(clazz)) + return "botania.flowerType.generating"; + + if(SubTileFunctional.class.isAssignableFrom(clazz)) + return "botania.flowerType.functional"; + + return "botania.flowerType.misc"; + } + + @Override + public void addTooltip(ItemStack stack, EntityPlayer player, List tooltip) { + tooltip.add(EnumChatFormatting.BLUE + StatCollector.translateToLocal(getType())); + } private String unlocalizedName(String end) { return "tile.botania:" + SubTileSignature.SPECIAL_FLOWER_PREFIX + name + end; diff --git a/src/main/java/vazkii/botania/api/subtile/signature/PassiveFlower.java b/src/main/java/vazkii/botania/api/subtile/signature/PassiveFlower.java new file mode 100644 index 000000000..4a4f902de --- /dev/null +++ b/src/main/java/vazkii/botania/api/subtile/signature/PassiveFlower.java @@ -0,0 +1,30 @@ +/** + * This class was created by . It's distributed as + * part of the Botania Mod. Get the Source Code in github: + * https://github.com/Vazkii/Botania + * + * Botania is Open Source and distributed under the + * Botania License: http://botaniamod.net/license.php + * + * File Created @ [04/12/2015, 16:47:01 (GMT)] + */ +package vazkii.botania.api.subtile.signature; + +import static java.lang.annotation.ElementType.TYPE; +import static java.lang.annotation.RetentionPolicy.RUNTIME; + +import java.lang.annotation.Retention; +import java.lang.annotation.Target; + +import cpw.mods.fml.common.eventhandler.EventPriority; + +/** + * This annotation used for detecting whether a SubTileEntity + * is a passive flower without having to instantiate it. This + * is used for the flowers' tooltips. + */ +@Retention(value = RUNTIME) +@Target(value = TYPE) +public @interface PassiveFlower { + +} diff --git a/src/main/java/vazkii/botania/api/wiki/SimpleWikiProvider.java b/src/main/java/vazkii/botania/api/wiki/SimpleWikiProvider.java index 9e0fa81ed..bfa418986 100644 --- a/src/main/java/vazkii/botania/api/wiki/SimpleWikiProvider.java +++ b/src/main/java/vazkii/botania/api/wiki/SimpleWikiProvider.java @@ -20,15 +20,28 @@ import org.apache.commons.lang3.text.WordUtils; public class SimpleWikiProvider implements IWikiProvider { final String name, urlBase, replacement; + final boolean lowercase; public SimpleWikiProvider(String name, String urlBase) { this(name, urlBase, "%20"); } + public SimpleWikiProvider(String name, String urlBase, boolean lowercase) { + this(name, urlBase, "%20", lowercase); + } + public SimpleWikiProvider(String name, String urlBase, String replacement) { this.name = name; this.urlBase = urlBase; this.replacement = replacement; + this.lowercase = false; + } + + public SimpleWikiProvider(String name, String urlBase, String replacement, boolean lowercase) { + this.name = name; + this.urlBase = urlBase; + this.replacement = replacement; + this.lowercase = lowercase; } @Override @@ -61,7 +74,12 @@ public class SimpleWikiProvider implements IWikiProvider { String name = getBlockName(world, pos); if(name == null) return null; - return String.format(urlBase, WordUtils.capitalizeFully(name).replaceAll(" ", replacement)); + + if(lowercase) { + return String.format(urlBase, name.toLowerCase().replaceAll(" ", replacement)); + } else { + return String.format(urlBase, WordUtils.capitalizeFully(name).replaceAll(" ", replacement)); + } } @Override diff --git a/src/main/java/vazkii/botania/client/core/handler/ClientTickHandler.java b/src/main/java/vazkii/botania/client/core/handler/ClientTickHandler.java index 570cec57a..844c3b43a 100644 --- a/src/main/java/vazkii/botania/client/core/handler/ClientTickHandler.java +++ b/src/main/java/vazkii/botania/client/core/handler/ClientTickHandler.java @@ -72,6 +72,7 @@ public class ClientTickHandler { GuiScreen gui = Minecraft.getMinecraft().currentScreen; if(gui == null || !gui.doesGuiPauseGame()) { ticksInGame++; + partialTicks = 0; EntityPlayer player = Minecraft.getMinecraft().thePlayer; if(player != null) { diff --git a/src/main/java/vazkii/botania/client/core/handler/HUDHandler.java b/src/main/java/vazkii/botania/client/core/handler/HUDHandler.java index 642808d40..08757960e 100644 --- a/src/main/java/vazkii/botania/client/core/handler/HUDHandler.java +++ b/src/main/java/vazkii/botania/client/core/handler/HUDHandler.java @@ -272,12 +272,7 @@ public final class HUDHandler { int x = res.getScaledWidth() / 2 - 11; int y = res.getScaledHeight() / 2 + 10; - boolean diluted = false; int u = tile.getCurrentMana() >= recipe.getManaToConsume() ? 0 : 22; - if(u == 0 && tile.getBlockMetadata() == 2 && recipe.getOutput().getItem() != Item.getItemFromBlock(ModBlocks.pool)) { - u = 44; - diluted = true; - } int v = mc.thePlayer.getCommandSenderName().equals("haighyorkie") && mc.thePlayer.isSneaking() ? 23 : 8; GL11.glEnable(GL11.GL_BLEND); @@ -293,11 +288,6 @@ public final class HUDHandler { RenderItem.getInstance().renderItemOverlayIntoGUI(mc.fontRenderer, mc.renderEngine, recipe.getOutput(), x + 26, y); net.minecraft.client.renderer.RenderHelper.disableStandardItemLighting(); - if(diluted) { - String s = StatCollector.translateToLocal("botaniamisc.pay2win"); - mc.fontRenderer.drawStringWithShadow(s, res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(s) / 2, y + 20, 0xFF8888); - } - GL11.glDisable(GL11.GL_LIGHTING); GL11.glDisable(GL11.GL_BLEND); diff --git a/src/main/java/vazkii/botania/client/core/handler/MultiblockRenderHandler.java b/src/main/java/vazkii/botania/client/core/handler/MultiblockRenderHandler.java index f60e46c43..986ce1c0f 100644 --- a/src/main/java/vazkii/botania/client/core/handler/MultiblockRenderHandler.java +++ b/src/main/java/vazkii/botania/client/core/handler/MultiblockRenderHandler.java @@ -47,11 +47,16 @@ public final class MultiblockRenderHandler { public static MultiblockSet currentMultiblock; public static ChunkCoordinates anchor; public static int angle; + public static int dimension; public static void setMultiblock(MultiblockSet set) { currentMultiblock = set; anchor = null; angle = 0; + + Minecraft mc = Minecraft.getMinecraft(); + if(mc.theWorld != null) + dimension = mc.theWorld.provider.dimensionId; } @SubscribeEvent @@ -73,7 +78,7 @@ public final class MultiblockRenderHandler { } private void renderPlayerLook(EntityPlayer player, MovingObjectPosition src) { - if(currentMultiblock != null) { + if(currentMultiblock != null && dimension == player.worldObj.provider.dimensionId) { int anchorX = anchor != null ? anchor.posX : src.blockX; int anchorY = anchor != null ? anchor.posY : src.blockY; int anchorZ = anchor != null ? anchor.posZ : src.blockZ; diff --git a/src/main/java/vazkii/botania/client/core/handler/PersistentVariableHelper.java b/src/main/java/vazkii/botania/client/core/handler/PersistentVariableHelper.java index e00303637..49c0bd42b 100644 --- a/src/main/java/vazkii/botania/client/core/handler/PersistentVariableHelper.java +++ b/src/main/java/vazkii/botania/client/core/handler/PersistentVariableHelper.java @@ -85,8 +85,10 @@ public final class PersistentVariableHelper { for(int i = 0; i < count; i++) { NBTTagCompound bookmarkCmp = bookmarksCmp.getCompoundTag(TAG_BOOKMARK_PREFIX + i); GuiLexicon gui = GuiLexicon.create(bookmarkCmp); - if(gui != null) + if(gui != null) { GuiLexicon.bookmarks.add(gui); + GuiLexicon.bookmarkKeys.add(gui.getNotesKey()); + } } } diff --git a/src/main/java/vazkii/botania/client/core/handler/TooltipAdditionDisplayHandler.java b/src/main/java/vazkii/botania/client/core/handler/TooltipAdditionDisplayHandler.java index 56179cc92..6295716df 100644 --- a/src/main/java/vazkii/botania/client/core/handler/TooltipAdditionDisplayHandler.java +++ b/src/main/java/vazkii/botania/client/core/handler/TooltipAdditionDisplayHandler.java @@ -146,6 +146,7 @@ public final class TooltipAdditionDisplayHandler { mc.thePlayer.inventory.currentItem = lexSlot; Botania.proxy.setEntryToOpen(data.entry); Botania.proxy.setLexiconStack(lexiconStack); + mc.thePlayer.closeScreen(); ItemLexicon.openBook(mc.thePlayer, lexiconStack, mc.theWorld, false); } diff --git a/src/main/java/vazkii/botania/client/gui/bag/SlotLocked.java b/src/main/java/vazkii/botania/client/gui/SlotLocked.java similarity index 95% rename from src/main/java/vazkii/botania/client/gui/bag/SlotLocked.java rename to src/main/java/vazkii/botania/client/gui/SlotLocked.java index 6ba8e937d..72b7ccadd 100644 --- a/src/main/java/vazkii/botania/client/gui/bag/SlotLocked.java +++ b/src/main/java/vazkii/botania/client/gui/SlotLocked.java @@ -8,7 +8,7 @@ * * File Created @ [Sep 6, 2015, 1:11:25 AM (GMT)] */ -package vazkii.botania.client.gui.bag; +package vazkii.botania.client.gui; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.IInventory; diff --git a/src/main/java/vazkii/botania/client/gui/bag/ContainerFlowerBag.java b/src/main/java/vazkii/botania/client/gui/bag/ContainerFlowerBag.java index 6cd2ca8aa..9a9de171b 100644 --- a/src/main/java/vazkii/botania/client/gui/bag/ContainerFlowerBag.java +++ b/src/main/java/vazkii/botania/client/gui/bag/ContainerFlowerBag.java @@ -10,6 +10,7 @@ */ package vazkii.botania.client.gui.bag; +import vazkii.botania.client.gui.SlotLocked; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.Container; import net.minecraft.inventory.IInventory; diff --git a/src/main/java/vazkii/botania/client/gui/box/ContainerBaubleBox.java b/src/main/java/vazkii/botania/client/gui/box/ContainerBaubleBox.java new file mode 100644 index 000000000..24d54be75 --- /dev/null +++ b/src/main/java/vazkii/botania/client/gui/box/ContainerBaubleBox.java @@ -0,0 +1,122 @@ +/** + * This class was created by . It's distributed as + * part of the Botania Mod. Get the Source Code in github: + * https://github.com/Vazkii/Botania + * + * Botania is Open Source and distributed under the + * Botania License: http://botaniamod.net/license.php + * + * File Created @ [25/11/2015, 19:59:06 (GMT)] + */ +package vazkii.botania.client.gui.box; + +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.inventory.Container; +import net.minecraft.inventory.IInventory; +import net.minecraft.inventory.Slot; +import net.minecraft.item.ItemStack; +import vazkii.botania.api.mana.IManaItem; +import vazkii.botania.client.gui.SlotLocked; +import baubles.api.BaubleType; +import baubles.api.IBauble; +import baubles.common.container.InventoryBaubles; +import baubles.common.container.SlotBauble; +import baubles.common.lib.PlayerHandler; + +public class ContainerBaubleBox extends Container { + + InventoryBaubleBox baubleBoxInv; + InventoryBaubles baubles; + + public ContainerBaubleBox(EntityPlayer player) { + int i; + int j; + + int slot = player.inventory.currentItem; + IInventory playerInv = player.inventory; + baubleBoxInv = new InventoryBaubleBox(player, slot); + + baubles = new InventoryBaubles(player); + baubles.setEventHandler(this); + if(!player.worldObj.isRemote) + baubles.stackList = PlayerHandler.getPlayerBaubles(player).stackList; + + addSlotToContainer(new SlotBauble(baubles, BaubleType.AMULET, 0, 8, 8 + 0 * 18)); + addSlotToContainer(new SlotBauble(baubles, BaubleType.RING, 1, 8, 8 + 1 * 18)); + addSlotToContainer(new SlotBauble(baubles, BaubleType.RING, 2, 8, 8 + 2 * 18)); + addSlotToContainer(new SlotBauble(baubles, BaubleType.BELT, 3, 8, 8 + 3 * 18)); + + for(i = 0; i < 4; ++i) + for(j = 0; j < 6; ++j) { + int k = j + i * 6; + addSlotToContainer(new SlotAnyBauble(baubleBoxInv, k, 62 + j * 18, 8 + i * 18)); + } + + for(i = 0; i < 3; ++i) + for(j = 0; j < 9; ++j) + addSlotToContainer(new Slot(playerInv, j + i * 9 + 9, 8 + j * 18, 84 + i * 18)); + + for(i = 0; i < 9; ++i) { + if(player.inventory.currentItem == i) + addSlotToContainer(new SlotLocked(playerInv, i, 8 + i * 18, 142)); + else addSlotToContainer(new Slot(playerInv, i, 8 + i * 18, 142)); + } + + } + + @Override + public boolean canInteractWith(EntityPlayer player) { + boolean can = baubleBoxInv.isUseableByPlayer(player); + if(!can) + onContainerClosed(player); + + return can; + } + + @Override + public void onContainerClosed(EntityPlayer player) { + super.onContainerClosed(player); + baubleBoxInv.pushInventory(); + + if(!player.worldObj.isRemote) + PlayerHandler.setPlayerBaubles(player, baubles); + } + + @Override + public void putStacksInSlots(ItemStack[] p_75131_1_) { + baubles.blockEvents = true; + super.putStacksInSlots(p_75131_1_); + } + + @Override + public ItemStack transferStackInSlot(EntityPlayer p_82846_1_, int p_82846_2_) { + ItemStack itemstack = null; + Slot slot = (Slot)inventorySlots.get(p_82846_2_); + + if(slot != null && slot.getHasStack()) { + ItemStack itemstack1 = slot.getStack(); + itemstack = itemstack1.copy(); + + System.out.println(p_82846_2_ + " " + itemstack); + if(p_82846_2_ < 28) { + if(!mergeItemStack(itemstack1, 28, 64, true)) + return null; + } else { + if(itemstack1 != null && (itemstack1.getItem() instanceof IBauble || itemstack1.getItem() instanceof IManaItem) && !mergeItemStack(itemstack1, 4, 28, false)) + return null; + } + + if(itemstack1.stackSize == 0) + slot.putStack((ItemStack)null); + else slot.onSlotChanged(); + + if(itemstack1.stackSize == itemstack.stackSize) + return null; + + slot.onPickupFromSlot(p_82846_1_, itemstack1); + } + + return itemstack; + } + +} diff --git a/src/main/java/vazkii/botania/client/gui/box/GuiBaubleBox.java b/src/main/java/vazkii/botania/client/gui/box/GuiBaubleBox.java new file mode 100644 index 000000000..250c1086c --- /dev/null +++ b/src/main/java/vazkii/botania/client/gui/box/GuiBaubleBox.java @@ -0,0 +1,53 @@ +/** + * This class was created by . It's distributed as + * part of the Botania Mod. Get the Source Code in github: + * https://github.com/Vazkii/Botania + * + * Botania is Open Source and distributed under the + * Botania License: http://botaniamod.net/license.php + * + * File Created @ [25/11/2015, 19:59:11 (GMT)] + */ +package vazkii.botania.client.gui.box; + +import net.minecraft.client.gui.inventory.GuiInventory; +import net.minecraft.client.renderer.InventoryEffectRenderer; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.inventory.Slot; +import net.minecraft.util.ResourceLocation; + +import org.lwjgl.opengl.GL11; + +import vazkii.botania.client.lib.LibResources; + +public class GuiBaubleBox extends InventoryEffectRenderer { + + private static final ResourceLocation texture = new ResourceLocation(LibResources.GUI_BAUBLE_BOX); + + public GuiBaubleBox(EntityPlayer player) { + super(new ContainerBaubleBox(player)); + } + + @Override + protected boolean checkHotbarKeys(int p_146983_1_) { + return false; + } + + @Override + protected void drawGuiContainerBackgroundLayer(float p_146976_1_, int p_146976_2_, int p_146976_3_) { + GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); + mc.getTextureManager().bindTexture(texture); + int k = (width - xSize) / 2; + int l = (height - ySize) / 2; + drawTexturedModalRect(k, l, 0, 0, xSize, ySize); + + for(int i1 = 0; i1 < 4; ++i1) { + Slot slot = (Slot) inventorySlots.inventorySlots.get(i1); + if(slot.getHasStack() && slot.getSlotStackLimit() == 1) + drawTexturedModalRect(k+slot.xDisplayPosition, l+slot.yDisplayPosition, 200, 0, 16, 16); + } + + GuiInventory.func_147046_a(this.guiLeft + 43, this.guiTop + 61, 20, (float)(this.guiLeft + 43 - p_146976_2_), (float)(this.guiTop + 45 - 30 - p_146976_3_), this.mc.thePlayer); + } + +} diff --git a/src/main/java/vazkii/botania/client/gui/box/InventoryBaubleBox.java b/src/main/java/vazkii/botania/client/gui/box/InventoryBaubleBox.java new file mode 100644 index 000000000..415eee637 --- /dev/null +++ b/src/main/java/vazkii/botania/client/gui/box/InventoryBaubleBox.java @@ -0,0 +1,160 @@ +/** + * This class was created by . It's distributed as + * part of the Botania Mod. Get the Source Code in github: + * https://github.com/Vazkii/Botania + * + * Botania is Open Source and distributed under the + * Botania License: http://botaniamod.net/license.php + * + * File Created @ [25/11/2015, 19:59:16 (GMT)] + */ +package vazkii.botania.client.gui.box; + +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.inventory.IInventory; +import net.minecraft.item.ItemStack; +import vazkii.botania.common.item.ItemBaubleBox; +import vazkii.botania.common.item.ModItems; +import vazkii.botania.common.lib.LibItemNames; + +public class InventoryBaubleBox implements IInventory { + + private static final ItemStack[] FALLBACK_INVENTORY = new ItemStack[16]; + + EntityPlayer player; + int slot; + ItemStack[] stacks = null; + + boolean invPushed = false; + ItemStack storedInv = null; + + public InventoryBaubleBox(EntityPlayer player, int slot) { + this.player = player; + this.slot = slot; + } + + public static boolean isBaubleBox(ItemStack stack) { + return stack != null && stack.getItem() == ModItems.baubleBox; + } + + ItemStack getStack() { + ItemStack stack = player.inventory.getStackInSlot(slot); + if(stack != null) + storedInv = stack; + return stack; + } + + ItemStack[] getInventory() { + if(stacks != null) + return stacks; + + ItemStack stack = getStack(); + if(isBaubleBox(getStack())) { + stacks = ItemBaubleBox.loadStacks(stack); + return stacks; + } + + return FALLBACK_INVENTORY; + } + + public void pushInventory() { + if(invPushed) + return; + + ItemStack stack = getStack(); + if(stack == null) + stack = storedInv; + + if(stack != null) { + ItemStack[] inv = getInventory(); + ItemBaubleBox.setStacks(stack, inv); + } + + invPushed = true; + } + + @Override + public int getSizeInventory() { + return 16; + } + + @Override + public ItemStack getStackInSlot(int i) { + return getInventory()[i]; + } + + @Override + public ItemStack decrStackSize(int i, int j) { + ItemStack[] inventorySlots = getInventory(); + if (inventorySlots[i] != null) { + ItemStack stackAt; + + if (inventorySlots[i].stackSize <= j) { + stackAt = inventorySlots[i]; + inventorySlots[i] = null; + return stackAt; + } else { + stackAt = inventorySlots[i].splitStack(j); + + if (inventorySlots[i].stackSize == 0) + inventorySlots[i] = null; + + return stackAt; + } + } + + return null; + } + + @Override + public ItemStack getStackInSlotOnClosing(int i) { + return getStackInSlot(i); + } + + @Override + public void setInventorySlotContents(int slot, ItemStack itemstack) { + ItemStack[] inventorySlots = getInventory(); + inventorySlots[slot] = itemstack; + } + + @Override + public int getInventoryStackLimit() { + return isBaubleBox(getStack()) ? 64 : 0; + } + + @Override + public boolean isUseableByPlayer(EntityPlayer entityplayer) { + return isBaubleBox(getStack()); + } + + @Override + public boolean isItemValidForSlot(int i, ItemStack itemstack) { + return isBaubleBox(getStack()); + } + + @Override + public boolean hasCustomInventoryName() { + return false; + } + + @Override + public void openInventory() { + // NO-OP + } + + @Override + public void closeInventory() { + // NO-OP + } + + @Override + public String getInventoryName() { + return LibItemNames.BAUBLE_BOX; + } + + @Override + public void markDirty() { + // NO-OP + } + +} diff --git a/src/main/java/vazkii/botania/client/gui/box/SlotAnyBauble.java b/src/main/java/vazkii/botania/client/gui/box/SlotAnyBauble.java new file mode 100644 index 000000000..60d7493b9 --- /dev/null +++ b/src/main/java/vazkii/botania/client/gui/box/SlotAnyBauble.java @@ -0,0 +1,40 @@ +/** + * This class was created by . It's distributed as + * part of the Botania Mod. Get the Source Code in github: + * https://github.com/Vazkii/Botania + * + * Botania is Open Source and distributed under the + * Botania License: http://botaniamod.net/license.php + * + * File Created @ [25/11/2015, 19:59:22 (GMT)] + */ +package vazkii.botania.client.gui.box; + +import baubles.api.IBauble; +import net.minecraft.inventory.Slot; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import vazkii.botania.api.mana.IManaItem; +import vazkii.botania.client.gui.bag.InventoryFlowerBag; +import vazkii.botania.common.block.ModBlocks; + +public class SlotAnyBauble extends Slot { + + InventoryBaubleBox inv; + + public SlotAnyBauble(InventoryBaubleBox p_i1824_1_, int p_i1824_2_, int p_i1824_3_, int p_i1824_4_) { + super(p_i1824_1_, p_i1824_2_, p_i1824_3_, p_i1824_4_); + inv = p_i1824_1_; + } + + @Override + public void onSlotChange(ItemStack oldStack, ItemStack newStack) { + inv.setInventorySlotContents(slotNumber, newStack); + } + + @Override + public boolean isItemValid(ItemStack stack) { + return stack.getItem() instanceof IBauble || stack.getItem() instanceof IManaItem; + } + +} diff --git a/src/main/java/vazkii/botania/client/gui/lexicon/GuiLexicon.java b/src/main/java/vazkii/botania/client/gui/lexicon/GuiLexicon.java index e569972b6..e79ccc963 100644 --- a/src/main/java/vazkii/botania/client/gui/lexicon/GuiLexicon.java +++ b/src/main/java/vazkii/botania/client/gui/lexicon/GuiLexicon.java @@ -32,11 +32,13 @@ import net.minecraft.util.ChatAllowedCharacters; import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.ResourceLocation; import net.minecraft.util.StatCollector; +import net.minecraftforge.common.MinecraftForge; import org.lwjgl.input.Keyboard; import org.lwjgl.opengl.GL11; import vazkii.botania.api.BotaniaAPI; +import vazkii.botania.api.lexicon.BotaniaTutorialStartEvent; import vazkii.botania.api.lexicon.LexiconCategory; import vazkii.botania.api.lexicon.LexiconEntry; import vazkii.botania.client.core.handler.ClientTickHandler; @@ -78,6 +80,7 @@ public class GuiLexicon extends GuiScreen { public static final int NOTES_BUTTON_ID = 1336; // random button tho public static final int MAX_BOOKMARK_COUNT = 8; public static List bookmarks = new ArrayList(); + public static List bookmarkKeys = new ArrayList(); boolean bookmarksNeedPopulation = false; public static Queue tutorial = new ArrayDeque(); @@ -392,19 +395,23 @@ public class GuiLexicon extends GuiScreen { public void handleBookmark(GuiButton par1GuiButton) { boolean modified = false; int i = par1GuiButton.id - BOOKMARK_START; + String key = getNotesKey(); if(i == bookmarks.size()) { - if(!bookmarks.contains(this)) { - bookmarks.add(this); + if(!bookmarkKeys.contains(key)) { + bookmarks.add(this.copy()); + bookmarkKeys.add(key); modified = true; } } else { if(isShiftKeyDown()) { bookmarks.remove(i); + bookmarkKeys.remove(i); + modified = true; } else { GuiLexicon bookmark = bookmarks.get(i).copy(); - Minecraft.getMinecraft().displayGuiScreen(bookmark); if(!bookmark.getTitle().equals(getTitle())) { + Minecraft.getMinecraft().displayGuiScreen(bookmark); if(bookmark instanceof IParented) ((IParented) bookmark).setParent(this); ClientTickHandler.notifyPageChange(); @@ -502,6 +509,7 @@ public class GuiLexicon extends GuiScreen { public static void startTutorial() { tutorial.clear(); + tutorial.add(LexiconData.lexicon); tutorial.add(LexiconData.flowers); tutorial.add(LexiconData.apothecary); @@ -513,17 +521,10 @@ public class GuiLexicon extends GuiScreen { tutorial.add(LexiconData.generatingIntro); tutorial.add(LexiconData.passiveGen); tutorial.add(LexiconData.daybloom); - tutorial.add(LexiconData.endoflame); - tutorial.add(LexiconData.openCrate); tutorial.add(LexiconData.functionalIntro); tutorial.add(LexiconData.runicAltar); - tutorial.add(LexiconData.baublesIntro); - tutorial.add(LexiconData.manaTablet); - tutorial.add(LexiconData.manasteelGear); - tutorial.add(LexiconData.dispenserTweaks); - if(SheddingHandler.hasShedding()) - tutorial.add(LexiconData.shedding); - tutorial.add(LexiconData.challenges); + + MinecraftForge.EVENT_BUS.post(new BotaniaTutorialStartEvent(tutorial)); } public final void putTutorialArrow() { diff --git a/src/main/java/vazkii/botania/client/gui/lexicon/GuiLexiconEntry.java b/src/main/java/vazkii/botania/client/gui/lexicon/GuiLexiconEntry.java index 80eb85c29..73c54230c 100644 --- a/src/main/java/vazkii/botania/client/gui/lexicon/GuiLexiconEntry.java +++ b/src/main/java/vazkii/botania/client/gui/lexicon/GuiLexiconEntry.java @@ -2,10 +2,10 @@ * This class was created by . It's distributed as * part of the Botania Mod. Get the Source Code in github: * https://github.com/Vazkii/Botania - * + * * Botania is Open Source and distributed under the * Botania License: http://botaniamod.net/license.php - * + * * File Created @ [Jan 14, 2014, 6:47:06 PM (GMT)] */ package vazkii.botania.client.gui.lexicon; @@ -161,7 +161,7 @@ public class GuiLexiconEntry extends GuiLexicon implements IGuiLexiconEntry, IPa break; case 3 : Minecraft mc = Minecraft.getMinecraft(); - String cmd = "/botania-share " + entry.unlocalizedName; + String cmd = "/botania-share " + entry.getUnlocalizedName(); mc.ingameGUI.getChatGUI().addToSentMessages(cmd); mc.thePlayer.sendChatMessage(cmd); diff --git a/src/main/java/vazkii/botania/client/lib/LibResources.java b/src/main/java/vazkii/botania/client/lib/LibResources.java index 3cbc6df06..b6237a71c 100644 --- a/src/main/java/vazkii/botania/client/lib/LibResources.java +++ b/src/main/java/vazkii/botania/client/lib/LibResources.java @@ -44,6 +44,7 @@ public final class LibResources { public static final String GUI_NEI_BLANK = PREFIX_GUI + "neiBlank.png"; public static final String GUI_NEI_BREWERY = PREFIX_GUI + "neiBrewery.png"; public static final String GUI_FLOWER_BAG = PREFIX_GUI + "flowerBag.png"; + public static final String GUI_BAUBLE_BOX = PREFIX_GUI + "baubleBox.png"; public static final String GUI_HUD_ICONS = PREFIX_GUI + "hudIcons.png"; public static final String GUI_STENCIL = PREFIX_GUI + "stencil.png"; @@ -104,6 +105,7 @@ public final class LibResources { public static final String MODEL_BREWERY = PREFIX_MODEL + "brewery.png"; public static final String MODEL_TRAVEL_BELT = PREFIX_MODEL + "travelBelt.png"; public static final String MODEL_SUPER_TRAVEL_BELT = PREFIX_MODEL + "superTravelBelt.png"; + public static final String MODEL_SPEED_UP_BELT = PREFIX_MODEL + "speedUpBelt.png"; public static final String MODEL_KNOCKBACK_BELT = PREFIX_MODEL + "knockbackBelt.png"; public static final String MODEL_HOLY_CLOAK = PREFIX_MODEL + "holyCloak.png"; public static final String MODEL_UNHOLY_CLOAK = PREFIX_MODEL + "unholyCloak.png"; @@ -114,6 +116,12 @@ public final class LibResources { public static final String MODEL_MINI_ISLAND_PODZOL = PREFIX_MODEL + "miniIslandPodzol.png"; public static final String MODEL_MINI_ISLAND_MYCEL = PREFIX_MODEL + "miniIslandMycelium.png"; public static final String MODEL_MINI_ISLAND_SNOW = PREFIX_MODEL + "miniIslandSnow.png"; + public static final String MODEL_MINI_ISLAND_DRY = PREFIX_MODEL + "miniIslandDry.png"; + public static final String MODEL_MINI_ISLAND_GOLDEN = PREFIX_MODEL + "miniIslandGolden.png"; + public static final String MODEL_MINI_ISLAND_VIVID = PREFIX_MODEL + "miniIslandVivid.png"; + public static final String MODEL_MINI_ISLAND_SCORCHED = PREFIX_MODEL + "miniIslandScorched.png"; + public static final String MODEL_MINI_ISLAND_INFUSED = PREFIX_MODEL + "miniIslandInfused.png"; + public static final String MODEL_MINI_ISLAND_MUTATED = PREFIX_MODEL + "miniIslandMutated.png"; public static final String MODEL_PINK_WITHER = PREFIX_MODEL + "pinkWither.png"; public static final String MODEL_CRYSTAL_CUBE = PREFIX_MODEL + "crystalCube.png"; public static final String MODEL_INCENSE_PLATE = PREFIX_MODEL + "incensePlate.png"; diff --git a/src/main/java/vazkii/botania/client/model/armor/ModelArmorElementium.java b/src/main/java/vazkii/botania/client/model/armor/ModelArmorElementium.java index 5f6e67bfc..dd5e30f10 100644 --- a/src/main/java/vazkii/botania/client/model/armor/ModelArmorElementium.java +++ b/src/main/java/vazkii/botania/client/model/armor/ModelArmorElementium.java @@ -246,6 +246,7 @@ public class ModelArmorElementium extends ModelBiped { ItemStack itemstack = player.inventory.getCurrentItem(); heldItemRight = itemstack != null ? 1 : 0; + aimedBow = false; if (itemstack != null && player.getItemInUseCount() > 0) { EnumAction enumaction = itemstack.getItemUseAction(); diff --git a/src/main/java/vazkii/botania/client/model/armor/ModelArmorManasteel.java b/src/main/java/vazkii/botania/client/model/armor/ModelArmorManasteel.java index c468620ec..aca2b67fc 100644 --- a/src/main/java/vazkii/botania/client/model/armor/ModelArmorManasteel.java +++ b/src/main/java/vazkii/botania/client/model/armor/ModelArmorManasteel.java @@ -175,12 +175,13 @@ public class ModelArmorManasteel extends ModelBiped { ItemStack itemstack = player.inventory.getCurrentItem(); heldItemRight = itemstack != null ? 1 : 0; + aimedBow = false; if (itemstack != null && player.getItemInUseCount() > 0) { EnumAction enumaction = itemstack.getItemUseAction(); if (enumaction == EnumAction.block) heldItemRight = 3; - else if (enumaction == EnumAction.bow) + else if(enumaction == EnumAction.bow) aimedBow = true; } } diff --git a/src/main/java/vazkii/botania/client/model/armor/ModelArmorManaweave.java b/src/main/java/vazkii/botania/client/model/armor/ModelArmorManaweave.java index 62f47c178..657836e3d 100644 --- a/src/main/java/vazkii/botania/client/model/armor/ModelArmorManaweave.java +++ b/src/main/java/vazkii/botania/client/model/armor/ModelArmorManaweave.java @@ -176,6 +176,7 @@ public class ModelArmorManaweave extends ModelBiped { ItemStack itemstack = player.inventory.getCurrentItem(); heldItemRight = itemstack != null ? 1 : 0; + aimedBow = false; if (itemstack != null && player.getItemInUseCount() > 0) { EnumAction enumaction = itemstack.getItemUseAction(); diff --git a/src/main/java/vazkii/botania/client/model/armor/ModelArmorTerrasteel.java b/src/main/java/vazkii/botania/client/model/armor/ModelArmorTerrasteel.java index 70d840f3e..0215345f0 100644 --- a/src/main/java/vazkii/botania/client/model/armor/ModelArmorTerrasteel.java +++ b/src/main/java/vazkii/botania/client/model/armor/ModelArmorTerrasteel.java @@ -267,6 +267,7 @@ public class ModelArmorTerrasteel extends ModelBiped { ItemStack itemstack = player.inventory.getCurrentItem(); heldItemRight = itemstack != null ? 1 : 0; + aimedBow = false; if (itemstack != null && player.getItemInUseCount() > 0) { EnumAction enumaction = itemstack.getItemUseAction(); diff --git a/src/main/java/vazkii/botania/client/render/entity/RenderCorporeaSpark.java b/src/main/java/vazkii/botania/client/render/entity/RenderCorporeaSpark.java index db639df51..5dc731a27 100644 --- a/src/main/java/vazkii/botania/client/render/entity/RenderCorporeaSpark.java +++ b/src/main/java/vazkii/botania/client/render/entity/RenderCorporeaSpark.java @@ -35,9 +35,9 @@ public class RenderCorporeaSpark extends RenderSparkBase { } @Override - public void colorSpinningIcon(EntityCorporeaSpark entity) { + public void colorSpinningIcon(EntityCorporeaSpark entity, float a) { int network = Math.min(15, entity.getNetwork()); - GL11.glColor3f(EntitySheep.fleeceColorTable[network][0], EntitySheep.fleeceColorTable[network][1], EntitySheep.fleeceColorTable[network][2]); + GL11.glColor4f(EntitySheep.fleeceColorTable[network][0], EntitySheep.fleeceColorTable[network][1], EntitySheep.fleeceColorTable[network][2], a); } @Override diff --git a/src/main/java/vazkii/botania/client/render/entity/RenderSparkBase.java b/src/main/java/vazkii/botania/client/render/entity/RenderSparkBase.java index a6fa75208..15043e670 100644 --- a/src/main/java/vazkii/botania/client/render/entity/RenderSparkBase.java +++ b/src/main/java/vazkii/botania/client/render/entity/RenderSparkBase.java @@ -23,6 +23,7 @@ import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL12; import vazkii.botania.client.core.handler.ClientTickHandler; +import vazkii.botania.common.entity.EntitySpark; import vazkii.botania.common.item.ItemSpark; public class RenderSparkBase extends RenderEntity { @@ -41,7 +42,9 @@ public class RenderSparkBase extends RenderEntity { double time = ClientTickHandler.ticksInGame + par9; time += new Random(par1Entity.getEntityId()).nextInt(); - GL11.glColor4f(1F, 1F, 1F, 0.7F + 0.3F * (float) (Math.sin(time / 5.0) + 0.5) * 2); + float a = 0.1F + (1 - par1Entity.getDataWatcher().getWatchableObjectInt(EntitySpark.INVISIBILITY_DATA_WATCHER_KEY)) * 0.8F; + + GL11.glColor4f(1F, 1F, 1F, (0.7F + 0.3F * (float) (Math.sin(time / 5.0) + 0.5) * 2) * a); float scale = 0.75F + 0.1F * (float) Math.sin(time / 10); GL11.glScalef(scale, scale, scale); @@ -58,7 +61,7 @@ public class RenderSparkBase extends RenderEntity { if(spinningIcon != null) { GL11.glTranslatef(-0.02F + (float) Math.sin(time / 20) * 0.2F, 0.24F + (float) Math.cos(time / 20) * 0.2F, 0.005F); GL11.glScalef(0.2F, 0.2F, 0.2F); - colorSpinningIcon(tEntity); + colorSpinningIcon(tEntity, a); func_77026_a(tessellator, spinningIcon); } GL11.glPopMatrix(); @@ -74,7 +77,7 @@ public class RenderSparkBase extends RenderEntity { return ItemSpark.worldIcon; } - public void colorSpinningIcon(T entity) { + public void colorSpinningIcon(T entity, float a) { // NO-OP } diff --git a/src/main/java/vazkii/botania/common/block/BlockAltGrass.java b/src/main/java/vazkii/botania/common/block/BlockAltGrass.java index 0bb2f00a9..270d4acbc 100644 --- a/src/main/java/vazkii/botania/common/block/BlockAltGrass.java +++ b/src/main/java/vazkii/botania/common/block/BlockAltGrass.java @@ -15,9 +15,9 @@ import java.util.Random; import net.minecraft.block.Block; import net.minecraft.block.material.Material; -import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; @@ -28,13 +28,16 @@ import net.minecraft.world.World; import net.minecraftforge.common.EnumPlantType; import net.minecraftforge.common.IPlantable; import net.minecraftforge.common.util.ForgeDirection; +import vazkii.botania.api.lexicon.ILexiconable; +import vazkii.botania.api.lexicon.LexiconEntry; import vazkii.botania.client.core.helper.IconHelper; import vazkii.botania.common.Botania; import vazkii.botania.common.item.block.ItemBlockWithMetadataAndName; +import vazkii.botania.common.lexicon.LexiconData; import vazkii.botania.common.lib.LibBlockNames; import cpw.mods.fml.common.registry.GameRegistry; -public class BlockAltGrass extends BlockMod { +public class BlockAltGrass extends BlockMod implements ILexiconable { private static final int SUBTYPES = 6; IIcon[] icons; @@ -44,6 +47,7 @@ public class BlockAltGrass extends BlockMod { setHardness(0.6F); setStepSound(soundTypeGrass); setBlockName(LibBlockNames.ALT_GRASS); + setTickRandomly(true); } @Override @@ -93,9 +97,9 @@ public class BlockAltGrass extends BlockMod { } @Override - public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_) { + public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_) { return Blocks.dirt.getItemDropped(0, p_149650_2_, p_149650_3_); - } + } @Override public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z) { @@ -133,6 +137,10 @@ public class BlockAltGrass extends BlockMod { } break; } - } + } + @Override + public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) { + return LexiconData.grassSeeds; + } } diff --git a/src/main/java/vazkii/botania/common/block/BlockAltar.java b/src/main/java/vazkii/botania/common/block/BlockAltar.java index eb1c4b922..fac06805a 100644 --- a/src/main/java/vazkii/botania/common/block/BlockAltar.java +++ b/src/main/java/vazkii/botania/common/block/BlockAltar.java @@ -162,6 +162,19 @@ public class BlockAltar extends BlockModContainer implements ILexiconable { return false; } + @Override + public void fillWithRain(World world, int x, int y, int z) { + if(world.rand.nextInt(20) == 1) { + TileEntity tile = world.getTileEntity(x, y, z); + if(tile instanceof TileAltar) { + TileAltar altar = (TileAltar) tile; + if(!altar.hasLava && !altar.hasWater) + altar.setWater(true); + world.func_147453_f(x, y, z, this); + } + } + } + @Override public int damageDropped(int meta) { return meta; diff --git a/src/main/java/vazkii/botania/common/block/BlockFelPumpkin.java b/src/main/java/vazkii/botania/common/block/BlockFelPumpkin.java index c22cf7d89..9f439a05f 100644 --- a/src/main/java/vazkii/botania/common/block/BlockFelPumpkin.java +++ b/src/main/java/vazkii/botania/common/block/BlockFelPumpkin.java @@ -89,11 +89,11 @@ public class BlockFelPumpkin extends BlockMod implements ILexiconable { public void onDrops(LivingDropsEvent event) { if(event.entity instanceof EntityBlaze && event.entity.getEntityData().getBoolean(TAG_FEL_SPAWNED)) if(event.drops.isEmpty()) - event.drops.add(new EntityItem(event.entity.worldObj, event.entity.posX, event.entity.posY, event.entity.posZ, new ItemStack(Items.blaze_powder, 4))); + event.drops.add(new EntityItem(event.entity.worldObj, event.entity.posX, event.entity.posY, event.entity.posZ, new ItemStack(Items.blaze_powder, 6))); else for(EntityItem item : event.drops) { ItemStack stack = item.getEntityItem(); if(stack.getItem() == Items.blaze_rod) - item.setEntityItemStack(new ItemStack(Items.blaze_powder, stack.stackSize * 6)); + item.setEntityItemStack(new ItemStack(Items.blaze_powder, stack.stackSize * 10)); } } diff --git a/src/main/java/vazkii/botania/common/block/BlockGaiaHead.java b/src/main/java/vazkii/botania/common/block/BlockGaiaHead.java index 7d209302e..6aebf5e9e 100644 --- a/src/main/java/vazkii/botania/common/block/BlockGaiaHead.java +++ b/src/main/java/vazkii/botania/common/block/BlockGaiaHead.java @@ -10,11 +10,21 @@ */ package vazkii.botania.common.block; +import java.util.ArrayList; +import java.util.Random; + import net.minecraft.block.Block; import net.minecraft.block.BlockSkull; import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.init.Blocks; +import net.minecraft.init.Items; import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.nbt.NBTUtil; import net.minecraft.tileentity.TileEntity; +import net.minecraft.tileentity.TileEntitySkull; +import net.minecraft.util.IIcon; import net.minecraft.world.World; import vazkii.botania.common.block.tile.TileGaiaHead; import vazkii.botania.common.item.ModItems; @@ -28,6 +38,7 @@ public class BlockGaiaHead extends BlockSkull { public BlockGaiaHead() { setBlockName(LibBlockNames.GAIA_HEAD); + setHardness(1.0F); } @Override @@ -41,12 +52,33 @@ public class BlockGaiaHead extends BlockSkull { public Item getItem(World p_149694_1_, int p_149694_2_, int p_149694_3_, int p_149694_4_) { return ModItems.gaiaHead; } - + @Override public void registerBlockIcons(IIconRegister p_149651_1_) { // NO-OP } + + @Override + public ArrayList getDrops(World p_149749_1_, int p_149749_2_, int p_149749_3_, int p_149749_4_, int p_149749_6_, int fortune) { + ArrayList ret = new ArrayList(); + + if((p_149749_6_ & 8) == 0) { + ItemStack itemstack = new ItemStack(ModItems.gaiaHead, 1); + TileEntitySkull tileentityskull = (TileEntitySkull)p_149749_1_.getTileEntity(p_149749_2_, p_149749_3_, p_149749_4_); + if(tileentityskull == null) + return ret; + + ret.add(itemstack); + } + return ret; + } + + @Override + public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_) { + return ModItems.gaiaHead; + } + @Override public int getDamageValue(World p_149643_1_, int p_149643_2_, int p_149643_3_, int p_149643_4_) { return 0; @@ -62,4 +94,9 @@ public class BlockGaiaHead extends BlockSkull { return new TileGaiaHead(); } + @SideOnly(Side.CLIENT) + public IIcon getIcon(int p_149691_1_, int p_149691_2_) { + return Blocks.coal_block.getBlockTextureFromSide(p_149691_1_); + } + } diff --git a/src/main/java/vazkii/botania/common/block/decor/BlockShinyFlower.java b/src/main/java/vazkii/botania/common/block/decor/BlockShinyFlower.java index 7ea7a8ea1..ce60aa792 100644 --- a/src/main/java/vazkii/botania/common/block/decor/BlockShinyFlower.java +++ b/src/main/java/vazkii/botania/common/block/decor/BlockShinyFlower.java @@ -19,8 +19,10 @@ import net.minecraft.world.World; import thaumcraft.api.crafting.IInfusionStabiliser; import vazkii.botania.api.item.IHornHarvestable; import vazkii.botania.api.lexicon.LexiconEntry; +import vazkii.botania.client.core.helper.IconHelper; import vazkii.botania.common.block.BlockModFlower; import vazkii.botania.common.block.ModBlocks; +import vazkii.botania.common.core.handler.ConfigHandler; import vazkii.botania.common.integration.coloredlights.ColoredLightHelper; import vazkii.botania.common.lexicon.LexiconData; import vazkii.botania.common.lib.LibBlockNames; @@ -29,6 +31,9 @@ import cpw.mods.fml.common.Optional; @Optional.Interface(modid = "Thaumcraft", iface = "thaumcraft.api.crafting.IInfusionStabiliser", striprefs = true) public class BlockShinyFlower extends BlockModFlower implements IInfusionStabiliser, IHornHarvestable { + private static IIcon[] icons; + private static IIcon[] iconsAlt; + public BlockShinyFlower() { super(LibBlockNames.SHINY_FLOWER); setLightLevel(1F); @@ -41,13 +46,18 @@ public class BlockShinyFlower extends BlockModFlower implements IInfusionStabili } @Override - public void registerBlockIcons(IIconRegister par1IconRegister) { - // NO-OP + public void registerBlockIcons(IIconRegister register) { + icons = new IIcon[16]; + iconsAlt = new IIcon[16]; + for(int i = 0; i < 16; i++) { + icons[i] = IconHelper.forName(register, "flowerGlimmering" + i); + iconsAlt[i] = IconHelper.forName(register, "flowerGlimmering" + i, BlockModFlower.ALT_DIR); + } } @Override public IIcon getIcon(int par1, int par2) { - return ModBlocks.flower.getIcon(par1, par2); + return (ConfigHandler.altFlowerTextures ? iconsAlt : icons)[Math.min(icons.length - 1, par2)]; } @Override diff --git a/src/main/java/vazkii/botania/common/block/decor/IFloatingFlower.java b/src/main/java/vazkii/botania/common/block/decor/IFloatingFlower.java index e3ec23aa1..5a66a8829 100644 --- a/src/main/java/vazkii/botania/common/block/decor/IFloatingFlower.java +++ b/src/main/java/vazkii/botania/common/block/decor/IFloatingFlower.java @@ -21,12 +21,18 @@ public interface IFloatingFlower { public IslandType getIslandType(); public void setIslandType(IslandType type); - + public static enum IslandType { GRASS(LibResources.MODEL_MINI_ISLAND), PODZOL(LibResources.MODEL_MINI_ISLAND_PODZOL), MYCEL(LibResources.MODEL_MINI_ISLAND_MYCEL), - SNOW(LibResources.MODEL_MINI_ISLAND_SNOW); + SNOW(LibResources.MODEL_MINI_ISLAND_SNOW), + DRY(LibResources.MODEL_MINI_ISLAND_DRY), + GOLDEN(LibResources.MODEL_MINI_ISLAND_GOLDEN), + VIVID(LibResources.MODEL_MINI_ISLAND_VIVID), + SCORCHED(LibResources.MODEL_MINI_ISLAND_SCORCHED), + INFUSED(LibResources.MODEL_MINI_ISLAND_INFUSED), + MUTATED(LibResources.MODEL_MINI_ISLAND_MUTATED); private IslandType(String s) { res = new ResourceLocation(s); diff --git a/src/main/java/vazkii/botania/common/block/mana/BlockPool.java b/src/main/java/vazkii/botania/common/block/mana/BlockPool.java index 352be8711..41224dc46 100644 --- a/src/main/java/vazkii/botania/common/block/mana/BlockPool.java +++ b/src/main/java/vazkii/botania/common/block/mana/BlockPool.java @@ -31,6 +31,7 @@ import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.common.util.ForgeDirection; +import vazkii.botania.api.BotaniaAPI; import vazkii.botania.api.internal.VanillaPacketDispatcher; import vazkii.botania.api.lexicon.ILexiconable; import vazkii.botania.api.lexicon.LexiconEntry; @@ -61,6 +62,8 @@ public class BlockPool extends BlockModContainer implements IWandHUD, IWandable, setStepSound(soundTypeStone); setBlockName(LibBlockNames.POOL); setBlockBounds(0F, 0F, 0F, 1F, 0.5F, 1F); + + BotaniaAPI.blacklistBlockFromMagnet(this, Short.MAX_VALUE); } @Override diff --git a/src/main/java/vazkii/botania/common/block/mana/BlockRuneAltar.java b/src/main/java/vazkii/botania/common/block/mana/BlockRuneAltar.java index d5133c48e..a8e02c3aa 100644 --- a/src/main/java/vazkii/botania/common/block/mana/BlockRuneAltar.java +++ b/src/main/java/vazkii/botania/common/block/mana/BlockRuneAltar.java @@ -24,6 +24,7 @@ import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; +import vazkii.botania.api.BotaniaAPI; import vazkii.botania.api.lexicon.ILexiconable; import vazkii.botania.api.lexicon.LexiconEntry; import vazkii.botania.api.wand.IWandHUD; @@ -47,6 +48,8 @@ public class BlockRuneAltar extends BlockModContainer implements IWandable, IWan setResistance(10.0F); setStepSound(soundTypeStone); setBlockName(LibBlockNames.RUNE_ALTAR); + + BotaniaAPI.blacklistBlockFromMagnet(this, Short.MAX_VALUE); random = new Random(); } diff --git a/src/main/java/vazkii/botania/common/block/mana/BlockTerraPlate.java b/src/main/java/vazkii/botania/common/block/mana/BlockTerraPlate.java index 6a157af6d..be8ff70da 100644 --- a/src/main/java/vazkii/botania/common/block/mana/BlockTerraPlate.java +++ b/src/main/java/vazkii/botania/common/block/mana/BlockTerraPlate.java @@ -12,17 +12,22 @@ package vazkii.botania.common.block.mana; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; +import vazkii.botania.api.BotaniaAPI; import vazkii.botania.api.lexicon.ILexiconable; import vazkii.botania.api.lexicon.LexiconEntry; import vazkii.botania.client.core.helper.IconHelper; import vazkii.botania.common.block.BlockModContainer; +import vazkii.botania.common.block.ModBlocks; import vazkii.botania.common.block.tile.TileTerraPlate; +import vazkii.botania.common.item.ModItems; import vazkii.botania.common.lexicon.LexiconData; import vazkii.botania.common.lib.LibBlockNames; @@ -38,8 +43,34 @@ public class BlockTerraPlate extends BlockModContainer implements ILexiconable { setResistance(10F); setStepSound(soundTypeMetal); setBlockName(LibBlockNames.TERRA_PLATE); + + BotaniaAPI.blacklistBlockFromMagnet(this, Short.MAX_VALUE); } + @Override + public boolean onBlockActivated(World worldObj, int x, int y, int z, EntityPlayer player, int s, float xs, float ys, float zs) { + ItemStack stack = player.getCurrentEquippedItem(); + if(stack != null && stack.getItem() == ModItems.manaResource && stack.getItemDamage() < 3) { + if(player == null || !player.capabilities.isCreativeMode) { + stack.stackSize--; + if(stack.stackSize == 0 && player != null) + player.inventory.setInventorySlotContents(player.inventory.currentItem, null); + } + + ItemStack target = stack.copy(); + target.stackSize = 1; + EntityItem item = new EntityItem(worldObj, x + 0.5, y + 0.5, z + 0.5, target); + item.delayBeforeCanPickup = 40; + item.motionX = item.motionY = item.motionZ = 0; + if(!worldObj.isRemote) + worldObj.spawnEntityInWorld(item); + + return true; + } + + return false; + } + @Override public boolean renderAsNormalBlock() { return false; diff --git a/src/main/java/vazkii/botania/common/block/subtile/SubTilePureDaisy.java b/src/main/java/vazkii/botania/common/block/subtile/SubTilePureDaisy.java index 3ff872c9a..94a785b8c 100644 --- a/src/main/java/vazkii/botania/common/block/subtile/SubTilePureDaisy.java +++ b/src/main/java/vazkii/botania/common/block/subtile/SubTilePureDaisy.java @@ -27,6 +27,9 @@ public class SubTilePureDaisy extends SubTileEntity { private static final String TAG_POSITION = "position"; private static final String TAG_TICKS_REMAINING = "ticksRemaining"; + + private static final int TOTAL_TIME = 1200; + private static final int TIME_PER = TOTAL_TIME / 8; private static final int[][] POSITIONS = new int[][] { { -1, 0, -1 }, @@ -40,7 +43,7 @@ public class SubTilePureDaisy extends SubTileEntity { }; int positionAt = 0; - int[] ticksRemaining = new int[] { 200, 200, 200, 200, 200, 200, 200, 200 }; + int[] ticksRemaining = new int[] { TIME_PER, TIME_PER, TIME_PER, TIME_PER, TIME_PER, TIME_PER, TIME_PER, TIME_PER }; @Override public void onUpdate() { @@ -70,7 +73,7 @@ public class SubTilePureDaisy extends SubTileEntity { Botania.proxy.sparkleFX(supertile.getWorldObj(), coords.posX + Math.random(), coords.posY + Math.random(), coords.posZ + Math.random(), 1F, 1F, 1F, (float) Math.random(), 5); if(ticksRemaining[positionAt] <= 0) { - ticksRemaining[positionAt] = 200; + ticksRemaining[positionAt] = TIME_PER; if(recipe.set(world,coords.posX, coords.posY, coords.posZ, this)) { for(int i = 0; i < 25; i++) { @@ -84,7 +87,7 @@ public class SubTilePureDaisy extends SubTileEntity { supertile.getWorldObj().playAuxSFX(2001, coords.posX, coords.posY, coords.posZ, Block.getIdFromBlock(recipe.getOutput()) + (recipe.getOutputMeta() << 12)); } } - } else ticksRemaining[positionAt] = 200; + } else ticksRemaining[positionAt] = TIME_PER; } } diff --git a/src/main/java/vazkii/botania/common/block/subtile/functional/SubTileHopperhock.java b/src/main/java/vazkii/botania/common/block/subtile/functional/SubTileHopperhock.java index 25b325825..81386e0c8 100644 --- a/src/main/java/vazkii/botania/common/block/subtile/functional/SubTileHopperhock.java +++ b/src/main/java/vazkii/botania/common/block/subtile/functional/SubTileHopperhock.java @@ -103,6 +103,7 @@ public class SubTileHopperhock extends SubTileFunctional { if(invToPutItemIn != null) { InventoryHelper.insertItemIntoInventory(invToPutItemIn, stack.copy(), sideToPutItemIn, -1); + invToPutItemIn.markDirty(); item.setDead(); pulledAny = true; } diff --git a/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileArcaneRose.java b/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileArcaneRose.java index 6bcb74ef2..08b5701c2 100644 --- a/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileArcaneRose.java +++ b/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileArcaneRose.java @@ -35,7 +35,7 @@ public class SubTileArcaneRose extends SubTileGenerating { for(EntityPlayer player : players) if(ExperienceHelper.getPlayerXP(player) >= 1 && player.onGround) { ExperienceHelper.drainPlayerXP(player, 1); - mana += 24; + mana += 50; return; } } @@ -52,7 +52,7 @@ public class SubTileArcaneRose extends SubTileGenerating { @Override public int getMaxMana() { - return 1200; + return 6000; } @Override diff --git a/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileDaybloom.java b/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileDaybloom.java index e0437b97a..aa9723c09 100644 --- a/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileDaybloom.java +++ b/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileDaybloom.java @@ -10,19 +10,15 @@ */ package vazkii.botania.common.block.subtile.generating; -import java.awt.Color; import java.util.ArrayList; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.tileentity.TileEntity; -import net.minecraftforge.common.util.ForgeDirection; import vazkii.botania.api.lexicon.LexiconEntry; -import vazkii.botania.api.subtile.ISubTileContainer; -import vazkii.botania.common.Botania; +import vazkii.botania.api.subtile.signature.PassiveFlower; import vazkii.botania.common.lexicon.LexiconData; -import vazkii.botania.common.lib.LibMisc; +@PassiveFlower public class SubTileDaybloom extends SubTilePassiveGenerating { private static final String TAG_PRIME_POSITION_X = "primePositionX"; @@ -70,31 +66,7 @@ public class SubTileDaybloom extends SubTilePassiveGenerating { @Override public int getDelayBetweenPassiveGeneration() { - return isPrime() ? 22 : 25 + (int) (getSurroundingFlowers() * 7.5); - } - - public int getSurroundingFlowers() { - int flowers = 0; - for(ForgeDirection dir : LibMisc.CARDINAL_DIRECTIONS) { - TileEntity tile = supertile.getWorldObj().getTileEntity(supertile.xCoord + dir.offsetX, supertile.yCoord, supertile.zCoord + dir.offsetZ); - if(tile != null && tile instanceof ISubTileContainer) { - ISubTileContainer flower = (ISubTileContainer) tile; - if(flower.getSubTile() != null && flower.getSubTile().getClass() == getClass()) { - flowers++; - - Color color = new Color(getColor()); - float r = color.getRed() / 255F; - float g = color.getGreen() / 255F; - float b = color.getBlue() / 255F; - - float m = 0.045F; - if(ticksExisted % 10 == 0) - Botania.proxy.wispFX(supertile.getWorldObj(), supertile.xCoord + 0.5, supertile.yCoord + 0.05, supertile.zCoord + 0.5, r, g, b, 0.1F, dir.offsetX * m, dir.offsetY * m, dir.offsetZ * m); - } - } - } - - return flowers; + return isPrime() ? 10 : 12; } @Override diff --git a/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileHydroangeas.java b/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileHydroangeas.java index c5a461744..d187ed7f4 100644 --- a/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileHydroangeas.java +++ b/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileHydroangeas.java @@ -26,11 +26,13 @@ import net.minecraftforge.common.util.ForgeDirection; import vazkii.botania.api.lexicon.LexiconEntry; import vazkii.botania.api.subtile.ISubTileContainer; import vazkii.botania.api.subtile.RadiusDescriptor; +import vazkii.botania.api.subtile.signature.PassiveFlower; import vazkii.botania.common.Botania; import vazkii.botania.common.core.helper.ItemNBTHelper; import vazkii.botania.common.lexicon.LexiconData; import vazkii.botania.common.lib.LibMisc; +@PassiveFlower public class SubTileHydroangeas extends SubTilePassiveGenerating { private static final String TAG_BURN_TIME = "burnTime"; @@ -94,30 +96,6 @@ public class SubTileHydroangeas extends SubTilePassiveGenerating { } } - public int getSurroundingFlowers() { - int flowers = 0; - for(int[] offsetArray : OFFSETS) { - TileEntity tile = supertile.getWorldObj().getTileEntity(supertile.xCoord + offsetArray[0], supertile.yCoord, supertile.zCoord + offsetArray[1]); - if(tile != null && tile instanceof ISubTileContainer) { - ISubTileContainer flower = (ISubTileContainer) tile; - if(flower.getSubTile() != null && flower.getSubTile().getClass() == getClass()) { - flowers++; - - Color color = new Color(getColor()); - float r = color.getRed() / 255F; - float g = color.getGreen() / 255F; - float b = color.getBlue() / 255F; - - float m = 0.045F; - if(ticksExisted % 10 == 0) - Botania.proxy.wispFX(supertile.getWorldObj(), supertile.xCoord + 0.5, supertile.yCoord + 0.05, supertile.zCoord + 0.5, r, g, b, 0.1F, offsetArray[0] * m, 0, offsetArray[1] * m); - } - } - } - - return flowers; - } - public void doBurnParticles() { Botania.proxy.wispFX(supertile.getWorldObj(), supertile.xCoord + 0.55 + Math.random() * 0.2 - 0.1, supertile.yCoord + 0.55 + Math.random() * 0.2 - 0.1, supertile.zCoord + 0.5, 0.05F, 0.05F, 0.7F, (float) Math.random() / 6, (float) -Math.random() / 60); } @@ -193,8 +171,7 @@ public class SubTileHydroangeas extends SubTilePassiveGenerating { @Override public boolean canGeneratePassively() { - int adj = getSurroundingFlowers(); - return supertile.getWorldObj().rand.nextInt(adj + 1) == 0 && burnTime > 0; + return burnTime > 0; } @Override diff --git a/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileNightshade.java b/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileNightshade.java index 585b982d4..4ad851412 100644 --- a/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileNightshade.java +++ b/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileNightshade.java @@ -11,8 +11,10 @@ package vazkii.botania.common.block.subtile.generating; import vazkii.botania.api.lexicon.LexiconEntry; +import vazkii.botania.api.subtile.signature.PassiveFlower; import vazkii.botania.common.lexicon.LexiconData; +@PassiveFlower public class SubTileNightshade extends SubTileDaybloom { @Override diff --git a/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileSpectrolus.java b/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileSpectrolus.java index dfc12b5c4..4bdda5470 100644 --- a/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileSpectrolus.java +++ b/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileSpectrolus.java @@ -51,7 +51,7 @@ public class SubTileSpectrolus extends SubTileGenerating { if(stack != null && stack.getItem() == wool) { int meta = stack.getItemDamage(); if(meta == nextColor) { - mana = Math.min(getMaxMana(), mana + 200); + mana = Math.min(getMaxMana(), mana + 300); nextColor = nextColor == 15 ? 0 : nextColor + 1; sync(); @@ -69,7 +69,7 @@ public class SubTileSpectrolus extends SubTileGenerating { @Override public int getMaxMana() { - return 4000; + return 8000; } @Override diff --git a/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileThermalily.java b/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileThermalily.java index c8eff10fb..1d467bf3b 100644 --- a/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileThermalily.java +++ b/src/main/java/vazkii/botania/common/block/subtile/generating/SubTileThermalily.java @@ -32,11 +32,6 @@ public class SubTileThermalily extends SubTileHydroangeas { Botania.proxy.wispFX(supertile.getWorldObj(), supertile.xCoord + 0.55 + Math.random() * 0.2 - 0.1, supertile.yCoord + 0.9 + Math.random() * 0.2 - 0.1, supertile.zCoord + 0.5, 0.7F, 0.05F, 0.05F, (float) Math.random() / 6, (float) -Math.random() / 60); } - @Override - public int getSurroundingFlowers() { - return 0; - } - @Override public boolean isPassiveFlower() { return false; diff --git a/src/main/java/vazkii/botania/common/block/tile/TileCraftCrate.java b/src/main/java/vazkii/botania/common/block/tile/TileCraftCrate.java index 6d8aaa9c7..225ec081a 100644 --- a/src/main/java/vazkii/botania/common/block/tile/TileCraftCrate.java +++ b/src/main/java/vazkii/botania/common/block/tile/TileCraftCrate.java @@ -21,6 +21,7 @@ import net.minecraft.item.crafting.IRecipe; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.network.NetworkManager; import net.minecraft.network.play.server.S35PacketUpdateTileEntity; +import vazkii.botania.api.internal.VanillaPacketDispatcher; import vazkii.botania.common.item.ModItems; public class TileCraftCrate extends TileOpenCrate { @@ -157,6 +158,7 @@ public class TileCraftCrate extends TileOpenCrate { if(stack != null) eject(stack, false); setInventorySlotContents(i, null); + markDirty(); } } @@ -178,11 +180,18 @@ public class TileCraftCrate extends TileOpenCrate { ejectAll(); return true; } + + @Override + public void markDirty() { + super.markDirty(); + VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this); + } @Override public int getSignal() { return signal; } + @Override public void onDataPacket(NetworkManager manager, S35PacketUpdateTileEntity packet) { int lastPattern = pattern; diff --git a/src/main/java/vazkii/botania/common/block/tile/TileFloatingFlower.java b/src/main/java/vazkii/botania/common/block/tile/TileFloatingFlower.java index 8811ba542..03f4c4b69 100644 --- a/src/main/java/vazkii/botania/common/block/tile/TileFloatingFlower.java +++ b/src/main/java/vazkii/botania/common/block/tile/TileFloatingFlower.java @@ -29,7 +29,7 @@ public class TileFloatingFlower extends TileMod implements IFloatingFlower { return retStack; } - return new ItemStack(ModBlocks.flower, 1, getBlockMetadata()); + return new ItemStack(ModBlocks.shinyFlower, 1, getBlockMetadata()); } @Override diff --git a/src/main/java/vazkii/botania/common/block/tile/TileRuneAltar.java b/src/main/java/vazkii/botania/common/block/tile/TileRuneAltar.java index 343a0c2c3..37ec00152 100644 --- a/src/main/java/vazkii/botania/common/block/tile/TileRuneAltar.java +++ b/src/main/java/vazkii/botania/common/block/tile/TileRuneAltar.java @@ -38,6 +38,8 @@ public class TileRuneAltar extends TileSimpleInventory implements ISidedInventor private static final String TAG_MANA = "mana"; private static final String TAG_MANA_TO_GET = "manaToGet"; + RecipeRuneAltar currentRecipe; + public int manaToGet = 0; int mana = 0; int cooldown = 0; @@ -47,7 +49,26 @@ public class TileRuneAltar extends TileSimpleInventory implements ISidedInventor int recipeKeepTicks = 0; public boolean addItem(EntityPlayer player, ItemStack stack) { - if(cooldown > 0 || stack.getItem() == ModItems.twigWand || stack.getItem() == ModItems.lexicon || manaToGet != 0) + if(cooldown > 0 || stack.getItem() == ModItems.twigWand || stack.getItem() == ModItems.lexicon) + return false; + + if(stack.getItem() == Item.getItemFromBlock(ModBlocks.livingrock) && stack.getItemDamage() == 0) { + if(player == null || !player.capabilities.isCreativeMode) { + stack.stackSize--; + if(stack.stackSize == 0 && player != null) + player.inventory.setInventorySlotContents(player.inventory.currentItem, null); + } + + EntityItem item = new EntityItem(worldObj, xCoord + 0.5, yCoord + 1, zCoord + 0.5, new ItemStack(ModBlocks.livingrock)); + item.delayBeforeCanPickup = 40; + item.motionX = item.motionY = item.motionZ = 0; + if(!worldObj.isRemote) + worldObj.spawnEntityInWorld(item); + + return true; + } + + if(manaToGet != 0) return false; boolean did = false; @@ -120,18 +141,24 @@ public class TileRuneAltar extends TileSimpleInventory implements ISidedInventor if(recipeKeepTicks > 0) --recipeKeepTicks; else lastRecipe = null; + + updateRecipe(); } public void updateRecipe() { int manaToGet = this.manaToGet; getMana : { - for(RecipeRuneAltar recipe : BotaniaAPI.runeAltarRecipes) - if(recipe.matches(this)) { - this.manaToGet = recipe.getManaUsage(); - break getMana; - } - this.manaToGet = 0; + if(currentRecipe != null) + this.manaToGet = currentRecipe.getManaUsage(); + else { + for(RecipeRuneAltar recipe : BotaniaAPI.runeAltarRecipes) + if(recipe.matches(this)) { + this.manaToGet = recipe.getManaUsage(); + break getMana; + } + this.manaToGet = 0; + } } if(manaToGet != this.manaToGet) { @@ -166,11 +193,11 @@ public class TileRuneAltar extends TileSimpleInventory implements ISidedInventor } public void onWanded(EntityPlayer player, ItemStack wand) { - updateRecipe(); - RecipeRuneAltar recipe = null; - for(RecipeRuneAltar recipe_ : BotaniaAPI.runeAltarRecipes) { + if(currentRecipe != null) + recipe = currentRecipe; + else for(RecipeRuneAltar recipe_ : BotaniaAPI.runeAltarRecipes) { if(recipe_.matches(this)) { recipe = recipe_; break; @@ -193,6 +220,7 @@ public class TileRuneAltar extends TileSimpleInventory implements ISidedInventor ItemStack output = recipe.getOutput().copy(); EntityItem outputItem = new EntityItem(worldObj, xCoord + 0.5, yCoord + 1.5, zCoord + 0.5, output); worldObj.spawnEntityInWorld(outputItem); + currentRecipe = null; cooldown = 60; } @@ -210,8 +238,6 @@ public class TileRuneAltar extends TileSimpleInventory implements ISidedInventor craftingFanciness(); } } - - updateRecipe(); } public void craftingFanciness() { diff --git a/src/main/java/vazkii/botania/common/block/tile/mana/TilePool.java b/src/main/java/vazkii/botania/common/block/tile/mana/TilePool.java index c6eef89f2..f45ef219d 100644 --- a/src/main/java/vazkii/botania/common/block/tile/mana/TilePool.java +++ b/src/main/java/vazkii/botania/common/block/tile/mana/TilePool.java @@ -145,7 +145,7 @@ public class TilePool extends TileMod implements IManaPool, IDyablePool, IKeyLoc return false; for(RecipeManaInfusion recipe : BotaniaAPI.manaInfusionRecipes) { - if(recipe.matches(stack) && (!recipe.isAlchemy() || alchemy) && (!recipe.isConjuration() || conjuration) && (getBlockMetadata() != 2 || recipe.getOutput().getItem() == Item.getItemFromBlock(getBlockType()))) { + if(recipe.matches(stack) && (!recipe.isAlchemy() || alchemy) && (!recipe.isConjuration() || conjuration)) { int mana = recipe.getManaToConsume(); if(getCurrentMana() >= mana) { recieveMana(-mana); diff --git a/src/main/java/vazkii/botania/common/brew/ModBrews.java b/src/main/java/vazkii/botania/common/brew/ModBrews.java index 505da7c30..b30edbfc6 100644 --- a/src/main/java/vazkii/botania/common/brew/ModBrews.java +++ b/src/main/java/vazkii/botania/common/brew/ModBrews.java @@ -56,7 +56,7 @@ public class ModBrews { nightVision = new BrewMod(LibBrewNames.NIGHT_VISION, 0x7C4BEB, 4000, new PotionEffect(Potion.nightVision.id, 9600, 0)); absorption = new BrewMod(LibBrewNames.ABSORPTION, 0xF2EB23, 7000, new PotionEffect(Potion.field_76444_x.id, 1800, 3)).setNotBloodPendantInfusable().setNotIncenseInfusable(); - overload = new BrewMod(LibBrewNames.OVERLOAD, 0x232323, 12000, new PotionEffect(Potion.damageBoost.id, 1800, 3), new PotionEffect(Potion.moveSpeed.id, 1800, 2), new PotionEffect(Potion.weakness.id, 2400, 2), new PotionEffect(Potion.hunger.id, 200, 2)); + overload = new BrewMod(LibBrewNames.OVERLOAD, 0x232323, 12000, new PotionEffect(Potion.damageBoost.id, 1800, 3), new PotionEffect(Potion.moveSpeed.id, 1800, 2), new PotionEffect(Potion.weakness.id, 3600, 2), new PotionEffect(Potion.hunger.id, 200, 2)); soulCross = new BrewModPotion(LibBrewNames.SOUL_CROSS, 10000, new PotionEffect(ModPotions.soulCross.id, 1800, 0)); featherfeet = new BrewModPotion(LibBrewNames.FEATHER_FEET, 7000, new PotionEffect(ModPotions.featherfeet.id, 1800, 0)); emptiness = new BrewModPotion(LibBrewNames.EMPTINESS, 30000, new PotionEffect(ModPotions.emptiness.id, 7200, 0)); diff --git a/src/main/java/vazkii/botania/common/brew/potion/PotionFeatherfeet.java b/src/main/java/vazkii/botania/common/brew/potion/PotionFeatherfeet.java index c9e26d3c1..0a3fff124 100644 --- a/src/main/java/vazkii/botania/common/brew/potion/PotionFeatherfeet.java +++ b/src/main/java/vazkii/botania/common/brew/potion/PotionFeatherfeet.java @@ -28,7 +28,7 @@ public class PotionFeatherfeet extends PotionMod { public void onEntityUpdate(LivingUpdateEvent event) { EntityLivingBase e = event.entityLiving; if(hasEffect(e)) - e.fallDistance = 0F; + e.fallDistance = 2.5F; } } diff --git a/src/main/java/vazkii/botania/common/core/BotaniaCreativeTab.java b/src/main/java/vazkii/botania/common/core/BotaniaCreativeTab.java index b2ac1818d..de8e1863e 100644 --- a/src/main/java/vazkii/botania/common/core/BotaniaCreativeTab.java +++ b/src/main/java/vazkii/botania/common/core/BotaniaCreativeTab.java @@ -123,7 +123,6 @@ public final class BotaniaCreativeTab extends CreativeTabs { if(Botania.gardenOfGlassLoaded) { addBlock(ModBlocks.root); - addBlock(ModBlocks.felPumpkin); addItem(ModItems.waterBowl); } @@ -143,10 +142,12 @@ public final class BotaniaCreativeTab extends CreativeTabs { addBlock(ModBlocks.incensePlate); addItem(ModItems.incenseStick); addItem(ModItems.bloodPendant); + addBlock(ModBlocks.felPumpkin); addBlock(ModBlocks.pylon); addBlock(ModBlocks.pistonRelay); addBlock(ModBlocks.hourglass); + addBlock(ModBlocks.redStringContainer); addBlock(ModBlocks.redStringDispenser); addBlock(ModBlocks.redStringFertilizer); @@ -224,6 +225,7 @@ public final class BotaniaCreativeTab extends CreativeTabs { addItem(ModItems.aesirRing); } + addItem(ModItems.baubleBox); addItem(ModItems.tinyPlanet); addBlock(ModBlocks.tinyPlanet); addItem(ModItems.manaRing); @@ -239,6 +241,7 @@ public final class BotaniaCreativeTab extends CreativeTabs { addItem(ModItems.pixieRing); addItem(ModItems.travelBelt); addItem(ModItems.superTravelBelt); + addItem(ModItems.speedUpBelt); addItem(ModItems.knockbackBelt); addItem(ModItems.itemFinder); addItem(ModItems.monocle); diff --git a/src/main/java/vazkii/botania/common/core/command/CommandShare.java b/src/main/java/vazkii/botania/common/core/command/CommandShare.java index f77a03858..ef9001966 100644 --- a/src/main/java/vazkii/botania/common/core/command/CommandShare.java +++ b/src/main/java/vazkii/botania/common/core/command/CommandShare.java @@ -2,10 +2,10 @@ * This class was created by . It's distributed as * part of the Botania Mod. Get the Source Code in github: * https://github.com/Vazkii/Botania - * + * * Botania is Open Source and distributed under the * Botania License: http://botaniamod.net/license.php - * + * * File Created @ [Sep 23, 2014, 8:06:49 PM (GMT)] */ package vazkii.botania.common.core.command; @@ -34,7 +34,7 @@ public class CommandShare extends CommandBase { String json = StatCollector.translateToLocal("botaniamisc.shareMsg"); json = json.replaceAll("%name%", sender.getCommandSenderName()); json = json.replaceAll("%entry%", args[0]); - json = json.replaceAll("%entryname%", StatCollector.translateToLocal("botania.entry." + args[0])); + json = json.replaceAll("%entryname%", StatCollector.translateToLocal(args[0])); IChatComponent component = IChatComponent.Serializer.func_150699_a(json); MinecraftServer.getServer().getConfigurationManager().sendChatMsg(component); diff --git a/src/main/java/vazkii/botania/common/core/handler/ConfigHandler.java b/src/main/java/vazkii/botania/common/core/handler/ConfigHandler.java index 34577a087..4a20da0a2 100644 --- a/src/main/java/vazkii/botania/common/core/handler/ConfigHandler.java +++ b/src/main/java/vazkii/botania/common/core/handler/ConfigHandler.java @@ -69,6 +69,7 @@ public final class ConfigHandler { public static boolean stones18Enabled = true; public static boolean ringOfOdinFireResist = true; public static boolean enderStuff19Enabled = true; + public static boolean invertMagnetRing = false; public static int flowerQuantity = 2; public static int flowerDensity = 16; @@ -207,6 +208,9 @@ public final class ConfigHandler { desc = "Set this to false to disable the 1.9 Ender features available as recipes. This only disables the recipes and entries. Old ones that are already in the world will stay."; enderStuff19Enabled = loadPropBool("19enderStuff.enabled", desc, enderStuff19Enabled); + desc = "Set this to true to invert the Ring of Magnetization's controls (from shift to stop to shift to work)"; + invertMagnetRing = loadPropBool("magnetRing.invert", desc, invertMagnetRing); + desc = "The quantity of Botania flower patches to generate in the world, defaults to 2, the lower the number the less patches generate."; flowerQuantity = loadPropInt("worldgen.flower.quantity", desc, flowerQuantity); diff --git a/src/main/java/vazkii/botania/common/core/handler/IMCHandler.java b/src/main/java/vazkii/botania/common/core/handler/IMCHandler.java index a12ad98f9..640dc95b6 100644 --- a/src/main/java/vazkii/botania/common/core/handler/IMCHandler.java +++ b/src/main/java/vazkii/botania/common/core/handler/IMCHandler.java @@ -10,7 +10,7 @@ import com.google.common.collect.ImmutableList; import cpw.mods.fml.common.event.FMLInterModComms.IMCMessage; public final class IMCHandler { - + public static void processMessages(ImmutableList messageList) { Iterator iterator = messageList.iterator(); while(iterator.hasNext()) { diff --git a/src/main/java/vazkii/botania/common/core/handler/InternalMethodHandler.java b/src/main/java/vazkii/botania/common/core/handler/InternalMethodHandler.java index e181206aa..a1ade233d 100644 --- a/src/main/java/vazkii/botania/common/core/handler/InternalMethodHandler.java +++ b/src/main/java/vazkii/botania/common/core/handler/InternalMethodHandler.java @@ -15,6 +15,7 @@ import java.util.List; import net.minecraft.block.Block; import net.minecraft.client.gui.ScaledResolution; import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.init.Blocks; @@ -46,6 +47,7 @@ import vazkii.botania.common.Botania; import vazkii.botania.common.block.BlockModFlower; import vazkii.botania.common.block.BlockSpecialFlower; import vazkii.botania.common.block.ModBlocks; +import vazkii.botania.common.block.subtile.functional.SubTileSolegnolia; import vazkii.botania.common.item.ModItems; import vazkii.botania.common.item.block.ItemBlockSpecialFlower; import vazkii.botania.common.item.relic.ItemLokiRing; @@ -236,6 +238,11 @@ public class InternalMethodHandler extends DummyMethodHandler { public void breakOnAllCursors(EntityPlayer player, Item item, ItemStack stack, int x, int y, int z, int side) { ItemLokiRing.breakOnAllCursors(player, item, stack, x, y, z, side); } + + @Override + public boolean hasSolegnoliaAround(Entity e) { + return SubTileSolegnolia.hasSolegnoliaAround(e); + } @Override public long getWorldElapsedTicks() { diff --git a/src/main/java/vazkii/botania/common/core/helper/InventoryHelper.java b/src/main/java/vazkii/botania/common/core/helper/InventoryHelper.java index d553eda94..ca73da794 100644 --- a/src/main/java/vazkii/botania/common/core/helper/InventoryHelper.java +++ b/src/main/java/vazkii/botania/common/core/helper/InventoryHelper.java @@ -14,9 +14,13 @@ import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Set; +import java.util.concurrent.Callable; import net.minecraft.block.Block; +import net.minecraft.crash.CrashReport; +import net.minecraft.crash.CrashReportCategory; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.inventory.IInventory; import net.minecraft.inventory.ISidedInventory; import net.minecraft.inventory.InventoryLargeChest; @@ -26,6 +30,7 @@ import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagList; import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntityChest; +import net.minecraft.util.ReportedException; import net.minecraft.world.World; import net.minecraftforge.common.util.ForgeDirection; diff --git a/src/main/java/vazkii/botania/common/crafting/ModCraftingRecipes.java b/src/main/java/vazkii/botania/common/crafting/ModCraftingRecipes.java index 8a9d85ede..bd5b86718 100644 --- a/src/main/java/vazkii/botania/common/crafting/ModCraftingRecipes.java +++ b/src/main/java/vazkii/botania/common/crafting/ModCraftingRecipes.java @@ -52,6 +52,7 @@ public final class ModCraftingRecipes { public static List recipesSpreader; public static List recipesManaLens; public static IRecipe recipePool; + public static IRecipe recipePoolDiluted; public static List recipesRuneAltar; public static IRecipe recipeLensVelocity; public static IRecipe recipeLensPotency; @@ -306,6 +307,8 @@ public final class ModCraftingRecipes { public static IRecipe recipeAvatar; public static IRecipe recipeSextant; public static List recipesAltGrassSeeds; + public static IRecipe recipeSpeedUpBelt; + public static IRecipe recipeBaubleCase; // Garden of Glass public static IRecipe recipeRootToSapling; @@ -387,11 +390,17 @@ public final class ModCraftingRecipes { recipesManaLens = BotaniaAPI.getLatestAddedRecipes(2); // Mana Pool Recipe - addOreDictRecipe(new ItemStack(ModBlocks.pool, 1, 2), + addOreDictRecipe(new ItemStack(ModBlocks.pool), "R R", "RRR", 'R', LibOreDict.LIVING_ROCK); recipePool = BotaniaAPI.getLatestAddedRecipe(); + // Diluted Mana Pool Recipe + addOreDictRecipe(new ItemStack(ModBlocks.pool, 1, 2), + "R R", "RRR", + 'R', new ItemStack(ModFluffBlocks.livingrockSlab)); + recipePoolDiluted = BotaniaAPI.getLatestAddedRecipe(); + // Runic Altar Recipe addOreDictRecipe(new ItemStack(ModBlocks.runeAltar), "SSS", "SPS", @@ -1877,6 +1886,16 @@ public final class ModCraftingRecipes { 'D', LibOreDict.DRAGONSTONE); recipeCocoon = BotaniaAPI.getLatestAddedRecipe(); + // Fel Pumpkin + GameRegistry.addRecipe(new ItemStack(ModBlocks.felPumpkin), + " S ", "BPF", " G ", + 'S', new ItemStack(Items.string), + 'B', new ItemStack(Items.bone), + 'P', new ItemStack(Blocks.pumpkin), + 'F', new ItemStack(Items.rotten_flesh), + 'G', new ItemStack(Items.gunpowder)); + recipeFelPumpkin = BotaniaAPI.getLatestAddedRecipe(); + // Luminizer Recipe addShapelessOreDictRecipe(new ItemStack(ModBlocks.lightRelay), LibOreDict.RED_STRING, LibOreDict.DRAGONSTONE, "dustGlowstone", "dustGlowstone"); recipeLuminizer = BotaniaAPI.getLatestAddedRecipe(); @@ -2063,6 +2082,23 @@ public final class ModCraftingRecipes { GameRegistry.addShapelessRecipe(new ItemStack(ModItems.grassSeeds, 1, 8), new ItemStack(ModItems.grassSeeds), new ItemStack(Items.spider_eye)); recipesAltGrassSeeds = BotaniaAPI.getLatestAddedRecipes(6); + // Planestrider's Sash Recipe + GameRegistry.addRecipe(new ItemStack(ModItems.speedUpBelt), + " M ", "PBP", " S ", + 'M', new ItemStack(Items.filled_map, 1, Short.MAX_VALUE), + 'P', new ItemStack(ModItems.grassSeeds), + 'B', new ItemStack(ModItems.travelBelt), + 'S', new ItemStack(Items.sugar)); + recipeSpeedUpBelt = BotaniaAPI.getLatestAddedRecipe(); + + // Bauble Case Recipe + addOreDictRecipe(new ItemStack(ModItems.baubleBox), + " M ", "MCG", " M ", + 'M', LibOreDict.MANA_STEEL, + 'C', new ItemStack(Blocks.chest), + 'G', "ingotGold"); + recipeBaubleCase = BotaniaAPI.getLatestAddedRecipe(); + /////////////////////////////////////////////////////////////////////////////////////////////////////////// // Storage Block/Nugget Recipes @@ -2193,16 +2229,6 @@ public final class ModCraftingRecipes { addShapelessOreDictRecipe(new ItemStack(Items.slime_ball), new ItemStack(Items.magma_cream), new ItemStack(Items.water_bucket)); recipeMagmaToSlimeball = BotaniaAPI.getLatestAddedRecipe(); - // Fel Pumpkin - GameRegistry.addRecipe(new ItemStack(ModBlocks.felPumpkin), - " S ", "BPF", " G ", - 'S', new ItemStack(Items.string), - 'B', new ItemStack(Items.bone), - 'P', new ItemStack(Blocks.pumpkin), - 'F', new ItemStack(Items.rotten_flesh), - 'G', new ItemStack(Items.gunpowder)); - recipeFelPumpkin = BotaniaAPI.getLatestAddedRecipe(); - // Ender Portal addOreDictRecipe(new ItemStack(Blocks.end_portal_frame), "OGO", diff --git a/src/main/java/vazkii/botania/common/crafting/ModManaInfusionRecipes.java b/src/main/java/vazkii/botania/common/crafting/ModManaInfusionRecipes.java index d2b627747..588428c3b 100644 --- a/src/main/java/vazkii/botania/common/crafting/ModManaInfusionRecipes.java +++ b/src/main/java/vazkii/botania/common/crafting/ModManaInfusionRecipes.java @@ -26,8 +26,6 @@ import vazkii.botania.common.lib.LibOreDict; public final class ModManaInfusionRecipes { - public static RecipeManaInfusion poolRecipe; - public static List manaPetalRecipes; public static List manasteelRecipes; public static RecipeManaInfusion manaPearlRecipe; @@ -46,15 +44,13 @@ public final class ModManaInfusionRecipes { public static RecipeManaInfusion sugarCaneRecipe; public static void init() { - poolRecipe = BotaniaAPI.registerManaInfusionRecipe(new ItemStack(ModBlocks.pool), new ItemStack(ModBlocks.pool, 1, 2), 320); - manaPetalRecipes = new ArrayList(); for(int i = 0; i < 16; i++) manaPetalRecipes.add(BotaniaAPI.registerManaInfusionRecipe(new ItemStack(ModItems.manaPetal, 1, i), LibOreDict.PETAL[i], 200)); manasteelRecipes = new ArrayList(); manasteelRecipes.add(BotaniaAPI.registerManaInfusionRecipe(new ItemStack(ModItems.manaResource, 1, 0), "ingotIron", 3000)); - manasteelRecipes.add(BotaniaAPI.registerManaInfusionRecipe(new ItemStack(ModBlocks.storage, 1, 0), new ItemStack(Blocks.iron_block), 30000)); + manasteelRecipes.add(BotaniaAPI.registerManaInfusionRecipe(new ItemStack(ModBlocks.storage, 1, 0), new ItemStack(Blocks.iron_block), 27000)); manaPearlRecipe = BotaniaAPI.registerManaInfusionRecipe(new ItemStack(ModItems.manaResource, 1, 1), new ItemStack(Items.ender_pearl), 6000); diff --git a/src/main/java/vazkii/botania/common/crafting/recipe/CompositeLensRecipe.java b/src/main/java/vazkii/botania/common/crafting/recipe/CompositeLensRecipe.java index f4cdadcc7..7fc42916b 100644 --- a/src/main/java/vazkii/botania/common/crafting/recipe/CompositeLensRecipe.java +++ b/src/main/java/vazkii/botania/common/crafting/recipe/CompositeLensRecipe.java @@ -15,7 +15,7 @@ import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.IRecipe; import net.minecraft.world.World; -import vazkii.botania.api.mana.ILens; +import vazkii.botania.api.mana.ICompositableLens; import vazkii.botania.common.item.ModItems; import vazkii.botania.common.item.lens.ItemLens; @@ -30,7 +30,7 @@ public class CompositeLensRecipe implements IRecipe { for(int i = 0; i < var1.getSizeInventory(); i++) { ItemStack stack = var1.getStackInSlot(i); if(stack != null) { - if(stack.getItem() instanceof ILens && !foundSecondLens) { + if(stack.getItem() instanceof ICompositableLens && !foundSecondLens) { if(foundLens) foundSecondLens = true; else foundLens = true; @@ -51,15 +51,15 @@ public class CompositeLensRecipe implements IRecipe { for(int i = 0; i < var1.getSizeInventory(); i++) { ItemStack stack = var1.getStackInSlot(i); if(stack != null) { - if(stack.getItem() instanceof ILens) + if(stack.getItem() instanceof ICompositableLens) if(lens == null) lens = stack; else secondLens = stack; } } - if(lens.getItem() instanceof ILens) { - ILens lensItem = (ILens) lens.getItem(); + if(lens.getItem() instanceof ICompositableLens) { + ICompositableLens lensItem = (ICompositableLens) lens.getItem(); if(secondLens == null || !lensItem.canCombineLenses(lens, secondLens) || lensItem.getCompositeLens(lens) != null || lensItem.getCompositeLens(secondLens) != null) return null; diff --git a/src/main/java/vazkii/botania/common/entity/EntityBabylonWeapon.java b/src/main/java/vazkii/botania/common/entity/EntityBabylonWeapon.java index 94e7768cf..5dd088788 100644 --- a/src/main/java/vazkii/botania/common/entity/EntityBabylonWeapon.java +++ b/src/main/java/vazkii/botania/common/entity/EntityBabylonWeapon.java @@ -65,7 +65,7 @@ public class EntityBabylonWeapon extends EntityThrowableCopy { @Override public void onUpdate() { EntityLivingBase thrower = getThrower(); - if(!worldObj.isRemote && (thrower == null || !(thrower instanceof EntityPlayer))) { + if(!worldObj.isRemote && (thrower == null || !(thrower instanceof EntityPlayer) || thrower.isDead)) { setDead(); return; } @@ -129,8 +129,8 @@ public class EntityBabylonWeapon extends EntityThrowableCopy { if(living.hurtTime == 0) { if(player != null) - living.attackEntityFrom(DamageSource.causePlayerDamage(player), 14); - else living.attackEntityFrom(DamageSource.generic, 14); + living.attackEntityFrom(DamageSource.causePlayerDamage(player), 20); + else living.attackEntityFrom(DamageSource.generic, 20); onImpact(new MovingObjectPosition(living)); return; } diff --git a/src/main/java/vazkii/botania/common/entity/EntityCorporeaSpark.java b/src/main/java/vazkii/botania/common/entity/EntityCorporeaSpark.java index c1c277a70..796e2bdd4 100644 --- a/src/main/java/vazkii/botania/common/entity/EntityCorporeaSpark.java +++ b/src/main/java/vazkii/botania/common/entity/EntityCorporeaSpark.java @@ -32,6 +32,7 @@ public class EntityCorporeaSpark extends Entity implements ICorporeaSpark { private static final String TAG_MASTER = "master"; private static final String TAG_NETWORK = "network"; + private static final String TAG_INVIS = "invis"; ICorporeaSpark master; List connections = new ArrayList(); @@ -48,11 +49,13 @@ public class EntityCorporeaSpark extends Entity implements ICorporeaSpark { @Override protected void entityInit() { setSize(0.1F, 0.5F); + dataWatcher.addObject(EntitySpark.INVISIBILITY_DATA_WATCHER_KEY, 0); dataWatcher.addObject(28, 0); dataWatcher.addObject(29, 0); dataWatcher.addObject(30, 0); dataWatcher.addObject(31, new ItemStack(Blocks.stone, 0, 0)); + dataWatcher.setObjectWatched(EntitySpark.INVISIBILITY_DATA_WATCHER_KEY); dataWatcher.setObjectWatched(28); dataWatcher.setObjectWatched(29); dataWatcher.setObjectWatched(30); @@ -279,6 +282,16 @@ public class EntityCorporeaSpark extends Entity implements ICorporeaSpark { } } + return doPhantomInk(stack); + } + + public boolean doPhantomInk(ItemStack stack) { + if(stack.getItem() == ModItems.phantomInk && !worldObj.isRemote) { + int invis = dataWatcher.getWatchableObjectInt(EntitySpark.INVISIBILITY_DATA_WATCHER_KEY); + dataWatcher.updateObject(EntitySpark.INVISIBILITY_DATA_WATCHER_KEY, ~invis & 1); + return true; + } + return false; } @@ -286,12 +299,14 @@ public class EntityCorporeaSpark extends Entity implements ICorporeaSpark { protected void readEntityFromNBT(NBTTagCompound cmp) { setMaster(cmp.getBoolean(TAG_MASTER)); setNetwork(cmp.getInteger(TAG_NETWORK)); + dataWatcher.updateObject(EntitySpark.INVISIBILITY_DATA_WATCHER_KEY, cmp.getInteger(TAG_INVIS)); } @Override protected void writeEntityToNBT(NBTTagCompound cmp) { cmp.setBoolean(TAG_MASTER, isMaster()); cmp.setInteger(TAG_NETWORK, getNetwork()); + cmp.setInteger(TAG_INVIS, dataWatcher.getWatchableObjectInt(EntitySpark.INVISIBILITY_DATA_WATCHER_KEY)); } } diff --git a/src/main/java/vazkii/botania/common/entity/EntityDoppleganger.java b/src/main/java/vazkii/botania/common/entity/EntityDoppleganger.java index dc82267ec..87e31ddab 100644 --- a/src/main/java/vazkii/botania/common/entity/EntityDoppleganger.java +++ b/src/main/java/vazkii/botania/common/entity/EntityDoppleganger.java @@ -141,9 +141,10 @@ public class EntityDoppleganger extends EntityCreature implements IBotaniaBossWi public static boolean spawn(EntityPlayer player, ItemStack par1ItemStack, World par3World, int par4, int par5, int par6, boolean hard) { Block block = par3World.getBlock(par4, par5, par6); - if(block == Blocks.beacon && isTruePlayer(player) && !par3World.isRemote) { + if(block == Blocks.beacon && isTruePlayer(player)) { if(par3World.difficultySetting == EnumDifficulty.PEACEFUL) { - player.addChatMessage(new ChatComponentTranslation("botaniamisc.peacefulNoob").setChatStyle(new ChatStyle().setColor(EnumChatFormatting.RED))); + if(!par3World.isRemote) + player.addChatMessage(new ChatComponentTranslation("botaniamisc.peacefulNoob").setChatStyle(new ChatStyle().setColor(EnumChatFormatting.RED))); return false; } @@ -155,17 +156,38 @@ public class EntityDoppleganger extends EntityCreature implements IBotaniaBossWi Block blockat = par3World.getBlock(x, y, z); int meta = par3World.getBlockMetadata(x, y, z); if(blockat != ModBlocks.pylon || meta != 2) { - player.addChatMessage(new ChatComponentTranslation("botaniamisc.needsCatalysts").setChatStyle(new ChatStyle().setColor(EnumChatFormatting.RED))); + if(!par3World.isRemote) + player.addChatMessage(new ChatComponentTranslation("botaniamisc.needsCatalysts").setChatStyle(new ChatStyle().setColor(EnumChatFormatting.RED))); return false; } } if(!hasProperArena(par3World, par4, par5, par6)) { - player.addChatMessage(new ChatComponentTranslation("botaniamisc.badArena").setChatStyle(new ChatStyle().setColor(EnumChatFormatting.RED))); + for(int i = 0; i < 360; i += 8) { + float r = 1F; + float g = 0F; + float b = 1F; + float m = 0.15F; + float mv = 0.35F; + + float rad = i * (float) Math.PI / 180F; + double x = par4 + 0.5 - Math.cos(rad) * RANGE; + double y = par5 + 0.5; + double z = par6 + 0.5 - Math.sin(rad) * RANGE; + + Botania.proxy.sparkleFX(par3World, x, y, z, r, g, b, 5F, 120); + } + + if(!par3World.isRemote) + player.addChatMessage(new ChatComponentTranslation("botaniamisc.badArena").setChatStyle(new ChatStyle().setColor(EnumChatFormatting.RED))); return false; } par1ItemStack.stackSize--; + + if(par3World.isRemote) + return true; + EntityDoppleganger e = new EntityDoppleganger(par3World); e.setPosition(par4 + 0.5, par5 + 3, par6 + 0.5); e.setInvulTime(SPAWN_TICKS); @@ -355,7 +377,7 @@ public class EntityDoppleganger extends EntityCreature implements IBotaniaBossWi crit = p.fallDistance > 0.0F && !p.onGround && !p.isOnLadder() && !p.isInWater() && !p.isPotionActive(Potion.blindness) && p.ridingEntity == null; } - int cap = crit ? 50 : 35; + int cap = crit ? 60 : 40; return super.attackEntityFrom(par1DamageSource, Math.min(cap, dmg) * (isHardMode() ? 0.6F : 1F)); } return false; diff --git a/src/main/java/vazkii/botania/common/entity/EntityManaBurst.java b/src/main/java/vazkii/botania/common/entity/EntityManaBurst.java index 07a5560fb..cb1a75e41 100644 --- a/src/main/java/vazkii/botania/common/entity/EntityManaBurst.java +++ b/src/main/java/vazkii/botania/common/entity/EntityManaBurst.java @@ -49,6 +49,8 @@ import vazkii.botania.common.Botania; import vazkii.botania.common.core.handler.ConfigHandler; import vazkii.botania.common.core.helper.Vector3; import vazkii.botania.common.item.equipment.bauble.ItemTinyPlanet; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; public class EntityManaBurst extends EntityThrowable implements IManaBurst { @@ -394,6 +396,13 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst { } } + @Override + @SideOnly(Side.CLIENT) + public void setPositionAndRotation2(double p_70056_1_, double p_70056_3_, double p_70056_5_, float p_70056_7_, float p_70056_8_, int p_70056_9_) { + setPosition(p_70056_1_, p_70056_3_, p_70056_5_); + setRotation(p_70056_7_, p_70056_8_); + } + @Override public boolean handleWaterMovement() { return false; diff --git a/src/main/java/vazkii/botania/common/entity/EntitySpark.java b/src/main/java/vazkii/botania/common/entity/EntitySpark.java index cf5fa51a1..11814eac4 100644 --- a/src/main/java/vazkii/botania/common/entity/EntitySpark.java +++ b/src/main/java/vazkii/botania/common/entity/EntitySpark.java @@ -42,6 +42,8 @@ public class EntitySpark extends Entity implements ISparkEntity { private static final int TRANSFER_RATE = 1000; private static final String TAG_UPGRADE = "upgrade"; + private static final String TAG_INVIS = "invis"; + public static final int INVISIBILITY_DATA_WATCHER_KEY = 27; Set transfers = Collections.newSetFromMap(new WeakHashMap()); @@ -56,7 +58,9 @@ public class EntitySpark extends Entity implements ISparkEntity { @Override protected void entityInit() { setSize(0.1F, 0.5F); + dataWatcher.addObject(INVISIBILITY_DATA_WATCHER_KEY, 0); dataWatcher.addObject(28, 0); + dataWatcher.setObjectWatched(INVISIBILITY_DATA_WATCHER_KEY); dataWatcher.setObjectWatched(28); } @@ -277,17 +281,29 @@ public class EntitySpark extends Entity implements ISparkEntity { } } + return doPhantomInk(stack); + } + + public boolean doPhantomInk(ItemStack stack) { + if(stack.getItem() == ModItems.phantomInk && !worldObj.isRemote) { + int invis = dataWatcher.getWatchableObjectInt(INVISIBILITY_DATA_WATCHER_KEY); + dataWatcher.updateObject(INVISIBILITY_DATA_WATCHER_KEY, ~invis & 1); + return true; + } + return false; } @Override protected void readEntityFromNBT(NBTTagCompound cmp) { setUpgrade(cmp.getInteger(TAG_UPGRADE)); + dataWatcher.updateObject(INVISIBILITY_DATA_WATCHER_KEY, cmp.getInteger(TAG_INVIS)); } @Override protected void writeEntityToNBT(NBTTagCompound cmp) { cmp.setInteger(TAG_UPGRADE, getUpgrade()); + cmp.setInteger(TAG_INVIS, dataWatcher.getWatchableObjectInt(INVISIBILITY_DATA_WATCHER_KEY)); } @Override diff --git a/src/main/java/vazkii/botania/common/item/ItemBaubleBox.java b/src/main/java/vazkii/botania/common/item/ItemBaubleBox.java new file mode 100644 index 000000000..e702b3f60 --- /dev/null +++ b/src/main/java/vazkii/botania/common/item/ItemBaubleBox.java @@ -0,0 +1,76 @@ +/** + * This class was created by . It's distributed as + * part of the Botania Mod. Get the Source Code in github: + * https://github.com/Vazkii/Botania + * + * Botania is Open Source and distributed under the + * Botania License: http://botaniamod.net/license.php + * + * File Created @ [25/11/2015, 19:46:11 (GMT)] + */ +package vazkii.botania.common.item; + +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.inventory.IInventory; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.nbt.NBTTagList; +import net.minecraft.tileentity.TileEntity; +import net.minecraft.tileentity.TileEntityChest; +import net.minecraft.world.World; +import net.minecraftforge.common.MinecraftForge; +import net.minecraftforge.common.util.ForgeDirection; +import net.minecraftforge.event.entity.player.EntityItemPickupEvent; +import vazkii.botania.common.Botania; +import vazkii.botania.common.block.ModBlocks; +import vazkii.botania.common.core.helper.InventoryHelper; +import vazkii.botania.common.core.helper.ItemNBTHelper; +import vazkii.botania.common.lib.LibGuiIDs; +import vazkii.botania.common.lib.LibItemNames; +import cpw.mods.fml.common.eventhandler.SubscribeEvent; + +public class ItemBaubleBox extends ItemMod { + + private static final String TAG_ITEMS = "InvItems"; + private static final String TAG_SLOT = "Slot"; + + public ItemBaubleBox() { + setUnlocalizedName(LibItemNames.BAUBLE_BOX); + setMaxStackSize(1); + } + + @Override + public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) { + player.openGui(Botania.instance, LibGuiIDs.BAUBLE_BOX, world, 0, 0, 0); + return stack; + } + + + public static ItemStack[] loadStacks(ItemStack stack) { + NBTTagList var2 = ItemNBTHelper.getList(stack, TAG_ITEMS, 10, false); + ItemStack[] inventorySlots = new ItemStack[36]; + for(int var3 = 0; var3 < var2.tagCount(); ++var3) { + NBTTagCompound var4 = var2.getCompoundTagAt(var3); + byte var5 = var4.getByte(TAG_SLOT); + if(var5 >= 0 && var5 < inventorySlots.length) + inventorySlots[var5] = ItemStack.loadItemStackFromNBT(var4); + } + + return inventorySlots; + } + + public static void setStacks(ItemStack stack, ItemStack[] inventorySlots) { + NBTTagList var2 = new NBTTagList(); + for(int var3 = 0; var3 < inventorySlots.length; ++var3) + if(inventorySlots[var3] != null) { + NBTTagCompound var4 = new NBTTagCompound(); + var4.setByte(TAG_SLOT, (byte)var3); + inventorySlots[var3].writeToNBT(var4); + var2.appendTag(var4); + } + + ItemNBTHelper.setList(stack, TAG_ITEMS, var2); + } + +} diff --git a/src/main/java/vazkii/botania/common/item/ItemCraftingHalo.java b/src/main/java/vazkii/botania/common/item/ItemCraftingHalo.java index dd13df4db..d393f213a 100644 --- a/src/main/java/vazkii/botania/common/item/ItemCraftingHalo.java +++ b/src/main/java/vazkii/botania/common/item/ItemCraftingHalo.java @@ -455,11 +455,11 @@ public class ItemCraftingHalo extends ItemMod implements ICraftAchievement { } else { GL11.glScalef(0.75F, 0.75F, 0.75F); GL11.glTranslatef(0F, 0F, 0.5F); + GL11.glRotatef(90F, 0F, 1F, 0F); int renderPass = 0; do { IIcon icon = slotStack.getItem().getIcon(slotStack, renderPass); if(icon != null) { - GL11.glRotatef(90F, 0F, 1F, 0F); Color color = new Color(slotStack.getItem().getColorFromItemStack(slotStack, renderPass)); GL11.glColor3ub((byte) color.getRed(), (byte) color.getGreen(), (byte) color.getBlue()); float f = icon.getMinU(); diff --git a/src/main/java/vazkii/botania/common/item/ItemGrassSeeds.java b/src/main/java/vazkii/botania/common/item/ItemGrassSeeds.java index 40ee55673..45627d49b 100644 --- a/src/main/java/vazkii/botania/common/item/ItemGrassSeeds.java +++ b/src/main/java/vazkii/botania/common/item/ItemGrassSeeds.java @@ -44,7 +44,8 @@ public class ItemGrassSeeds extends ItemMod { private static final IslandType[] ISLAND_TYPES = { IslandType.GRASS, IslandType.PODZOL, IslandType.MYCEL, - null, null, null, null, null, null + IslandType.DRY, IslandType.GOLDEN, IslandType.VIVID, + IslandType.SCORCHED, IslandType.INFUSED, IslandType.MUTATED }; private static final int SUBTYPES = 9; diff --git a/src/main/java/vazkii/botania/common/item/ItemLexicon.java b/src/main/java/vazkii/botania/common/item/ItemLexicon.java index d3cc9983a..98ad09bf9 100644 --- a/src/main/java/vazkii/botania/common/item/ItemLexicon.java +++ b/src/main/java/vazkii/botania/common/item/ItemLexicon.java @@ -2,10 +2,10 @@ * This class was created by . It's distributed as * part of the Botania Mod. Get the Source Code in github: * https://github.com/Vazkii/Botania - * + * * Botania is Open Source and distributed under the * Botania License: http://botaniamod.net/license.php - * + * * File Created @ [Jan 14, 2014, 5:53:00 PM (GMT)] */ package vazkii.botania.common.item; @@ -200,7 +200,7 @@ public class ItemLexicon extends ItemMod implements ILexicon, IElvenItem { String force = getForcedPage(stack); for(LexiconEntry entry : BotaniaAPI.getAllEntries()) - if(entry.unlocalizedName.equals(force)) + if(entry.getUnlocalizedName().equals(force)) if(entry != null && ((ItemLexicon) stack.getItem()).isKnowledgeUnlocked(stack, entry.getKnowledgeType())) return entry; diff --git a/src/main/java/vazkii/botania/common/item/ItemTwigWand.java b/src/main/java/vazkii/botania/common/item/ItemTwigWand.java index 0b706a86b..de32dd143 100644 --- a/src/main/java/vazkii/botania/common/item/ItemTwigWand.java +++ b/src/main/java/vazkii/botania/common/item/ItemTwigWand.java @@ -282,7 +282,7 @@ public class ItemTwigWand extends Item16Colors implements ICoordBoundItem { } public static boolean getBindMode(ItemStack stack) { - return ItemNBTHelper.getBoolean(stack, TAG_BIND_MODE, false); + return ItemNBTHelper.getBoolean(stack, TAG_BIND_MODE, true); } public static void setBindMode(ItemStack stack, boolean bindMode) { diff --git a/src/main/java/vazkii/botania/common/item/ModItems.java b/src/main/java/vazkii/botania/common/item/ModItems.java index a1548feaa..d0b7114cf 100644 --- a/src/main/java/vazkii/botania/common/item/ModItems.java +++ b/src/main/java/vazkii/botania/common/item/ModItems.java @@ -55,6 +55,7 @@ import vazkii.botania.common.item.equipment.bauble.ItemMiningRing; import vazkii.botania.common.item.equipment.bauble.ItemMonocle; import vazkii.botania.common.item.equipment.bauble.ItemPixieRing; import vazkii.botania.common.item.equipment.bauble.ItemReachRing; +import vazkii.botania.common.item.equipment.bauble.ItemSpeedUpBelt; import vazkii.botania.common.item.equipment.bauble.ItemSuperLavaPendant; import vazkii.botania.common.item.equipment.bauble.ItemSuperTravelBelt; import vazkii.botania.common.item.equipment.bauble.ItemSwapRing; @@ -266,6 +267,8 @@ public final class ModItems { public static Item autocraftingHalo; public static Item gaiaHead; public static Item sextant; + public static Item speedUpBelt; + public static Item baubleBox; public static void init() { lexicon = new ItemLexicon(); @@ -414,6 +417,8 @@ public final class ModItems { autocraftingHalo = new ItemAutocraftingHalo(); gaiaHead = new ItemGaiaHead(); sextant = new ItemSextant(); + speedUpBelt = new ItemSpeedUpBelt(); + baubleBox = new ItemBaubleBox(); OreDictionary.registerOre(LibOreDict.LEXICON, lexicon); for(int i = 0; i < 16; i++) { diff --git a/src/main/java/vazkii/botania/common/item/block/ItemBlockSpecialFlower.java b/src/main/java/vazkii/botania/common/item/block/ItemBlockSpecialFlower.java index 8311cae46..183ad7b9d 100644 --- a/src/main/java/vazkii/botania/common/item/block/ItemBlockSpecialFlower.java +++ b/src/main/java/vazkii/botania/common/item/block/ItemBlockSpecialFlower.java @@ -84,6 +84,8 @@ public class ItemBlockSpecialFlower extends ItemBlockMod implements IRecipeKeyPr String type = getType(par1ItemStack); SubTileSignature sig = BotaniaAPI.getSignatureForName(type); + sig.addTooltip(par1ItemStack, par2EntityPlayer, par3List); + if(ConfigHandler.referencesEnabled) { String refUnlocalized = sig.getUnlocalizedLoreTextForStack(par1ItemStack); String refLocalized = StatCollector.translateToLocal(refUnlocalized); @@ -94,7 +96,6 @@ public class ItemBlockSpecialFlower extends ItemBlockMod implements IRecipeKeyPr String mod = BotaniaAPI.subTileMods.get(type); if(!mod.equals(LibMisc.MOD_ID)) par3List.add(EnumChatFormatting.ITALIC + "[" + mod + "]"); - sig.addTooltip(par1ItemStack, par2EntityPlayer, par3List); } public static String getType(ItemStack stack) { diff --git a/src/main/java/vazkii/botania/common/item/equipment/bauble/ItemMagnetRing.java b/src/main/java/vazkii/botania/common/item/equipment/bauble/ItemMagnetRing.java index aa392fbca..4fb9a7cd8 100644 --- a/src/main/java/vazkii/botania/common/item/equipment/bauble/ItemMagnetRing.java +++ b/src/main/java/vazkii/botania/common/item/equipment/bauble/ItemMagnetRing.java @@ -13,6 +13,7 @@ package vazkii.botania.common.item.equipment.bauble; import java.util.Arrays; import java.util.List; +import net.minecraft.block.Block; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.item.EntityItem; @@ -28,6 +29,7 @@ import vazkii.botania.client.core.helper.IconHelper; import vazkii.botania.common.Botania; import vazkii.botania.common.block.ModBlocks; import vazkii.botania.common.block.subtile.functional.SubTileSolegnolia; +import vazkii.botania.common.core.handler.ConfigHandler; import vazkii.botania.common.core.helper.ItemNBTHelper; import vazkii.botania.common.core.helper.MathHelper; import vazkii.botania.common.core.helper.Vector3; @@ -99,7 +101,7 @@ public class ItemMagnetRing extends ItemBauble { } if(cooldown <= 0) { - if(!player.isSneaking()) { + if(player.isSneaking() == ConfigHandler.invertMagnetRing) { double x = player.posX; double y = player.posY -(player.worldObj.isRemote ? 1.62 : 0) + 0.75; double z = player.posZ; @@ -127,15 +129,26 @@ public class ItemMagnetRing extends ItemBauble { return false; ItemStack stack = item.getEntityItem(); - if(stack == null || stack.getItem() instanceof IManaItem || stack.getItem() instanceof IRelic || BLACKLIST.contains(itemRegistry.getNameForObject(stack.getItem()))) + if(stack == null || stack.getItem() instanceof IManaItem || stack.getItem() instanceof IRelic || BLACKLIST.contains(itemRegistry.getNameForObject(stack.getItem())) || BotaniaAPI.isItemBlacklistedFromMagnet(stack)) return false; int x = net.minecraft.util.MathHelper.floor_double(item.posX); - int y = net.minecraft.util.MathHelper.floor_double(item.posY); + int y = (int) Math.floor(item.posY); int z = net.minecraft.util.MathHelper.floor_double(item.posZ); - if(item.worldObj.getBlock(x, y, z) == ModBlocks.terraPlate) - return false; + Block block = item.worldObj.getBlock(x, y, z); + int meta = item.worldObj.getBlockMetadata(x, y, z); + if(BotaniaAPI.isBlockBlacklistedFromMagnet(block, meta)) + return false; + + if(item.worldObj.isRemote) { + block = item.worldObj.getBlock(x, y - 1, z); + meta = item.worldObj.getBlockMetadata(x, y - 1, z); + + if(BotaniaAPI.isBlockBlacklistedFromMagnet(block, meta)) + return false; + } + return true; } diff --git a/src/main/java/vazkii/botania/common/item/equipment/bauble/ItemSpeedUpBelt.java b/src/main/java/vazkii/botania/common/item/equipment/bauble/ItemSpeedUpBelt.java new file mode 100644 index 000000000..8348d3e43 --- /dev/null +++ b/src/main/java/vazkii/botania/common/item/equipment/bauble/ItemSpeedUpBelt.java @@ -0,0 +1,73 @@ +/** + * This class was created by . It's distributed as + * part of the Botania Mod. Get the Source Code in github: + * https://github.com/Vazkii/Botania + * + * Botania is Open Source and distributed under the + * Botania License: http://botaniamod.net/license.php + * + * File Created @ [24/11/2015, 22:50:29 (GMT)] + */ +package vazkii.botania.common.item.equipment.bauble; + +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.ItemStack; +import net.minecraft.util.ResourceLocation; +import vazkii.botania.client.lib.LibResources; +import vazkii.botania.common.core.helper.ItemNBTHelper; +import vazkii.botania.common.lib.LibItemNames; + +public class ItemSpeedUpBelt extends ItemTravelBelt { + + private static final ResourceLocation texture = new ResourceLocation(LibResources.MODEL_SPEED_UP_BELT); + + private static final String TAG_SPEED = "speed"; + private static final String TAG_OLD_X = "oldX"; + private static final String TAG_OLD_Y = "oldY"; + private static final String TAG_OLD_Z = "oldZ"; + + public ItemSpeedUpBelt() { + super(LibItemNames.SPEED_UP_BELT, 0F, 0.2F, 2F); + } + + @Override + public ResourceLocation getRenderTexture() { + return texture; + } + + @Override + public float getSpeed(ItemStack stack) { + return ItemNBTHelper.getFloat(stack, TAG_SPEED, 0F); + } + + @Override + public void onMovedTick(ItemStack stack, EntityPlayer player) { + float speed = getSpeed(stack); + float newspeed = Math.min(0.25F, speed + 0.00035F); + ItemNBTHelper.setFloat(stack, TAG_SPEED, newspeed); + commitPositionAndCompare(stack, player); + } + + @Override + public void onNotMovingTick(ItemStack stack, EntityPlayer player) { + if(!commitPositionAndCompare(stack, player)) + ItemNBTHelper.setFloat(stack, TAG_SPEED, 0F); + } + + public boolean commitPositionAndCompare(ItemStack stack, EntityPlayer player) { + if(player.worldObj.isRemote) + return true; + + double oldX = ItemNBTHelper.getDouble(stack, TAG_OLD_X, 0); + double oldY = ItemNBTHelper.getDouble(stack, TAG_OLD_Y, 0); + double oldZ = ItemNBTHelper.getDouble(stack, TAG_OLD_Z, 0); + + ItemNBTHelper.setDouble(stack, TAG_OLD_X, player.posX); + ItemNBTHelper.setDouble(stack, TAG_OLD_Y, player.posY); + ItemNBTHelper.setDouble(stack, TAG_OLD_Z, player.posZ); + + return Math.abs(oldX - player.posX) > 0.001 || Math.abs(oldY - player.posY) > 0.001 || Math.abs(oldZ - player.posZ) > 0.001; + } + +} + diff --git a/src/main/java/vazkii/botania/common/item/equipment/bauble/ItemTravelBelt.java b/src/main/java/vazkii/botania/common/item/equipment/bauble/ItemTravelBelt.java index 8eb097cbb..339f25f3b 100644 --- a/src/main/java/vazkii/botania/common/item/equipment/bauble/ItemTravelBelt.java +++ b/src/main/java/vazkii/botania/common/item/equipment/bauble/ItemTravelBelt.java @@ -79,15 +79,21 @@ public class ItemTravelBelt extends ItemBauble implements IBaubleRender, IManaUs ItemStack belt = PlayerHandler.getPlayerBaubles(player).getStackInSlot(3); if(playersWithStepup.contains(s)) { if(shouldPlayerHaveStepup(player)) { - if((player.onGround || player.capabilities.isFlying) && player.moveForward > 0F && !player.isInsideOfMaterial(Material.water)) - player.moveFlying(0F, 1F, player.capabilities.isFlying ? ((ItemTravelBelt) belt.getItem()).speed : ((ItemTravelBelt) belt.getItem()).speed * 2); + ItemTravelBelt beltItem = (ItemTravelBelt) belt.getItem(); + + if((player.onGround || player.capabilities.isFlying) && player.moveForward > 0F && !player.isInsideOfMaterial(Material.water)) { + float speed = beltItem.getSpeed(belt); + player.moveFlying(0F, 1F, player.capabilities.isFlying ? speed : speed); + beltItem.onMovedTick(belt, player); + + if(player.ticksExisted % COST_INTERVAL == 0) + ManaItemHandler.requestManaExact(belt, player, COST, true); + } else beltItem.onNotMovingTick(belt, player); if(player.isSneaking()) player.stepHeight = 0.50001F; // Not 0.5F because that is the default else player.stepHeight = 1F; - if(player.ticksExisted % COST_INTERVAL == 0) - ManaItemHandler.requestManaExact(belt, player, COST, true); } else { player.stepHeight = 0.5F; playersWithStepup.remove(s); @@ -98,6 +104,18 @@ public class ItemTravelBelt extends ItemBauble implements IBaubleRender, IManaUs } } } + + public float getSpeed(ItemStack stack) { + return speed; + } + + public void onMovedTick(ItemStack stack, EntityPlayer player) { + // NO-OP + } + + public void onNotMovingTick(ItemStack stack, EntityPlayer player) { + // NO-OP + } @SubscribeEvent public void onPlayerJump(LivingJumpEvent event) { diff --git a/src/main/java/vazkii/botania/common/item/equipment/tool/ToolCommons.java b/src/main/java/vazkii/botania/common/item/equipment/tool/ToolCommons.java index 426138020..9c1a31fe6 100644 --- a/src/main/java/vazkii/botania/common/item/equipment/tool/ToolCommons.java +++ b/src/main/java/vazkii/botania/common/item/equipment/tool/ToolCommons.java @@ -137,7 +137,7 @@ public final class ToolCommons { double d0 = player.prevPosX + (player.posX - player.prevPosX) * f; double d1 = player.prevPosY + (player.posY - player.prevPosY) * f; if (!world.isRemote && player instanceof EntityPlayer) - d1 += 1.62D; + d1 += ((EntityPlayer) player).eyeHeight; double d2 = player.prevPosZ + (player.posZ - player.prevPosZ) * f; Vec3 vec3 = Vec3.createVectorHelper(d0, d1, d2); float f3 = MathHelper.cos(-f2 * 0.017453292F - (float) Math.PI); diff --git a/src/main/java/vazkii/botania/common/item/lens/ItemLens.java b/src/main/java/vazkii/botania/common/item/lens/ItemLens.java index 5434b4445..5c58ed735 100644 --- a/src/main/java/vazkii/botania/common/item/lens/ItemLens.java +++ b/src/main/java/vazkii/botania/common/item/lens/ItemLens.java @@ -28,6 +28,7 @@ import net.minecraftforge.oredict.RecipeSorter; import net.minecraftforge.oredict.RecipeSorter.Category; import vazkii.botania.api.internal.IManaBurst; import vazkii.botania.api.mana.BurstProperties; +import vazkii.botania.api.mana.ICompositableLens; import vazkii.botania.api.mana.ILens; import vazkii.botania.api.mana.ILensControl; import vazkii.botania.api.mana.IManaSpreader; @@ -41,7 +42,7 @@ import vazkii.botania.common.item.ItemMod; import vazkii.botania.common.lib.LibItemNames; import cpw.mods.fml.common.registry.GameRegistry; -public class ItemLens extends ItemMod implements ILensControl, ITinyPlanetExcempt { +public class ItemLens extends ItemMod implements ILensControl, ICompositableLens, ITinyPlanetExcempt { public static final int SUBTYPES = 22; @@ -287,8 +288,10 @@ public class ItemLens extends ItemMod implements ILensControl, ITinyPlanetExcemp lenses[index] = lens; } - public static boolean isBlacklisted(int lens1, int lens2) { - return (props[lens1] & props[lens2]) != 0; + public static boolean isBlacklisted(ItemStack lens1, ItemStack lens2) { + ICompositableLens item1 = (ICompositableLens) lens1.getItem(); + ICompositableLens item2 = (ICompositableLens) lens2.getItem(); + return (item1.getProps(lens1) & item2.getProps(lens2)) != 0; } public static Lens getLens(int index) { @@ -301,13 +304,15 @@ public class ItemLens extends ItemMod implements ILensControl, ITinyPlanetExcemp @Override public boolean canCombineLenses(ItemStack sourceLens, ItemStack compositeLens) { - if(sourceLens.getItemDamage() == compositeLens.getItemDamage()) + ICompositableLens sourceItem = (ICompositableLens) sourceLens.getItem(); + ICompositableLens compositeItem = (ICompositableLens) compositeLens.getItem(); + if(sourceItem == compositeItem && sourceLens.getItemDamage() == compositeLens.getItemDamage()) return false; - if(sourceLens.getItemDamage() == NORMAL || compositeLens.getItemDamage() == NORMAL) + if(!sourceItem.isCombinable(sourceLens) || !compositeItem.isCombinable(compositeLens)) return false; - if(isBlacklisted(sourceLens.getItemDamage(), compositeLens.getItemDamage())) + if(isBlacklisted(sourceLens, compositeLens)) return false; return true; @@ -336,7 +341,7 @@ public class ItemLens extends ItemMod implements ILensControl, ITinyPlanetExcemp @Override public boolean isControlLens(ItemStack stack) { - return (props[stack.getItemDamage()] & PROP_CONTROL) != 0; + return (getProps(stack) & PROP_CONTROL) != 0; } @Override @@ -353,4 +358,14 @@ public class ItemLens extends ItemMod implements ILensControl, ITinyPlanetExcemp public void onControlledSpreaderPulse(ItemStack stack, IManaSpreader spreader, boolean redstone) { lenses[stack.getItemDamage()].onControlledSpreaderPulse(stack, spreader, redstone); } + + @Override + public int getProps(ItemStack stack) { + return props[stack.getItemDamage()]; + } + + @Override + public boolean isCombinable(ItemStack stack) { + return stack.getItemDamage() != NORMAL; + } } diff --git a/src/main/java/vazkii/botania/common/item/lens/LensDamage.java b/src/main/java/vazkii/botania/common/item/lens/LensDamage.java index 68a512b24..f1a268901 100644 --- a/src/main/java/vazkii/botania/common/item/lens/LensDamage.java +++ b/src/main/java/vazkii/botania/common/item/lens/LensDamage.java @@ -35,7 +35,7 @@ public class LensDamage extends Lens { if(mana >= 16) { burst.setMana(mana - 16); if(!burst.isFake() && !entity.worldObj.isRemote) - living.attackEntityFrom(DamageSource.magic, 4); + living.attackEntityFrom(DamageSource.magic, 8); break; } } diff --git a/src/main/java/vazkii/botania/common/item/relic/ItemInfiniteFruit.java b/src/main/java/vazkii/botania/common/item/relic/ItemInfiniteFruit.java index 54ca07f67..1e24a9fc5 100644 --- a/src/main/java/vazkii/botania/common/item/relic/ItemInfiniteFruit.java +++ b/src/main/java/vazkii/botania/common/item/relic/ItemInfiniteFruit.java @@ -54,7 +54,7 @@ public class ItemInfiniteFruit extends ItemRelic implements IManaUsingItem { public void onUsingTick(ItemStack stack, EntityPlayer player, int count) { super.onUsingTick(stack, player, count); - if(ManaItemHandler.requestManaExact(stack, player, 1000, true)) { + if(ManaItemHandler.requestManaExact(stack, player, 500, true)) { if(count % 5 == 0) player.getFoodStats().addStats(1, 1F); diff --git a/src/main/java/vazkii/botania/common/item/rod/ItemTerraformRod.java b/src/main/java/vazkii/botania/common/item/rod/ItemTerraformRod.java index a097c21b1..8b73dd279 100644 --- a/src/main/java/vazkii/botania/common/item/rod/ItemTerraformRod.java +++ b/src/main/java/vazkii/botania/common/item/rod/ItemTerraformRod.java @@ -52,7 +52,19 @@ public class ItemTerraformRod extends ItemMod implements IManaUsingItem, IBlockP "snowLayer", "mycelium", "podzol", - "sandstone" + "sandstone", + + // Mod support + "blockDiorite", + "stoneDiorite", + "blockGranite", + "stoneGranite", + "blockAndesite", + "stoneAndesite", + "marble", + "blockMarble", + "limestone", + "blockLimestone" }); public ItemTerraformRod() { diff --git a/src/main/java/vazkii/botania/common/lexicon/LexiconData.java b/src/main/java/vazkii/botania/common/lexicon/LexiconData.java index 23aa13750..40ffbd8cd 100644 --- a/src/main/java/vazkii/botania/common/lexicon/LexiconData.java +++ b/src/main/java/vazkii/botania/common/lexicon/LexiconData.java @@ -160,6 +160,7 @@ public final class LexiconData { public static LexiconEntry manaBomb; public static LexiconEntry teruTeruBozu; public static LexiconEntry avatar; + public static LexiconEntry felPumpkin; public static LexiconEntry manaBlaster; public static LexiconEntry grassSeeds; @@ -250,6 +251,8 @@ public final class LexiconData { public static LexiconEntry judgementCloaks; public static LexiconEntry monocle; public static LexiconEntry swapRing; + public static LexiconEntry speedUpBelt; + public static LexiconEntry baubleBox; public static LexiconEntry alfhomancyIntro; public static LexiconEntry elvenMessage; @@ -350,7 +353,7 @@ public final class LexiconData { if(Botania.gardenOfGlassLoaded) { gardenOfGlass = new BLexiconEntry(LibLexicon.BASICS_GARDEN_OF_GLASS, categoryBasics); - gardenOfGlass.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageCraftingRecipe("3", ModCraftingRecipes.recipeRootToSapling), 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("10", ModCraftingRecipes.recipeFelPumpkin), new PageText("11"), new PageCraftingRecipe("12", ModCraftingRecipes.recipeEndPortal)); + gardenOfGlass.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageCraftingRecipe("3", ModCraftingRecipes.recipeRootToSapling), 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 PageText("11"), new PageCraftingRecipe("12", ModCraftingRecipes.recipeEndPortal)); gardenOfGlass.setPriority().setIcon(new ItemStack(ModItems.manaResource, 1, 20)); } @@ -365,10 +368,10 @@ public final class LexiconData { spreader.setPriority().setLexiconPages(new PageText("0"), new PageImage("1", LibResources.ENTRY_SPREADER), new PageText("2"), new PageText("3"), new PageText("4"), new PageText("11"), new PageCraftingRecipe("5", ModCraftingRecipes.recipesSpreader), new PageText("10")); pool = new BLexiconEntry(LibLexicon.MANA_POOL, categoryMana); - pool.setPriority().setLexiconPages(new PageText("0"), new PageText("9"), new PageCraftingRecipe("1", ModCraftingRecipes.recipePool), new PageManaInfusionRecipe("10", ModManaInfusionRecipes.poolRecipe), new PageText("2"), new PageText("8"), new PageManaInfusionRecipe("3", ModManaInfusionRecipes.manasteelRecipes), new PageManaInfusionRecipe("4", ModManaInfusionRecipes.manaPearlRecipe), new PageManaInfusionRecipe("5", ModManaInfusionRecipes.manaDiamondRecipes), new PageManaInfusionRecipe("6", ModManaInfusionRecipes.manaPetalRecipes), new PageManaInfusionRecipe("11", ModManaInfusionRecipes.managlassRecipe), new PageManaInfusionRecipe("12", ModManaInfusionRecipes.manaStringRecipe), new PageCraftingRecipe("13", ModCraftingRecipes.recipeCobweb), new PageManaInfusionRecipe("7", ModManaInfusionRecipes.manaCookieRecipe)).setIcon(new ItemStack(ModBlocks.pool)); + pool.setPriority().setLexiconPages(new PageText("0"), new PageText("9"), new PageCraftingRecipe("1", ModCraftingRecipes.recipePool), new PageCraftingRecipe("10", ModCraftingRecipes.recipePoolDiluted), new PageText("14"), new PageText("2"), new PageText("8"), new PageManaInfusionRecipe("3", ModManaInfusionRecipes.manasteelRecipes), new PageManaInfusionRecipe("4", ModManaInfusionRecipes.manaPearlRecipe), new PageManaInfusionRecipe("5", ModManaInfusionRecipes.manaDiamondRecipes), new PageManaInfusionRecipe("6", ModManaInfusionRecipes.manaPetalRecipes), new PageManaInfusionRecipe("11", ModManaInfusionRecipes.managlassRecipe), new PageManaInfusionRecipe("12", ModManaInfusionRecipes.manaStringRecipe), new PageCraftingRecipe("13", ModCraftingRecipes.recipeCobweb), new PageManaInfusionRecipe("7", ModManaInfusionRecipes.manaCookieRecipe)).setIcon(new ItemStack(ModBlocks.pool)); sparks = new BLexiconEntry(LibLexicon.MANA_SPARKS, categoryMana); - sparks.setPriority().setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCraftingRecipes.recipesSpark)); + sparks.setPriority().setLexiconPages(new PageText("0"), new PageText("1"), new PageText("3"), new PageCraftingRecipe("2", ModCraftingRecipes.recipesSpark)); sparkUpgrades = new ALexiconEntry(LibLexicon.MANA_SPARK_UPGRADES, categoryMana); sparkUpgrades.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageText("3"), new PageText("4"), new PageCraftingRecipe("5", ModCraftingRecipes.recipesSparkUpgrades)); @@ -535,16 +538,16 @@ public final class LexiconData { primusLoci.setIcon(ItemBlockSpecialFlower.ofType(LibBlockNames.SUBTILE_DAYBLOOM_PRIME)); daybloom = new BLexiconEntry(LibLexicon.GFLOWER_DAYBLOOM, categoryGenerationFlowers); - daybloom.setPriority().setLexiconPages(new PageText("0"), new PageText(ConfigHandler.hardcorePassiveGeneration > 0 ? "1a" : "1"), new PageImage("3", LibResources.ENTRY_DIMINISHING_RETURNS), new PagePetalRecipe("2", ModPetalRecipes.daybloomRecipe)); + daybloom.setPriority().setLexiconPages(new PageText("0"), new PageText("1"), new PagePetalRecipe("2", ModPetalRecipes.daybloomRecipe)); nightshade = new BLexiconEntry(LibLexicon.GFLOWER_NIGHTSHADE, categoryGenerationFlowers); - nightshade.setLexiconPages(new PageText(ConfigHandler.hardcorePassiveGeneration > 0 ? "0a" :"0"), new PagePetalRecipe("1", ModPetalRecipes.nightshadeRecipe)); + nightshade.setLexiconPages(new PageText("0"), new PagePetalRecipe("1", ModPetalRecipes.nightshadeRecipe)); endoflame = new BLexiconEntry(LibLexicon.GFLOWER_ENDOFLAME, categoryGenerationFlowers); endoflame.setLexiconPages(new PageText("0"), new PageText("1"), new PagePetalRecipe("2", ModPetalRecipes.endoflameRecipe)); hydroangeas = new BLexiconEntry(LibLexicon.GFLOWER_HYDROANGEAS, categoryGenerationFlowers); - hydroangeas.setLexiconPages(new PageText(ConfigHandler.hardcorePassiveGeneration > 0 ? "0a" : "0"), new PageImage("2", LibResources.ENTRY_HYDROANGEAS), new PageText("3"), new PagePetalRecipe("1", ModPetalRecipes.hydroangeasRecipe)); + hydroangeas.setLexiconPages(new PageText("0"), new PageImage("2", LibResources.ENTRY_HYDROANGEAS), new PagePetalRecipe("1", ModPetalRecipes.hydroangeasRecipe)); thermalily = new BLexiconEntry(LibLexicon.GFLOWER_THERMALILY, categoryGenerationFlowers); thermalily.setLexiconPages(new PageText("0"), new PagePetalRecipe("1", ModPetalRecipes.thermalilyRecipe)); @@ -667,6 +670,9 @@ public final class LexiconData { avatar = new BLexiconEntry(LibLexicon.DEVICE_AVATAR, categoryDevices); avatar.setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCraftingRecipes.recipeAvatar)); + felPumpkin = new BLexiconEntry(LibLexicon.DEVICE_FEL_PUMPKIN, categoryDevices); + felPumpkin.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeFelPumpkin)); + // TOOLS ENTRIES manaBlaster = new BLexiconEntry(LibLexicon.TOOL_MANA_BLASTER, categoryTools); manaBlaster.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageCraftingRecipe("3", ModCraftingRecipes.recipeManaBlaster)); @@ -951,6 +957,12 @@ public final class LexiconData { swapRing = new BLexiconEntry(LibLexicon.BAUBLE_SWAP_RING, categoryBaubles); swapRing.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeSwapRing)); + speedUpBelt = new BLexiconEntry(LibLexicon.BAUBLE_SPEED_UP_BELT, categoryBaubles); + speedUpBelt.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeSpeedUpBelt)); + + baubleBox = new BLexiconEntry(LibLexicon.BAUBLE_BOX, categoryBaubles); + baubleBox.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeBaubleCase)).setPriority(); + // ALFHOMANCY ENTRIES alfhomancyIntro = new BLexiconEntry(LibLexicon.ALF_INTRO, categoryAlfhomancy); alfhomancyIntro.setPriority().setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCraftingRecipes.recipeAlfPortal), new PageCraftingRecipe("3", ModCraftingRecipes.recipeNaturaPylon), new PageMultiblock("4", ModMultiblocks.alfPortal), diff --git a/src/main/java/vazkii/botania/common/lexicon/page/PageManaInfusionRecipe.java b/src/main/java/vazkii/botania/common/lexicon/page/PageManaInfusionRecipe.java index bdb94278d..1c204e845 100644 --- a/src/main/java/vazkii/botania/common/lexicon/page/PageManaInfusionRecipe.java +++ b/src/main/java/vazkii/botania/common/lexicon/page/PageManaInfusionRecipe.java @@ -115,7 +115,7 @@ public class PageManaInfusionRecipe extends PageRecipe { hoveringOverDrop = true; font.drawString(dropString, dx, dy, 0x77000000); - font.drawString(ratioString, x + 100 - font.getStringWidth(ratioString), y + 5, 0x99000000); + font.drawString(ratioString, x + 50 - font.getStringWidth(ratioString) / 2, y + 5, 0x99000000); font.setUnicodeFlag(unicode); GL11.glDisable(GL11.GL_BLEND); diff --git a/src/main/java/vazkii/botania/common/lexicon/page/PagePetalRecipe.java b/src/main/java/vazkii/botania/common/lexicon/page/PagePetalRecipe.java index b3822be5c..ece68e3b0 100644 --- a/src/main/java/vazkii/botania/common/lexicon/page/PagePetalRecipe.java +++ b/src/main/java/vazkii/botania/common/lexicon/page/PagePetalRecipe.java @@ -15,10 +15,12 @@ import java.util.Arrays; import java.util.List; import net.minecraft.client.Minecraft; +import net.minecraft.client.gui.FontRenderer; import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.renderer.texture.TextureManager; import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; +import net.minecraft.util.StatCollector; import net.minecraftforge.oredict.OreDictionary; import org.lwjgl.opengl.GL11; @@ -97,7 +99,20 @@ public class PagePetalRecipe extends PageRecipe { @SideOnly(Side.CLIENT) public void renderManaBar(IGuiLexiconEntry gui, T recipe, int mx, int my) { - // NO-OP + FontRenderer font = Minecraft.getMinecraft().fontRenderer; + GL11.glEnable(GL11.GL_BLEND); + GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); + + int x = gui.getLeft() + gui.getWidth() / 2 - 50; + int y = gui.getTop() + 120; + + boolean unicode = font.getUnicodeFlag(); + font.setUnicodeFlag(true); + String stopStr = StatCollector.translateToLocal("botaniamisc.shiftToStopSpin"); + font.drawString(stopStr, x + 50 - font.getStringWidth(stopStr) / 2, y + 15, 0x99000000); + font.setUnicodeFlag(unicode); + + GL11.glDisable(GL11.GL_BLEND); } @Override diff --git a/src/main/java/vazkii/botania/common/lexicon/page/PageRuneRecipe.java b/src/main/java/vazkii/botania/common/lexicon/page/PageRuneRecipe.java index 7633ed9f2..74ff9943f 100644 --- a/src/main/java/vazkii/botania/common/lexicon/page/PageRuneRecipe.java +++ b/src/main/java/vazkii/botania/common/lexicon/page/PageRuneRecipe.java @@ -49,11 +49,11 @@ public class PageRuneRecipe extends PagePetalRecipe { GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); String manaUsage = StatCollector.translateToLocal("botaniamisc.manaUsage"); - font.drawString(manaUsage, gui.getLeft() + gui.getWidth() / 2 - font.getStringWidth(manaUsage) / 2, gui.getTop() + 115, 0x66000000); + font.drawString(manaUsage, gui.getLeft() + gui.getWidth() / 2 - font.getStringWidth(manaUsage) / 2, gui.getTop() + 110, 0x66000000); int ratio = 10; int x = gui.getLeft() + gui.getWidth() / 2 - 50; - int y = gui.getTop() + 125; + int y = gui.getTop() + 120; if(mx > x + 1 && mx <= x + 101 && my > y - 14 && my <= y + 11) ratio = 1; @@ -61,11 +61,14 @@ public class PageRuneRecipe extends PagePetalRecipe { HUDHandler.renderManaBar(x, y, 0x0000FF, 0.75F, recipe.getManaUsage(), TilePool.MAX_MANA / ratio); String ratioString = String.format(StatCollector.translateToLocal("botaniamisc.ratio"), ratio); - + String stopStr = StatCollector.translateToLocal("botaniamisc.shiftToStopSpin"); + boolean unicode = font.getUnicodeFlag(); font.setUnicodeFlag(true); - font.drawString(ratioString, x + 100 - font.getStringWidth(ratioString), y + 5, 0x99000000); - font.setUnicodeFlag(unicode); GL11.glDisable(GL11.GL_BLEND); + font.drawString(stopStr, x + 50 - font.getStringWidth(stopStr) / 2, y + 15, 0x99000000); + font.drawString(ratioString, x + 50 - font.getStringWidth(ratioString) / 2, y + 5, 0x99000000); + font.setUnicodeFlag(unicode); + GL11.glDisable(GL11.GL_BLEND); } } diff --git a/src/main/java/vazkii/botania/common/lib/LibGuiIDs.java b/src/main/java/vazkii/botania/common/lib/LibGuiIDs.java index d0f003b19..fefcb749a 100644 --- a/src/main/java/vazkii/botania/common/lib/LibGuiIDs.java +++ b/src/main/java/vazkii/botania/common/lib/LibGuiIDs.java @@ -15,5 +15,6 @@ public final class LibGuiIDs { public static final int LEXICON = 0; public static final int CRAFTING_HALO = 1; public static final int FLOWER_BAG = 2; + public static final int BAUBLE_BOX = 3; } diff --git a/src/main/java/vazkii/botania/common/lib/LibItemNames.java b/src/main/java/vazkii/botania/common/lib/LibItemNames.java index 4b4e2fb54..5351f3a84 100644 --- a/src/main/java/vazkii/botania/common/lib/LibItemNames.java +++ b/src/main/java/vazkii/botania/common/lib/LibItemNames.java @@ -159,6 +159,8 @@ public final class LibItemNames { public static final String AUTOCRAFTING_HALO = "autocraftingHalo"; public static final String GAIA_HEAD = "gaiaHead"; public static final String SEXTANT = "sextant"; + public static final String SPEED_UP_BELT = "speedUpBelt"; + public static final String BAUBLE_BOX = "baubleBox"; public static final String[] LENS_NAMES = new String[] { "lensNormal", diff --git a/src/main/java/vazkii/botania/common/lib/LibLexicon.java b/src/main/java/vazkii/botania/common/lib/LibLexicon.java index 219c74dad..fc884c301 100644 --- a/src/main/java/vazkii/botania/common/lib/LibLexicon.java +++ b/src/main/java/vazkii/botania/common/lib/LibLexicon.java @@ -131,6 +131,7 @@ public final class LibLexicon { public static final String DEVICE_MANA_BOMB = "manaBomb"; public static final String DEVICE_TERU_TERU_BOZU = "teruTeruBozu"; public static final String DEVICE_AVATAR = "avatar"; + public static final String DEVICE_FEL_PUMPKIN = "felPumpkin"; public static final String TOOL_MANA_BLASTER = "manaBlaster"; public static final String TOOL_GRASS_SEEDS = "grassSeeds"; @@ -221,6 +222,8 @@ public final class LibLexicon { public static final String BAUBLE_JUDGEMENT_CLOAKS = "judgementCloaks"; public static final String BAUBLE_MONOCLE = "monocle"; public static final String BAUBLE_SWAP_RING = "swapRing"; + public static final String BAUBLE_SPEED_UP_BELT = "speedUpBelt"; + public static final String BAUBLE_BOX = "baubleBox"; public static final String ALF_INTRO = "aIntro"; public static final String ALF_MESSAGE = "elfMessage"; diff --git a/src/main/java/vazkii/botania/common/network/GuiHandler.java b/src/main/java/vazkii/botania/common/network/GuiHandler.java index c33d580f6..0dd9fea9f 100644 --- a/src/main/java/vazkii/botania/common/network/GuiHandler.java +++ b/src/main/java/vazkii/botania/common/network/GuiHandler.java @@ -14,6 +14,8 @@ import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; import vazkii.botania.client.gui.bag.ContainerFlowerBag; import vazkii.botania.client.gui.bag.GuiFlowerBag; +import vazkii.botania.client.gui.box.ContainerBaubleBox; +import vazkii.botania.client.gui.box.GuiBaubleBox; import vazkii.botania.client.gui.crafting.ContainerCraftingHalo; import vazkii.botania.client.gui.crafting.GuiCraftingHalo; import vazkii.botania.client.gui.lexicon.GuiLexicon; @@ -29,6 +31,8 @@ public class GuiHandler implements IGuiHandler { return new ContainerCraftingHalo(player.inventory, world); case LibGuiIDs.FLOWER_BAG : return new ContainerFlowerBag(player); + case LibGuiIDs.BAUBLE_BOX : + return new ContainerBaubleBox(player); } return null; @@ -44,6 +48,8 @@ public class GuiHandler implements IGuiHandler { return new GuiCraftingHalo(player.inventory, world); case LibGuiIDs.FLOWER_BAG : return new GuiFlowerBag(player); + case LibGuiIDs.BAUBLE_BOX : + return new GuiBaubleBox(player); } return null; diff --git a/src/main/resources/assets/botania/lang/en_US.lang b/src/main/resources/assets/botania/lang/en_US.lang index 67bc4286b..3105e699e 100644 --- a/src/main/resources/assets/botania/lang/en_US.lang +++ b/src/main/resources/assets/botania/lang/en_US.lang @@ -47,7 +47,7 @@ botaniamisc.bookmark=Bookmark #%s botaniamisc.clickToSee=Click to read botaniamisc.shiftToRemove=Shift-click to remove botaniamisc.clickToAdd=Add Bookmark -botaniamisc.ratio=Zoom: %sx +botaniamisc.ratio=%sx Zoom (hover to zoom out) botaniamisc.bottleTooltip=It has an acquired taste botaniamisc.coarseDirt0=Coarse Dirt, grass botaniamisc.coarseDirt1=won't grow on it @@ -145,6 +145,8 @@ botaniamisc.changes5=&fLeft Click&7 to dismiss this botaniamisc.badArena=As hard as you try, the Beacon will not accept your sacrifice. You believe the ritual grounds might be improper. It might be a good idea to check for obstructions on the nearby area or large gaps on the floor. botaniamisc.tutorialText=Ingame botaniamisc.tutorialVideo=Video +botaniamisc.shiftToStopSpin=(SHIFT to stop animation) +botaniamisc.noVideo=Video will be back soon. Sorry :( # NEI INTEGRATION botania.nei.brewery=Botanical Brewery @@ -279,6 +281,12 @@ botania.knowledge.minecraft=Minecraftian Knowledge botania.knowledge.alfheim=&aElven&7 Knowledge botania.knowledge.relic=&5Relic&7 Knowledge +# FLOWER TYPES +botania.flowerType.passiveGenerating=Passive Generating Flower +botania.flowerType.generating=Generating Flower +botania.flowerType.functional=Functional Flower +botania.flowerType.misc=Miscellaneous Flower + # CONFIGURATION blockBreakingParticles.enabled=Block Break Particles blockBreakingParticlesTool.enabled=Tool Block Break Particles @@ -1278,9 +1286,9 @@ tile.botania:flower.spectranthemum.reference=In the shell tile.botania:flower.medumone.name=Medumone tile.botania:flower.medumone.reference='Twas Hades all along tile.botania:flower.marimorphosis.name=Marimorphosis -tile.botania:flower.marimorphosis.reference=Solid as a rock +tile.botania:flower.marimorphosis.reference=U-MA-RU tile.botania:flower.marimorphosisChibi.name=Marimorphosis Petite -tile.botania:flower.marimorphosisChibi.reference=Solid as a rock +tile.botania:flower.marimorphosisChibi.reference=U-MA-RU tile.botania:flower.bubbell.name=Bubbell tile.botania:flower.bubbell.reference=And whistle tile.botania:flower.bubbellChibi.name=Bubbell Petite @@ -1632,6 +1640,8 @@ item.botania:manaweaveLegs.name=Manaweave Robe Bottom item.botania:manaweaveBoots.name=Manaweave Boots item.botania:gaiaHead.name=Gaia Guardian's Head item.botania:sextant.name=Worldshaper's Sextant +item.botania:speedUpBelt.name=Planestrider's Sash +item.botania:baubleBox.name=Bauble Case # BREW NAMES botania.brew.fallback=Fallback @@ -1974,8 +1984,7 @@ 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.gardenOfGlass7=Creating &1Sugar Canes&0 botania.page.gardenOfGlass8=Creating &1Slimeballs&0 -botania.page.gardenOfGlass9=It's possible to infuse a &1Pumpkin&0 with the fel spirits of monster slain, creating a &1Fel Pumpkin&0. This can be placed atop two &1Iron Bars&0, in a similar fashion to a &1Snow Golem&0, to spawn a &1Blaze&0.
&1Blazes&0 spawned with this method drop &1Blaze Powder&0 instead of &1Blaze Rods&0. -botania.page.gardenOfGlass10=Nerfing warlocks again +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 easilly 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, an &1End Portal&0 recipe @@ -2036,7 +2045,7 @@ botania.entry.runeAltar=Runic Altar botania.tagline.runeAltar=Create runes for stronger flowers and items botania.page.runeAltar21=Runic creation is a rather important complex in the advancement of the botanical magics. First and foremost, though, this type of crafting requires a decent knowledge of &4Mana Manipulation&0. Before proceeding further, a read through the important entries (those in &oItalics&r) on that section of the &1Lexica Botania&0 might prove enlightening. botania.page.runeAltar0=&1Runes&0 are extremely important components of complex magical devices or flora.
In order to create these, one would require a &1Runic Altar&0.
To utilize this &1Runic Altar&0, start by placing, via either a right click or simply tossing, the components to the rune you want to create. -botania.page.runeAltar1=Proceed by linking a &1Mana Spreader&0 to the altar, and right click it with a &1Wand of the Forest&0.
It should be apparent when the altar has received enough &4Mana&0. When that happens, just drop a piece of &1Livingrock&0 on top of it and use the wand on it again to collect your rune. +botania.page.runeAltar1=Proceed by pointing a &1Mana Spreader&0 to the altar so that &4Mana&0 transfer can occur.
It should be apparent when the altar has received enough &4Mana&0. When that happens, just drop a piece of &1Livingrock&0 on top of it, or right click with it, and use the wand on it again to collect your rune. botania.page.runeAltar2=Crafting the &1Runic Altar&0. botania.page.runeAltar3=A total of 16 &1Runes&0 exist.
The most basic and elementary runes are named after the &4Four Elements&0. The intermediate runes are named after the &4Four Seasons&0, and the most advanced runes are named after the &4Seven Deadly Sins&0. A separate &1Rune of Mana&0 also exists. botania.page.runeAltar20=Sneaking and right-clicking the &1Runic Altar&0 with an empty hand while it's not accepting mana will remove the last item put into it.
Last but not least, attaching a &1Comparator&0 to it will emit signal strength &41&0 if the altar is accepting &4Mana&0 and signal strength &42&0 if it's ready to craft the rune. @@ -2108,10 +2117,11 @@ botania.page.spreader10=Right clicking the spreader with a piece of &1Wool&0 wil botania.entry.pool=Mana Pool botania.tagline.pool=Mana storage for the masses botania.page.pool0=The &1Mana Pool&0 is, simply put, a storage of &4Mana&0.
Mana can be inserted into it by usage of a &1Mana Spreader&0, and any adjacent &1Mana Spreaders&0 will pull mana from it to increase their internal buffer automatically.
Any &4Functional Flowers&0 require a nearby &1Mana Pool&0 to draw power from. -botania.page.pool9=&1Mana Pools&0 come in two varieties, a weaker, &1Diluted&0 variety which only stores a very small amount of &4Mana&0 and isn't able to infuse items, and a &1Normal&0 variety, which can store as much as a hundred times more than the dilluted one and can infuse items.
Whenever "Mana Pool" is refered elsewhere for scale, it refers to a normal one. -botania.page.pool1=Making a &1Dilluted Mana Pool&0. -botania.page.pool10=Infusing a normal &1Mana Pool&0 -botania.page.pool2=Tossing in some resources into a normal &1Mana Pool&0 will cause them to get infused with &4Mana&0, turning them into more powerful forms.
A few examples are &1Iron Ingots&0 or &1Mystical Petals&0.
&4Mana&0 reading for this block functions like the &1Mana Spreader&0. A &1Redstone Comparator&0 can also output a signal based on the contents. +botania.page.pool9=&1Mana Pools&0 come in two varieties, a weaker, &1Diluted&0 variety which only stores a very small amount of &4Mana&0, and a &1Normal&0 variety, which can store as much as a hundred times more than the dilluted one.
Whenever "Mana Pool" is refered elsewhere for scale, it refers to a normal one. +botania.page.pool1=Making a &1Mana Pool&0. +botania.page.pool10=Making a &1Diluted Mana Pool&0 +botania.page.pool14=The &1Diluted Mana Pool&0 can be a useful tool for when one might want a small buffer for a flower or system that doesn't use much &4Mana&0, as the normal pool holds a very large amount of it. Thanks to that, &4Mana&0 readings for the normal pool won't be entirely accurate, due to the scale, it's normal that the displayed bar's size will increase very slowly. +botania.page.pool2=Tossing in some resources into a &1Mana Pool&0 will cause them to get infused with &4Mana&0, turning them into more powerful forms.
A few examples are &1Iron Ingots&0 or &1Mana Pearls&0.
&4Mana&0 reading for this block functions like the &1Mana Spreader&0. A &1Redstone Comparator&0 can also output a signal based on the contents. botania.page.pool8=&1Manasteel&0 Ingots and other ingots based on it, can be converted into both blocks or nuggets through the normal conversion recipes.
For the artistic types, tossing any color of &1Floral Powder&0 in the pool will have it take its color, all sixteen colors are viable for decoration and/or easy labelling. botania.page.pool3=Infusing &1Manasteel&0 botania.page.pool4=Infusing &1Mana Pearls&0 @@ -2127,6 +2137,7 @@ botania.entry.sparks=Sparks botania.tagline.sparks=Simple and fast short-range Mana transporters botania.page.sparks0=&1Sparks&0 are interesting entities. Created from a combination of raw energy and &4Mana&0, they have the ability to be placed on top of a few specific &4Mana&0 containing or accepting blocks, mainly, &1Mana Pools&0.
Some blocks have the ability to harness &4Mana&0 from &1Sparks&0, but the uses for them seem limited to a few blocks right now. botania.page.sparks1=Placing a &1Spark&0 on top of a &1Mana Pool&0 and another on top of a block that can accept it will allow for the latter to remotely access the reservoirs of the &1Mana Pool&0 when needed, given it's not too far away.
To remove a &1Spark&0 simply shift-right click it with a &1Wand of the Forest&0. Regular right clicking shows which other &1Sparks&0 it can transfer to. +botania.page.sparks3=In the case that one might think that &1Sparks&0 are too obstrusive in their looks, one can use &1Phantom Ink&0 to turn the target &1Spark&0 highly translucent. This does not consume the ink. botania.page.sparks2=&oholds up spork&r # -- SPARK AUGMENTATION @@ -2481,17 +2492,14 @@ botania.page.primusLoci1=These flowers act as normal &1Dayblooms&0 or &1Nightsha # -- DAYBLOOM botania.entry.daybloom=Daybloom botania.tagline.daybloom=Mana from the sky -botania.page.daybloom0=The &1Daybloom&0 is the most basic and rudimentary &4Generating Flower&0. Simply put, it performs a modified photosynthesis process, in order to transform sunlight into &4Mana&0.
The process is rather slow, about ten or a dozen of these should get the job done, for now. -botania.page.daybloom1=These flowers tend to compete among themselves for what sunlight hits an area, thus having any other of the same type adjacent to it on any of the four cardinal directions will result in diminishing returns of &4Mana&0 production. This fact only applies to &1Dayblooms&0 and &1Nightshades&0. They also don't produce much to begin with, so perhaps hastily upgrading to &1Endoflames&0 or others might be a good idea. -botania.page.daybloom1a=Having any other &1Dayblooms&0 adjacent to it on any of the four cardinal directions will result in diminishing returns of &4Mana&0 production. This only applies to &1Dayblooms&0 and &1Nightshades&0.
&1Dayblooms&0 are classified as &4passive flowers&0. They also don't produce much to begin with, so perhaps hastily upgrading to &1Endoflames&0 or others might be a good idea. -botania.page.daybloom3=Diminishing Returns +botania.page.daybloom0=The &1Daybloom&0 is the most basic and rudimentary &4Generating Flower&0. Simply put, it performs a modified photosynthesis process, in order to transform sunlight into &4Mana&0.
The process is rather slow, but about half a dozen of these should get the job done, for now. +botania.page.daybloom1=&1Dayblooms&0 are classified as &4passive flowers&0, which means they will decay after some use.
They also produce feeble amounts of &4Mana&0 to begin with, so perhaps hastily upgrading to &1Endoflames&0 or other &1active flowers&0, once available, might be a good idea. botania.page.daybloom2=&oStarting up a brand new day&r. # -- NIGHTSHADE botania.entry.nightshade=Nightshade botania.tagline.nightshade=Mana from the moon -botania.page.nightshade0=The &1Nightshade&0 is the dark counterpart of the &1Daybloom&0, as it generates &4Mana&0 passively in any situation the &1Daybloom&0 can not, as long as it's nighttime
Similarly to their shining counterpart, they suffer diminishing returns from having any adjacent. -botania.page.nightshade0a=The &1Nightshade&0 is the dark counterpart of the &1Daybloom&0, as it generates &4Mana&0 passively in any situation the &1Daybloom&0 can not, as long as it's nighttime.
Alike its shining counterpart, they suffer diminishing returns from having any adjacent and are classified as &4passive flowers&0. +botania.page.nightshade0=The &1Nightshade&0 is the dark counterpart of the &1Daybloom&0, as it generates &4Mana&0 passively in any situation the &1Daybloom&0 can not, as long as it's nighttime.
Alike its shining counterpart, they are classified as &4passive flowers&0, and as such will decay. botania.page.nightshade1=&oThe shadow of the day&r. # -- ENDOFLAME @@ -2504,10 +2512,8 @@ botania.page.endoflame2=&oNot nitor&r. # -- HYDROANGEAS botania.entry.hydroangeas=Hydroangeas botania.tagline.hydroangeas=Mana from water -botania.page.hydroangeas0=While passive &4Mana&0 generation can be easily achieved through &1Dayblooms&0, different means of doing so might come in handy. The &1Hydroangeas&0 will suck up any &1Still Water&0 in a 3x3 area around it, on the same height, creating &4Mana&0 from it. They also seem to function faster during &4Rain&0, who'd have thought? -botania.page.hydroangeas0a=The &1Hydroangeas&0 will suck up any &1Still Water&0 in a 3x3 area around it, on the same height, creating &4Mana&0 from it. They also seem to function faster during &4Rain&0, who'd have thought?
&1Hydroangeas&0 are classified as &4passive flowers&0. +botania.page.hydroangeas0=&1Hydroangeas&0 act as a liquid based passive generator. They will suck up any &1Still Water&0 in a 3x3 area around it, on the same height, creating &4Mana&0 from it. The amount they produce is comparable to that of an &1Endoflame&0. They also seem to function faster during &4Rain&0.
&1Hydroangeas&0 are classified as &4passive flowers&0 and as such will decay. botania.page.hydroangeas2=A simple &1Hydroangeas&0 system -botania.page.hydroangeas3=These flowers, similarly to &1Dayblooms&0 or &1Nightshades&0 will receive a portion of diminishing returns if put in too compact of a pattern. Having any two &1Hydroangeas&0 one block away from eachother, including diagonals, will drastically reduce the production rate of both, as the roots get tangled. Having even more in the short space will further weaken their potency. The blue particles between them indicate this. botania.page.hydroangeas1=&oFrom some Hyperdimension&r? # -- THERMALILY @@ -2831,6 +2837,12 @@ botania.page.avatar0=Carving some &1Livingwood&0 and combining it with a &1Mana botania.page.avatar1=Not all &4Rods&0 fit this criteria. Any that do, however, will have an explanation of what they can do when given to a &1Livingwood Avatar&0 on their entry.
A few examples of some rods that will work are the &1Rod of the Skies&0, &1Rod of the Hells&0 and &1Rod of the Plentiful Mantle&0. botania.page.avatar2=But is it an anime? +# -- FEL PUMPKIN +botania.entry.felPumpkin=Fel Pumpkin +botania.tagline.felPumpkin=A pumpkin that can spawn blazes +botania.page.felPumpkin0=A &1Fel Pumpkin&0 is a demented infusion of a &1Pumpkin&0 with the fel spirits of slain monsters. This vile pumpkin can be placed atop two &1Iron Bars&0, in a similar fashion to a &1Snow Golem&0, to spawn a &1Blaze&0.
&1Blazes&0 spawned with this method drop a fairly reasonable amount of &1Blaze Powder&0 instead of a small serving of &1Blaze Rods&0. +botania.page.felPumpkin1=Nerfing warlocks again + # - MYSTICAL INSTRUMENTS # -- MANA BLASTER botania.entry.manaBlaster=Mana Blaster @@ -3518,6 +3530,18 @@ botania.tagline.swapRing=Makes one always use the right tool for the job botania.page.swapRing0=Switching tools is a pain. People often find themselves shoveling away at dirt with... a pick? Using the &1Ring of Correction&0 is a great way to, well, correct that.
While this ring is worn, the tool in hand will always be the right one for the block being broken, be it a pick, axe or shovel. This only works with tools that can use &4Mana&0. botania.page.swapRing1=Use the right tools +# -- PLANESTRIDER'S SASH +botania.entry.speedUpBelt=Planestrider's Sash +botania.tagline.speedUpBelt=Speeds you up the more you walk +botania.page.speedUpBelt0=The &1Planestrider's Sash&0 works as an alternative to the &1Soujourner's Sash&0.
Unlike the aforementioned item, the &1Planestider's Sash&0 will not give the wearer a speed boost by default. However, when they walk, the sash will get more and more charged, enabling the wearer to go much faster than any other sash. Case one would stop, this bonus is reset. +botania.page.speedUpBelt1=If you go slow you're a Planeswalker + +# -- BAUBLE CASE +botania.entry.baubleBox=Bauble Case +botania.tagline.baubleBox=A handy container to store your Baubles +botania.page.baubleBox0=Somtimes having too many &4Baubles&0 to pick from can be a real problem, as inventory space is limited. A better way would be to store all of these in a &1Bauble Case&0, a handy container for any &4Baubles&0.
The case's interface allows for quick switching of the current equipped baubles. The case can also store &4Mana&0 containing items like a &1Mana Tablet&0. +botania.page.baubleBox1=It could even be a boat! + # - ALFHOMANCY # -- THE PORTAL TO ALFHEIM botania.entry.aIntro=The Portal to Alfheim diff --git a/src/main/resources/assets/botania/lang/pt_BR.lang b/src/main/resources/assets/botania/lang/pt_BR.lang index 3e9283699..3f369d1c2 100644 --- a/src/main/resources/assets/botania/lang/pt_BR.lang +++ b/src/main/resources/assets/botania/lang/pt_BR.lang @@ -368,6 +368,21 @@ botania.versioning.flavour46=Você esperava que o Botania estive atualizado, mas botania.versioning.flavour47=Rumores dizem que em baixo do caminhão, há uma atualização do Botania. botania.versioning.flavour48=Quando o Bevo vai atualizar o modpack... botania.versioning.flavour49=1 Botania Update on the wall, 1 Botania Update on the wall. +botania.versioning.flavour50=Você nota que Botania atualizou. Isso te enche de determinação. +botania.versioning.flavour51=Sjin, atualize seu jogo! +botania.versioning.flavour52=Teu lorde aplicaste uma atualização nova +botania.versioning.flavour53=Quem quer atualizar o Botania às 3 da manhã? +botania.versioning.flavour54=Todos digam: Atualizando-de! +botania.versioning.flavour55=Thank you for signing up for Update Facts! Botania has updated! +botania.versioning.flavour56=Atualize o Botania, pequeno, suporte a pirâmide =) +botania.versioning.flavour57=gr8 b8 m8 here's an upd8 +botania.versioning.flavour58=O poder da atualização te domina +botania.versioning.flavour59=NICOLO BREADMUND GIVE UPDATE +botania.versioning.flavour60=Atualizações do Botania. Elas fazem o que querem, porque podem. +botania.versioning.flavour61=Me atualize! Me atulize! Me atualize Seymore! +botania.versioning.flavour62=Nove entre dez médicos recomendam atualizar o Botania. +botania.versioning.flavour63=The update bacons at midnight. +botania.versioning.flavour64=Uma nova atualização do Botania está disponível. E seu nome é JOHN CENA! DOO DOO DOO DOO botania.versioning.outdated=Você possui a versão %s, a mais recente é %s. botania.versioning.updateMessage=["Clique para... [",{"text":"Download","color":"green","hoverEvent":{"action":"show_text","value":{"text":"Clicar aqui baixará automaticamente a nova versão","color":"green"}},"clickEvent":{"action":"run_command","value":"/botania-download-latest %version%"}},"] [",{"text":"Website","color":"green","hoverEvent":{"action":"show_text","value":{"text":"Clicar aquie levará ao site do mod","color":"green"}},"clickEvent":{"action":"open_url","value":"http://vazkii.us/mod/Botania/downloads.php"}},"] [",{"text":"Changelog","color":"green","hoverEvent":{"action":"show_text","value":{"text":"Clicar aqui levará ao Changelog","color":"green"}},"clickEvent":{"action":"open_url","value":"http://vazkii.us/mod/Botania/changelog.php#%version%"}},"]"] botania.versioning.startingDownload=[{"text":"Baixando %s. Não remova seu HD. Gosta do ","color":"aqua"},{"text":"Botania","color":"green"},{"text":"? Considere doar para ","color":"aqua"},{"text":"Vazkii","color":"light_purple"},{"text":" no [","color":"aqua"},{"text":"Patreon","color":"gold","hoverEvent":{"action":"show_text","value":{"text":"Patreon de Vazkii","color":"light_purple"}},"clickEvent":{"action":"open_url","value":"http://www.patreon.com/Vazkii"}},{"text":"]!","color":"aqua"}] @@ -1151,6 +1166,12 @@ tile.botania:shimmerwoodPlanks0Slab.name=Laje de Madeira Reluzente tile.botania:shimmerwoodPlanks0SlabFull.name=Laje de Madeira Reluzente tile.botania:shimmerwoodPlanks0Stairs.name=Escadas de de Madeira Reluzente tile.botania:avatar.name=Avatar de Madeira-viva +tile.botania:altGrass0.name=Grama Seca +tile.botania:altGrass1.name=Grama Dourada +tile.botania:altGrass2.name=Grama Vívia +tile.botania:altGrass3.name=Grama Queimada +tile.botania:altGrass4.name=Grama Infusa +tile.botania:altGrass5.name=Grama Mutante # FLOWER NAMES tile.botania:flower..name=Flor do Botania @@ -1266,6 +1287,8 @@ tile.botania:flower.bubbellChibi.name=Bubbell Petite tile.botania:flower.bubbellChibi.reference=And whistle tile.botania:flower.solegnolia.name=Solegnolia tile.botania:flower.solegnolia.reference=All your magnets are belong to us +tile.botania:flower.solegnoliaChibi.name=Solegnolia +tile.botania:flower.solegnoliaChibi.reference=All your magnets are belong to us # ITEM NAMES item.botania:lexicon.name=Lexica Botania @@ -1345,6 +1368,12 @@ item.botania:lensLight.name=Lentes de Mana: Clarão item.botania:lensLight.short=Clarão item.botania:lensWarp.name=Lentes de Mana: Teleporte item.botania:lensWarp.short=Teleporte +item.botania:lensRedirect.name=Lentes de Mana: Redirecional +item.botania:lensRedirect.short=Redirecional +item.botania:lensFirework.name=Lentes de Mana: Celebração +item.botania:lensFirework.short=Celebração +item.botania:lensFlare.name=Lentes de Mana: Labareda +item.botania:lensFlare.short=Labareda item.botania:manaPetal0.name=Pétala de Mana Branca item.botania:manaPetal1.name=Pétala de Mana Laranja item.botania:manaPetal2.name=Pétala de Mana Magenta @@ -1386,6 +1415,12 @@ item.botania:fertilizer.name=Fertilizante Floral item.botania:grassSeeds0.name=Sementes de Pasto item.botania:grassSeeds1.name=Sementes Boreais item.botania:grassSeeds2.name=Espóros Infestantes +item.botania:grassSeeds3.name=Sementes Secas +item.botania:grassSeeds4.name=Sementes Douradas +item.botania:grassSeeds5.name=Sementes Vívidas +item.botania:grassSeeds6.name=Sementes Queimadas +item.botania:grassSeeds7.name=Sementes Infusas +item.botania:grassSeeds8.name=Sementes Mutantes item.botania:livingwoodTwig.name=Graveto de Madeira-viva item.botania:dirtRod.name=Cajado das Terras item.botania:terraformRod.name=Cajado de Terra Firma @@ -1596,6 +1631,9 @@ item.botania:manaweaveChest.name=Robe Superior de Tecido de Mana item.botania:manaweaveLegs.name=Robe Inferior de Tecido de Mana item.botania:manaweaveBoots.name=Botas de Tecido de Mana item.botania:gaiaHead.name=Cabeça de Guardião de Gaia +item.botania:sextant.name=Sextante do Modulador do Mundo +item.botania:speedUpBelt.name=Cinta do Desbravador Planar +item.botania:baubleBox.name=Caixa de Baubles # BREW NAMES botania.brew.fallback=Fallback @@ -2202,17 +2240,20 @@ botania.page.dreamwoodSpreader1=Um Dispersor melhor, só isso botania.page.dreamwoodSpreader2=Combinando esse poderoso Dispersor com um &1Espírito de Gaia&0 e uma &1Pedra Draconiana&0, uma variante ainda mais poderosa pode ser criada. O &1Disperosr de Gaia&0 é o melhor dos Dispersores de Mana, com todas melhorias.
Note que esse Dispersordispara cargas maiores de Mana, e por isso pode disparar com menos frequência. botania.page.dreamwoodSpreader3=ULTRA_SPREADER -# -- PAINTSLINGER LENS -botania.entry.paintLens=Lentes: Paintslinger -botania.tagline.paintLens=Lentes de Mana que colorem lã e outras coisas -botania.page.paintLens0=Os &4Elfos&0 são muito criativos. Essa lente é única comparada as outras. A &1Lente Paintslinger&0 precisa ser colorida com uma das 16 cores do espectro para ser usada. Quando um Pulso atinge um bloco colorível (&1Lã, Argila Endurecida ou Vidro&0...) ele faz com que qualquer bloco próximo, da mesma cor, se torne da cor do &4Pulso de Mana&0. Parece funcionar com &4Ovelhas&0 também. -botania.page.paintLens1=A M'AIDER Stranded Girl - -# -- WARP LENS -botania.entry.warpLens=Lentes: Teleporte -botania.tagline.warpLens=Lentes de Mana que com um Transmisor de Mana teleporta Pulsos -botania.page.warpLens0=A &1Lente de Teleporte&0 é interessante. Um &4Pulso de Mana&0 com esse efeito, ao colidir com um &1Transmissor de Matéria&0 se teleporta para a posição de saída de tal &1Transmissor de Matéria&0, mantendo seu momento. Além disso, se combinada com a &1Lente de Escavação&0 (a &1Lente de Escavação&0 deve estar visível) o Pulso não destrói o &1Transmissor de Matéria&0 ou &1Pistões&0, e ainda teleporta os blocos minerados para o local onde foi disparado. -botania.page.warpLens1=Hakase Quarries +# -- ELVEN MANA LENSES +botania.entry.elvenLenses=Lentes de Mana Élficas +botania.tagline.elvenLenses=Lentes avançadas com novas habilidades +botania.page.elvenLenses0=O conhecimento sobre a manipulação de mana de Alfheim traz uma gama de novas &1Lentes de Mana&0 que podem ter usos interessantes.
Diferente de lentes mundanas, essas possuem uma influência mais forte no mundo... +botania.page.elvenLenses1=A &1Lente Paintslinger&0 precisa ser colorida com uma das 16 cores do espectro para ser usada. Quando um Pulso atinge um bloco tingível (&1Lã, Argila Endurecida ou Vidro&0...) ele faz com que qualquer bloco próximo, da mesma cor, se torne da cor do &4Pulso de Mana&0. Parece funcionar com &4Ovelhas&0 também. +botania.page.elvenLenses2=Lente: Paintslinger +botania.page.elvenLenses3=A &1Lente de Teleporte&0 é interessante. Um &4Pulso de Mana&0 com esse efeito, ao colidir com um &1Transmissor de Matéria&0 se teleporta para a posição de saída de tal &1Transmissor de Matéria&0, mantendo seu momento. Além disso, se combinada com a &1Lente de Escavação&0 (a &1Lente de Escavação&0 deve estar visível) o Pulso não destrói o &1Transmissor de Matéria&0 ou &1Pistões&0, e ainda teleporta os blocos minerados para o local onde foi disparado. +botania.page.elvenLenses4=Lente: Teleporte +botania.page.elvenLenses5=A &1Lente Redirecional&0 só funciona se usada por um &1Dispersor de Mana&0. Quando qualquer pulso disparado com esse efeito colide com um &1Dispersor de Mana&0, além da transferência normal de &4Mana&0, o dispersor atingido aponta em direção ao que disparou. +botania.page.elvenLenses6=Lente: Redirecional +botania.page.elvenLenses7=A &1Lente de Celebração&0 funciona como a &1Lente de Entropia&0, entretanto, ao invés de explodir, ela produz fogos de artifício da cor do pulso. +botania.page.elvenLenses8=Lente: Celebração +botania.page.elvenLenses9=A &1Lente de Labareda&0 muda a funcionalidade de um &1Dispersor de Mana&0, o impedindo de disparar. Ao invés disso, o dispersor libera um feixe contínuo da cor que a lente for colorida, na direção apontada.
Certamente há vários usos decorativos para isso. +botania.page.elvenLenses10=Lente: Labareda # -- MANA PRISM botania.entry.prism=Prisma de Mana @@ -2285,7 +2326,6 @@ botania.entry.heiseiDream=Heisei Dream botania.tagline.heiseiDream=Causa desconfiança entre monstros botania.page.heiseiDream0=A &1Heisei Dream&0, ao custo de &4Mana&0, desperta raiva e vingança entre qualquer &4monstro&0, os fazendo lutar entre si. botania.page.heiseiDream1=&oUma prazerosa era mata pessoas&r. -botania.page.heiseiDream2=&oHeisei, was broken, broken. Who was the one who lied about peace? See, it's forgotten, forgotten, even the punishement blamed on the altar. Hey, it's breaking, breaking, at the end, even the meaning of shaking is killed.
Well, where shall we go? Let's go somewhere, whose ally are you? Whose replacement am I? # -- TIGERSEYE botania.entry.tigerseye=Tigerseye @@ -2311,7 +2351,6 @@ botania.tagline.fallenKanade=Regeneração potente de curta distância botania.page.fallenKanade0=A &1Fallen Kanade&0 é uma flor com propriedades celestiais, ela usa &4Mana&0 de um &4Poço de Mana&0 para aplicar um forte efeito de regeneração para qualquer &4jogador&0 ao redor. botania.page.fallenKanade0a=A &1Fallen Kanade&0 é uma flor com propriedades celestiais, ela usa &4Mana&0 de um &4Poço de Mana&0 para aplicar um forte efeito de regeneração para qualquer &4jogador&0 ao redor.
Interessantemente, &4Magos de Sangue&0 são conhecidos por colocar estranhas runas em volta de seus altares, fazendo a flor não funcionar, isso talvez seja útil lembrar. botania.page.fallenKanade1=&oHand Sonic, version four&r. -botania.page.fallenKanade2=&oI'll marry you. No matter what kind of sickness you have, even if you can't walk or stand, or even if you can't have kids, I'll still marry you. No matter where or how I met you, I'll fall in love with you.
If I can meet you again, against the six billion to one odds, and even if your body can't move, I'll marry you. # -- EXOFLAME botania.entry.exoflame=Exoflame @@ -2449,8 +2488,6 @@ botania.page.daybloom1=Essas flores tendem a competir entre si pela luz da área botania.page.daybloom1a=Havendo outra dela nas quatro direções cardinais resulte em retornos diminuídos de &4Mana&0. Isso se aplica apenas para &1Dayblooms&0 e &1Nightshades&0.
&1Dayblooms&0 não são muito resistentes, após um tempo elas secam e morrem. Elas também não produzem muito, então mudar para &1Endoflames&0 ou outras é uma boa ideia. botania.page.daybloom3=Retornos diminuídos botania.page.daybloom2=&oComeçando um novo e belo dia&r. -botania.page.daybloom4=&oHow many of you people out there been hurt in some kind of love affair? And how many times do you swear that you'll never love again? How many lonely, sleepless nights? How many lies? How many fights? And why would you want to put yourself through all that again? "Love is pain," I hear you say. Love has a cruel and bitter way of paying you back for all the faith you ever had in your brain. (...) -botania.page.daybloom5=&oHow could it be that what you need the most can leave you feeling just like a ghost? You never want to feel so sad and lost again. One day you could be looking through an old book in rainy weather. You see a picture of her smiling at you when you were still together. You could be walking down the street and who should you chance to meet. But that same old smile that you've been thinking of all day... # -- NIGHTSHADE botania.entry.nightshade=Nightshade @@ -2513,9 +2550,6 @@ botania.page.gourmaryllis0=A &1Gourmaryllis&0 é uma flor faminta. Ela consome q botania.page.gourmaryllis1=O tempo que leva para ela digerir depende do valor nutricional, em termos leigos, o valor de fome restaurada.
Por isso, &1Carne&0 leva quatro segundos para digerir, &1Cenouras&0 levam dois, &1Pão&0 leva quatro segundos e meio, e assim por diante. botania.page.gourmaryllis2=A quantidade de &4Mana&0 criada também depende da saturação. Por exemplo, uma única &1Carne&0 produz mais &1Mana&0 que duas &1Cenouras&0&0, tanto absolutamente, quanto por tempo. botania.page.gourmaryllis3=&oUm prato quente para nossos novos residentes&r. -botania.page.gourmaryllis4=&oWell, if Men ate themselves after death, one would think of less horror and negative feeling matter. But so you know what your cruelty leads to, think, fishes, that even Men eat themselves alive like you.
Alive was Job when he said: "Why do you follow me so inhumanely, thou who are eating me alive and getting sick of my flesh?". Do you want to see a Job like this? (...) -botania.page.gourmaryllis5=&oSee a man of those who are followed by claims or accused of crimes, and behold all who are eating them. The bailiff eats him, the jailer eats him, the scribe eats him, the requestor eats him, the lawyer eats him, the inquirer eats him, the witness eats him, the judge eats him and he's not even sentenced he's already eaten. Worse are the Men than the crows. (...) -botania.page.gourmaryllis6=&oThe sad one who was hanged, only eat him the crows past his execution and death, while the one who's being judged, not even executed or sentenced and he's already eaten.
The true evil are the Man who eat eachother, and those who commit to it are the largest, those who eat the smallest. For that you, Man, vos estis sal terrae. # -- NARSLIMMUS botania.entry.narslimmus=Narslimmus diff --git a/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering0.png b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering0.png new file mode 100644 index 000000000..6a1b6a11d Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering0.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering1.png b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering1.png new file mode 100644 index 000000000..105af6627 Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering1.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering10.png b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering10.png new file mode 100644 index 000000000..441ce5630 Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering10.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering11.png b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering11.png new file mode 100644 index 000000000..d19d7e1ac Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering11.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering12.png b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering12.png new file mode 100644 index 000000000..ac83f543e Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering12.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering13.png b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering13.png new file mode 100644 index 000000000..1fd5f0cea Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering13.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering14.png b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering14.png new file mode 100644 index 000000000..6d94d4440 Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering14.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering15.png b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering15.png new file mode 100644 index 000000000..c776e6b9b Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering15.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering2.png b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering2.png new file mode 100644 index 000000000..19891416d Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering2.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering3.png b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering3.png new file mode 100644 index 000000000..a1d66804f Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering3.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering4.png b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering4.png new file mode 100644 index 000000000..2d2a7994f Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering4.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering5.png b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering5.png new file mode 100644 index 000000000..a221127e3 Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering5.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering6.png b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering6.png new file mode 100644 index 000000000..e85560c91 Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering6.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering7.png b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering7.png new file mode 100644 index 000000000..4fdb25f7e Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering7.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering8.png b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering8.png new file mode 100644 index 000000000..82c3e5b47 Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering8.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering9.png b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering9.png new file mode 100644 index 000000000..4ab4ca361 Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/alt/flowerGlimmering9.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/altgrass11.png b/src/main/resources/assets/botania/textures/blocks/altGrass11.png similarity index 100% rename from src/main/resources/assets/botania/textures/blocks/altgrass11.png rename to src/main/resources/assets/botania/textures/blocks/altGrass11.png diff --git a/src/main/resources/assets/botania/textures/blocks/flowerGlimmering0.png b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering0.png new file mode 100644 index 000000000..7e2b8d7f4 Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering0.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/flowerGlimmering1.png b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering1.png new file mode 100644 index 000000000..889ff6fee Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering1.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/flowerGlimmering10.png b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering10.png new file mode 100644 index 000000000..cf9e247d3 Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering10.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/flowerGlimmering11.png b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering11.png new file mode 100644 index 000000000..1a462860c Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering11.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/flowerGlimmering12.png b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering12.png new file mode 100644 index 000000000..caeeee9a2 Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering12.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/flowerGlimmering13.png b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering13.png new file mode 100644 index 000000000..c7b43ee32 Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering13.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/flowerGlimmering14.png b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering14.png new file mode 100644 index 000000000..328f36d15 Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering14.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/flowerGlimmering15.png b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering15.png new file mode 100644 index 000000000..510cb9b66 Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering15.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/flowerGlimmering2.png b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering2.png new file mode 100644 index 000000000..f9291b23d Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering2.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/flowerGlimmering3.png b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering3.png new file mode 100644 index 000000000..802e6c83a Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering3.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/flowerGlimmering4.png b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering4.png new file mode 100644 index 000000000..8240bef30 Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering4.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/flowerGlimmering5.png b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering5.png new file mode 100644 index 000000000..db9b107af Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering5.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/flowerGlimmering6.png b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering6.png new file mode 100644 index 000000000..3e79cc544 Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering6.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/flowerGlimmering7.png b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering7.png new file mode 100644 index 000000000..969f48631 Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering7.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/flowerGlimmering8.png b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering8.png new file mode 100644 index 000000000..56601237a Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering8.png differ diff --git a/src/main/resources/assets/botania/textures/blocks/flowerGlimmering9.png b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering9.png new file mode 100644 index 000000000..d44853abb Binary files /dev/null and b/src/main/resources/assets/botania/textures/blocks/flowerGlimmering9.png differ diff --git a/src/main/resources/assets/botania/textures/gui/baubleBox.png b/src/main/resources/assets/botania/textures/gui/baubleBox.png new file mode 100644 index 000000000..8a819dd25 Binary files /dev/null and b/src/main/resources/assets/botania/textures/gui/baubleBox.png differ diff --git a/src/main/resources/assets/botania/textures/items/baubleBox.png b/src/main/resources/assets/botania/textures/items/baubleBox.png new file mode 100644 index 000000000..00157f0c5 Binary files /dev/null and b/src/main/resources/assets/botania/textures/items/baubleBox.png differ diff --git a/src/main/resources/assets/botania/textures/items/speedUpBelt.png b/src/main/resources/assets/botania/textures/items/speedUpBelt.png new file mode 100644 index 000000000..2a4b8de02 Binary files /dev/null and b/src/main/resources/assets/botania/textures/items/speedUpBelt.png differ diff --git a/src/main/resources/assets/botania/textures/model/miniIslandDry.png b/src/main/resources/assets/botania/textures/model/miniIslandDry.png new file mode 100644 index 000000000..b75dbde63 Binary files /dev/null and b/src/main/resources/assets/botania/textures/model/miniIslandDry.png differ diff --git a/src/main/resources/assets/botania/textures/model/miniIslandGolden.png b/src/main/resources/assets/botania/textures/model/miniIslandGolden.png new file mode 100644 index 000000000..74eb540ae Binary files /dev/null and b/src/main/resources/assets/botania/textures/model/miniIslandGolden.png differ diff --git a/src/main/resources/assets/botania/textures/model/miniIslandInfused.png b/src/main/resources/assets/botania/textures/model/miniIslandInfused.png new file mode 100644 index 000000000..60efcf6be Binary files /dev/null and b/src/main/resources/assets/botania/textures/model/miniIslandInfused.png differ diff --git a/src/main/resources/assets/botania/textures/model/miniIslandMutated.png b/src/main/resources/assets/botania/textures/model/miniIslandMutated.png new file mode 100644 index 000000000..fb243edaa Binary files /dev/null and b/src/main/resources/assets/botania/textures/model/miniIslandMutated.png differ diff --git a/src/main/resources/assets/botania/textures/model/miniIslandScorched.png b/src/main/resources/assets/botania/textures/model/miniIslandScorched.png new file mode 100644 index 000000000..7d94a7999 Binary files /dev/null and b/src/main/resources/assets/botania/textures/model/miniIslandScorched.png differ diff --git a/src/main/resources/assets/botania/textures/model/miniIslandVivid.png b/src/main/resources/assets/botania/textures/model/miniIslandVivid.png new file mode 100644 index 000000000..569711bc2 Binary files /dev/null and b/src/main/resources/assets/botania/textures/model/miniIslandVivid.png differ diff --git a/src/main/resources/assets/botania/textures/model/speedUpBelt.png b/src/main/resources/assets/botania/textures/model/speedUpBelt.png new file mode 100644 index 000000000..dbb3cacd5 Binary files /dev/null and b/src/main/resources/assets/botania/textures/model/speedUpBelt.png differ diff --git a/version/1.7.10.txt b/version/1.7.10.txt index 6ae4fff3e..5f718b53a 100644 --- a/version/1.7.10.txt +++ b/version/1.7.10.txt @@ -1 +1 @@ -r1.7-234 \ No newline at end of file +r1.7-237 \ No newline at end of file diff --git a/web/changelog.txt b/web/changelog.txt index 1cddb8a2e..2ce2f2b61 100644 --- a/web/changelog.txt +++ b/web/changelog.txt @@ -1,3 +1,39 @@ +r1.7 237 +*Fixed the Gaia Guardian spawning on the client side when it shouldn't. +*The Brew of Overload has a larger Weakness period now. +*The Damage Lens now deals more damage. +*The Fruit of Grisaia uses less mana now. +*The Gaia Guardian's damage cap now is higher to accommodate for Overload Brews. HP remains the same. +*The Rosa Arcana now produces and holds more mana. +*The Spectrolus now produces and holds more mana. +r1.7 236 +*Added Chisel stone support to the Rod of the Terra Firma. +*Added floating flower variants to all the new pasture seed types. +*Added the Bauble Case, a way of storing baubles on your person. +*Added the Planestrider's Sash, a new belt item that gives you more speed the more you walk. +*Buffed the amount of damage the Key of the King's Law does. +*Fixed Botania armor models not resetting the "using a bow" state. +*Fixed Botania grass types not spreading. +*Fixed Featherfall disabling the Flugel Tiara's glide. (TheWhiteWolves) +*Fixed items getting destroyed if they're left in a crafting table when the lexicon's Ctrl lookup feature is used. +*Fixed lexicon bookmarks being weird if you do multiple in the same entry. +*Fixed Mana Bursts' position in the client sometimes going above the block they're inside. +*Fixed multiblock previews rendering in dimensions other than the one they were created in. +*Fixed raytracing ignoring the player's height. +*Fixed the Gaia Guardian head not breaking properly or having the right drops. +*Fixed the Halos not rendering multipassed items properly. +*Fixed the travel sashes using mana even if the player isn't moving. +*Fixed the weapons spawned by the Key of the King's Law not despawning if the player that created them dies. +*Fixed Witchery wiki lookup not working because google sites requires lowercase URLs. (TheWhiteWolves) +*Glimmering flowers now have slightly altered textures from the normal ones. +*[API] Added ICompositableLens for API level lens composition handling. (WireSegal) +*[API] Added lowercase conversion support to SimpleWikiProvider. (TheWhiteWolves) +*[API] Increased version number to 69. +r1.7 235 +*Fixed the Crafty Crate not syncing properly, and by extension, the Wand HUD for it not being accurate. +*Fixed the Hopperhock not updating inventories properly. +*Fixed the Mutated Grass having a missing texture. +*If an arena for the gaia guardian fight is obstructed or has holes, there'll be a quick particle display showing you how large it needs to be. r1.7 234 *Added 3 new lenses:
  • Mana Lens: Redirectory - Bursts that have this lens fired from a spreader will, when colliding with another spreader, rotate the collided spreader to point towards the one that shot. It also gives bursts the Phantom effect.
  • Mana Lens: Celebratory - When it collides with a block it'll make a firework of the color of the burst.
  • Mana Lens: Flare - Spreader only. Prevents the spreader from firing any mana bursts. Instead, the spreader fires a continuous beam of particles of the color of the lens. (demo 1 | demo 2)
*Added 6 new types of decorative grass (and six new types of pasture seeds to make them) that don't turn into dirt if there's anything above. diff --git a/web/versions.ini b/web/versions.ini index 339ed93c1..5a18f43cc 100644 --- a/web/versions.ini +++ b/web/versions.ini @@ -231,4 +231,7 @@ r1.7-230=1.7.10 r1.7-231=1.7.10 r1.7-232=1.7.10 r1.7-233=1.7.10 -r1.7-234=1.7.10 \ No newline at end of file +r1.7-234=1.7.10 +r1.7-235=1.7.10 +r1.7-236=1.7.10 +r1.7-237=1.7.10 \ No newline at end of file