Player Animation

Packet ID Direction
0x12 Both

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 animation
Animation Byte The type of animation. Can be 1 or 3

Example Packet

Field Value
Player ID 1298
Animation 1 (Swing Arm)