← Back to Index

PlayerActionPacket (36)

Sent from the client whenever the player performs an action (dashing, un-dashing, use an item, mine/hit, use a block, etc).
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.
Field Name Type Field Index Description
Player Runtime ID (Required) ActorRuntimeID 0

ActorRuntimeID

Field Name Type Field Index Description
Actor Runtime ID (Required) varuint64 0
Action (Required) varint32 1
Enum Values:
Index Value
0 Unknown
1 StartDestroyBlock
2 AbortDestroyBlock
3 StopDestroyBlock
4 StartSleeping
5 StopSleeping
6 Respawn
7 StartJump
8 StartSprinting
9 StopSprinting
10 StartSneaking
11 StopSneaking
12 CreativeDestroyBlock
13 ChangeDimensionAck
14 StartGliding
15 StopGliding
16 DenyDestroyBlock
17 CrackBlock
18 StartSwimming
19 StopSwimming
20 StartSpinAttack
21 StopSpinAttack
22 PredictDestroyBlock
23 ContinueDestroyBlock
24 StartItemUseOn
25 StopItemUseOn
26 HandledTeleport
27 MissedSwing
28 StartCrawling
29 StopCrawling
30 StartFlying
31 StopFlying
32 StartUsingItem
33 Count
Block Position (Required) BlockPos 2

BlockPos

Field Name Type Field Index Description
X (Required) varint32 0
Y (Required) varint32 1
Z (Required) varint32 2
Result Pos (Required) BlockPos 3

BlockPos

Field Name Type Field Index Description
X (Required) varint32 0
Y (Required) varint32 1
Z (Required) varint32 2
Face (Required) varint32 4