Player Action
| Packet ID | Direction | Mojang Name | MCP Name |
|---|---|---|---|
0x12 | Both | AnimatePacket | Packet18Animation |
This packet is sent by both the client and the server for swinging your arm (1) and leaving a bed (3), which is clientbound only. The client sends the Entity Action packet for when it wishes to leave a bed (aka clicking the "Leave Bed" button).
Both
| Field | Type | Description |
|---|---|---|
| Player ID | Integer | The ID of the player who did the action |
| Action | Byte | The type of action. Can be 1 or 3 |
Example Packet
| Field | Value |
|---|---|
| Player ID | 1298 |
| Action | 1 (Swing Arm) |