Skip to main content

Module movement_validation

Module movement_validation 

Source
Expand description

Shared vanilla movement-validation helpers for client-authored movement.

Structs§

ClientAuthoredMovementState 🔒
State shared by vanilla client-authored movement validation.
MovementCollisionValidation
Collision state used to decide whether a client-authored movement is accepted.

Constants§

MOVEMENT_ERROR_THRESHOLD
Movement error threshold for anti-cheat validation (squared distance). Vanilla uses 0.0625 (1/16 block squared).
Y_TOLERANCE
Y-axis tolerance value used by vanilla’s movement-error branch.

Functions§

movement_error_delta
Returns the residual between a client target and the server-simulated position.