Skip to content

MountSystems.HandleMountInput

Package: com.hypixel.hytale.builtin.mounts

public static class HandleMountInput extends EntityTickingSystem<EntityStore>

Ticking system that processes player movement input while the player is mounted. Runs before PlayerSystems.ProcessPlayerInput.

Matches entities with both MountedComponent and PlayerInput.

Each tick, iterates the player’s PlayerInput.getMovementUpdateQueue() and processes each input update:

  • Block mount + movement input: If the mount duration is at least 600 ms, removes the MountedComponent to dismount. Movement inputs within the first 600 ms are ignored to prevent accidental immediate dismount.
  • SetRiderMovementStates: Updates the rider’s MovementStatesComponent.
  • RelativeMovement: Applies to both the rider and the mount target’s TransformComponent position.
  • AbsoluteMovement: Applies to both the rider and the mount target’s TransformComponent position.
  • SetMovementStates: Updates the mount target’s MovementStatesComponent.
  • SetBody: Applies body rotation to both the rider and the mount target’s TransformComponent rotation.
  • SetHead: Applies head rotation to the rider only.
  • WishMovement: Ignored while mounted.

The queue is cleared after processing.

Ordered BEFORE PlayerSystems.ProcessPlayerInput.

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.