Skip to content

1.2.0-RELEASE: 1.21.11 Protocol Support

Choose a tag to compare

@huangdihd huangdihd released this 12 Apr 15:30
· 45 commits to main since this release

Minecraft 1.21.11 Protocol Support

This release brings full compatibility with the Minecraft 1.21.11 protocol, fixing issues where button clicks and block interactions were ignored by the server.

Key Updates:

  1. Sequence Synchronization: Implemented thread-safe sequence tracking to ensure ServerboundUseItemOnPacket uses the correct sequence index required by the server.
  2. Instant Look-at Calibration: Automatically calculates and sends a 4-parameter ServerboundMovePlayerRotPacket (onGround, horizontalCollision, yaw, pitch) immediately before interaction to ensure the server validates the player's line of sight.
  3. Strict Action Chain: Optimized packet transmission order to follow the standard Rotation -> Swing -> UseItem sequence.
  4. API Adaptation: Updated ServerboundUseItemOnPacket to include the isHitWorldBorder parameter required by 1.21.11.
  5. MovementSync Integration: Leverages MovementSync for precise eye-level coordinate calculations to ensure high-accuracy interaction raycasting.