← Packet index

Packet 36

PlayerActionPacket

The expected actions change depending on the ServerAuthMovementMode specified in the StartGamePacket. See the PlayerActionType enum for details on which have differing behavior. See also PlayerAuthInputPacket and InventoryTransactionPacket for similar types of player actions.

Packet datagramWire order
HeaderID 36varuint
0Player Runtime IDActorRuntimeID · variable
1Actionvarint32 · variable (up to 5 bytes)
2Block PositionBlockPos · variable
3Result PosBlockPos · variable
4Facevarint32 · variable (up to 5 bytes)

Serialized fields

5 top-level fields
  1. 0Player Runtime IDActorRuntimeID
    1. 0Actor Runtime IDCompressionvaruint64
  2. 1ActionCompressionEnum-as-ValuePlayerActionTypeas varint32
    1. 0Unknown
    2. 1StartDestroyBlock
    3. 2AbortDestroyBlock
    4. 3StopDestroyBlock
    5. 4StartSleeping
    6. 5StopSleeping
    7. 6Respawn
    8. 7StartJump
    9. 8StartSprinting
    10. 9StopSprinting
    11. 10StartSneaking
    12. 11StopSneaking
    13. 12CreativeDestroyBlock
    14. 13ChangeDimensionAck
    15. 14StartGliding
    16. 15StopGliding
    17. 16DenyDestroyBlock
    18. 17CrackBlock
    19. 18StartSwimming
    20. 19StopSwimming
    21. 20StartSpinAttack
    22. 21StopSpinAttack
    23. 22PredictDestroyBlock
    24. 23ContinueDestroyBlock
    25. 24StartItemUseOn
    26. 25StopItemUseOn
    27. 26HandledTeleport
    28. 27MissedSwing
    29. 28StartCrawling
    30. 29StopCrawling
    31. 30StartFlying
    32. 31StopFlying
    33. 32StartUsingItem
    34. 33InternalUpdate
    35. 34Count
  3. 2Block PositionBlockPos
    1. 0XCompressionvarint32
    2. 1YCompressionvarint32
    3. 2ZCompressionvarint32
  4. 3Result PosBlockPos
    1. 0XCompressionvarint32
    2. 1YCompressionvarint32
    3. 2ZCompressionvarint32
  5. 4FaceCompressionvarint32

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this packet.