Documentation

Learn how to install and use LiquidBounce with our comprehensive guides

MovementUtil

Provides various methods related to player movement.

Method summary

MovementUtil.getSpeed(): double

Returns the player's horizontal speed.


MovementUtil.isMoving(): boolean

Returns whether the player is moving.


MovementUtil.strafe(): void

Makes the player strafe.


MovementUtil.strafeWithSpeed(speed: double): void

Makes the player strafe with a given speed.
List of parameters:

  • speed, the in-air speed of the player while strafing.

MovementUtil.strafeWithStrength(strength: double): void

Makes the player strafe with a given strength.
List of parameters:

  • strength, the strength to strafe with.

MovementUtil.strafeWithSpeedAndStrength(speed: double, strength: double): void

Combination of MovementUtil::strafeWithSpeed and MovementUtil::strafeWithStrength.
List of parameters:

  • speed, the in-air speed of the player while strafing.
  • strength, the strength to strafe with.

Last updated: 2026-11-11, based on source code