diff --git a/common/biomesoplenty/blocks/BlockHoney.java b/common/biomesoplenty/blocks/BlockHoney.java index 988eb9712..72077be0c 100644 --- a/common/biomesoplenty/blocks/BlockHoney.java +++ b/common/biomesoplenty/blocks/BlockHoney.java @@ -18,7 +18,9 @@ import net.minecraft.world.World; import net.minecraftforge.common.ForgeDirection; import biomesoplenty.BiomesOPlenty; import biomesoplenty.api.Blocks; +import biomesoplenty.api.Fluids; import biomesoplenty.api.Items; +import biomesoplenty.entities.EntityWasp; public class BlockHoney extends Block { @@ -34,6 +36,12 @@ public class BlockHoney extends Block blockIcon = par1IconRegister.registerIcon("biomesoplenty:honeyblock"); } + @Override + public void breakBlock(World world, int x, int y, int z, int par5, int par6) + { + world.setBlock(x, y, z, Fluids.honey.get().blockID, 7, 2); + } + @Override @SideOnly(Side.CLIENT) public int getRenderBlockPass() diff --git a/common/biomesoplenty/configuration/BOPBlocks.java b/common/biomesoplenty/configuration/BOPBlocks.java index ba3bedb12..8a40eeba8 100644 --- a/common/biomesoplenty/configuration/BOPBlocks.java +++ b/common/biomesoplenty/configuration/BOPBlocks.java @@ -183,7 +183,7 @@ public class BOPBlocks Blocks.cloud = Optional.of((new BlockCloud(BOPConfigurationIDs.cloudID)).setHardness(0.1F).setLightOpacity(3).setStepSound(Block.soundClothFootstep).setUnlocalizedName("bop.cloud")); Blocks.hive = Optional.of((new BlockHive(BOPConfigurationIDs.hiveID)).setHardness(0.5F).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("bop.hive")); - Blocks.honeyBlock = Optional.of((new BlockHoney(BOPConfigurationIDs.honeyBlockID)).setHardness(0.5F).setStepSound(Block.soundGlassFootstep).setUnlocalizedName("bop.honeyBlock")); + Blocks.honeyBlock = Optional.of((new BlockHoney(BOPConfigurationIDs.honeyBlockID)).setHardness(0.5F).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("bop.honeyBlock")); Blocks.bones = Optional.of((new BlockBones(BOPConfigurationIDs.bonesID)).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("bop.bones")); diff --git a/common/biomesoplenty/fluids/BlockFluidHoney.java b/common/biomesoplenty/fluids/BlockFluidHoney.java index c175baa02..9616693fb 100644 --- a/common/biomesoplenty/fluids/BlockFluidHoney.java +++ b/common/biomesoplenty/fluids/BlockFluidHoney.java @@ -1,10 +1,15 @@ package biomesoplenty.fluids; +import biomesoplenty.api.Items; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.entity.player.InventoryPlayer; +import net.minecraft.potion.Potion; +import net.minecraft.potion.PotionEffect; import net.minecraft.util.Icon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; @@ -39,4 +44,15 @@ public class BlockFluidHoney extends BlockFluidFinite { return par1 != 0 && par1 != 1 ? honeyFlowingIcon : honeyStillIcon; } + + @Override + public void onEntityCollidedWithBlock(World par1World, int x, int y, int z, Entity par5Entity) + { + int meta = par1World.getBlockMetadata(x, y, z); + + if (par5Entity instanceof EntityLivingBase) + { + ((EntityLivingBase)par5Entity).addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 200, 2)); + } + } } diff --git a/resources/assets/biomesoplenty/textures/blocks/honeyblock.png b/resources/assets/biomesoplenty/textures/blocks/honeyblock.png index ee75132cd..162016ec7 100644 Binary files a/resources/assets/biomesoplenty/textures/blocks/honeyblock.png and b/resources/assets/biomesoplenty/textures/blocks/honeyblock.png differ