← 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 GetUpdatedBlock
5 DropItem
6 StartSleeping
7 StopSleeping
8 Respawn
9 StartJump
10 StartSprinting
11 StopSprinting
12 StartSneaking
13 StopSneaking
14 CreativeDestroyBlock
15 ChangeDimensionAck
16 StartGliding
17 StopGliding
18 DenyDestroyBlock
19 CrackBlock
20 ChangeSkin
21 UpdatedEnchantingSeed
22 StartSwimming
23 StopSwimming
24 StartSpinAttack
25 StopSpinAttack
26 InteractWithBlock
27 PredictDestroyBlock
28 ContinueDestroyBlock
29 StartItemUseOn
30 StopItemUseOn
31 HandledTeleport
32 MissedSwing
33 StartCrawling
34 StopCrawling
35 StartFlying
36 StopFlying
37 ClientAckServerData
38 StartUsingItem
39 Count
Block Position (Required) NetworkBlockPosition 2

NetworkBlockPosition

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

NetworkBlockPosition

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