OverviewPacketsPlayerAction
ID 0x24 · 36Client → ServerMovement
PlayerAction
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.
player-action.bin
struct PlayerAction {
ActorRuntimeID RuntimeId;
PlayerActionType Action;
BlockPos Pos;
BlockPos ResultPos;
varint32 Face;
}Structure
| Field | Type | Description |
|---|---|---|
| Runtime Id | ActorRuntimeID | |
| Action | PlayerActionType | |
| Pos | BlockPos | |
| Result Pos | BlockPos | |
| Face | varint32 |
Structure of BlockPos
| Field | Type | Description |
|---|---|---|
| X | varint32 | |
| Y | varint32 | |
| Z | varint32 |
Notes
- No special notes.
