diff --git a/MODSRC/vazkii/botania/common/item/ItemDye.java b/MODSRC/vazkii/botania/common/item/ItemDye.java index 2b2eac0c2..373e1bce7 100644 --- a/MODSRC/vazkii/botania/common/item/ItemDye.java +++ b/MODSRC/vazkii/botania/common/item/ItemDye.java @@ -11,6 +11,11 @@ */ package vazkii.botania.common.item; +import net.minecraft.block.Block; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.init.Blocks; +import net.minecraft.item.ItemStack; +import net.minecraft.world.World; import vazkii.botania.common.lib.LibItemNames; public class ItemDye extends Item16Colors { @@ -18,5 +23,17 @@ public class ItemDye extends Item16Colors { public ItemDye() { super(LibItemNames.DYE); } + + @Override + public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) { + Block block = par3World.getBlock(par4, par5, par6); + int meta = par1ItemStack.getItemDamage(); + if(meta != par3World.getBlockMetadata(par4, par5, par6) && (block == Blocks.wool || block == Blocks.carpet)) { + par3World.setBlockMetadataWithNotify(par4, par5, par6, meta, 1 | 2); + par1ItemStack.stackSize--; + return true; + } + return false; + } } diff --git a/resources/assets/botania/lang/en_US.lang b/resources/assets/botania/lang/en_US.lang index 1f335fc93..3d7d985ba 100644 --- a/resources/assets/botania/lang/en_US.lang +++ b/resources/assets/botania/lang/en_US.lang @@ -13,8 +13,8 @@ botaniamisc.shiftToRead=Shift-right click to read more botaniamisc.clickToRecipe=Shift click to see recipe botaniamisc.clickToIndex=Shift click for index botaniamisc.flareColor=%s Rounds -botaniamisc.outputtingPower=Sparing Power to Items -botaniamisc.inputtingPower=Accepting Power from Items +botaniamisc.outputtingPower=Sparing Mana to Items +botaniamisc.inputtingPower=Accepting Mana from Items botaniamisc.creative=Creative botaniamisc.invFull=Your inventory is full. botaniamisc.compositeLens=Composite with %s @@ -586,7 +586,7 @@ botania.page.flowers2=These flowers can be plucked for &1Mystical Petals&0, that botania.page.flowers3=Plucking Petals off Flowers. botania.page.flowers4=Crafting the &1Pestle and Mortar&0. botania.page.flowers5=Grinding Petals into Powder. -botania.page.flowers6=By mixing the &1Floral Powder&0 with some &1Bone Meal&0, it's possible to create a different type of fertilizer. The &1Floral Fertlizer&0 will grow a small amount of &1Mystical Flowers&0 in the nearby vicinity, if you ever run low on them. +botania.page.flowers6=Right clicking the &1Floral Powder&0 in any &1Wool&0 or &1Carpet&0 changes it's color to the color of the powder.
By mixing the &1Floral Powder&0 with some &1Bone Meal&0, it's possible to create a different type of fertilizer. The &1Floral Fertlizer&0 will grow a small amount of &1Mystical Flowers&0 in the nearby vicinity, if you ever run low on them. botania.page.flowers7=Making fertilizer (any powder colors work) botania.page.flowers8=Using typical flower substances also works