The Petal Apothecary can now get water from dropped buckets.

This commit is contained in:
Vasco Lavos committed 2014-03-19 15:32:51 +00:00
1 parent 63b0a9fe7c
commit dd1d58963b
2 files changed
+12 -6

No files matched your search

@@ -20,6 +20,7 @@ import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.AxisAlignedBB;
import net.minecraftforge.fluids.FluidRegistry;
import vazkii.botania.api.BotaniaAPI;
import vazkii.botania.api.recipe.IFlowerComponent;
import vazkii.botania.api.recipe.RecipePetals;
@@ -34,14 +35,19 @@ public class TileAltar extends TileSimpleInventory implements ISidedInventory {
public boolean hasWater = false;
public boolean collideEntityItem(EntityItem item) {
if(!hasWater)
return false;
boolean didChange = false;
ItemStack stack = item.getEntityItem();
if(stack == null)
return false;
if(!hasWater) {
if(stack.itemID == Item.bucketWater.itemID) {
hasWater = true;
stack.itemID = Item.bucketEmpty.itemID;
PacketDispatcher.sendPacketToAllInDimension(getDescriptionPacket(), worldObj.provider.dimensionId);
} else return false;
}
boolean didChange = false;
if(stack.getItem() instanceof IFlowerComponent) {
if(getStackInSlot(getSizeInventory() - 1) != null)
+1 -1
View File
@@ -274,7 +274,7 @@ botania.page.flowers5=Grinding Petals into Dye.
botania.entry.apothecary=Petal Apothecary
botania.page.apothecary0=In order for a botanist to create plantlife that can do it's bidding, one would need special means of infusing plants with mystical energy.<br>Luckilly, the &1Petal Apothecary&0 does just that.
botania.page.apothecary1=The &1Petal Apothecary&0.
botania.page.apothecary2=This block, when placed in the world and given some water (by use of a water bucket), will accept any &1Mystical Petals&0 thrown at it, releasing their energies.<br>Once one has set the correct petals in, throwing some &1Seeds&0 in will finalize the proccess.
botania.page.apothecary2=This block, when placed in the world and given some water (by use of a &1Water Bucket&0), will accept any &1Mystical Petals&0 thrown at it, releasing their energies.<br>Once one has set the correct petals in, throwing some &1Seeds&0 in will finalize the proccess.<br>Tossing in the full bucket will also fill the recepient with water.
botania.page.apothecary3=Quite a few plants can be made using this method, for more information, read on the &4Functional Flora&0 and &4Generation Flora&0 sections of this Lexicon.
botania.page.apothecary4=Crafting the &1Petal Apothecary&0.