src/main/java/com/Mrbysco/cactusmod/blocks/CactusSlimeBlock.java
@Override
    public void stepOn(World worldIn, BlockPos pos, Entity entityIn) {
        double d0 = Math.abs(entityIn.getDeltaMovement().y);
        if (d0 < 0.1D && !entityIn.isSteppingCarefully()) {
            double d1 = 0.4D + d0 * 0.2D;
            entityIn.setDeltaMovement(entityIn.getDeltaMovement().multiply(d1, 1.0D, d1));
        }

        super.stepOn(worldIn, pos, entityIn);
    }
/**
     * Called when the given entity walks on this Block
     */
Called when the given entity walks on this Block
Called when the given entity walks on this Block
@Override
    public void stepOn(World worldIn, BlockPos pos, Entity entityIn) {
        double d0 = Math.abs(entityIn.getDeltaMovement().y);
        if (d0 < 0.1D && !entityIn.isSteppingCarefully()) {
            double d1 = 0.4D + d0 * 0.2D;
            entityIn.setDeltaMovement(entityIn.getDeltaMovement().multiply(d1, 1.0D, d1));
        }
        super.stepOn(worldIn, pos, entityIn);
    }
@ Override public void stepOn ( World worldIn , BlockPos pos , Entity entityIn ) { double d0 = Math . abs ( entityIn . getDeltaMovement ( ) . y ) ; if ( d0 < 0.1D && ! entityIn . isSteppingCarefully ( ) ) { double d1 = 0.4D + d0 * 0.2D ; entityIn . setDeltaMovement ( entityIn . getDeltaMovement ( ) . multiply ( d1 , 1.0D , d1 ) ) ; } super . stepOn ( worldIn , pos , entityIn ) ; }
Called when the given entity walks on this Block
Called when the given entity walks on this Block