diff --git a/src/main/java/ganymedes01/etfuturum/blocks/BlockBubbleColumn.java b/src/main/java/ganymedes01/etfuturum/blocks/BlockBubbleColumn.java index 937bcd07..e020ab0f 100644 --- a/src/main/java/ganymedes01/etfuturum/blocks/BlockBubbleColumn.java +++ b/src/main/java/ganymedes01/etfuturum/blocks/BlockBubbleColumn.java @@ -10,6 +10,7 @@ import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.entity.Entity; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.util.AxisAlignedBB; @@ -100,6 +101,16 @@ public void randomDisplayTick(World worldIn, int x, int y, int z, Random random) } } + @Override + public void onEntityCollidedWithBlock(World worldIn, int x, int y, int z, Entity entityIn) { + if (isUp){ + entityIn.motionY = Math.min(0.7D, entityIn.motionY + 0.6D); + }else { + entityIn.motionY = Math.max(-0.3D, entityIn.motionY - 0.3D); + } + entityIn.fallDistance = 0; + } + protected String getBubblingNoise(World world, int x, int y, int z, Random random) { return Reference.MCAssetVer + ":" + "block.bubble_column." + (isUp ? "upwards" : "whirlpool") + "_ambient"; }