Player Position
Packet ID | Direction |
0x0B | Both |
Clientbound
Sent to the client when the player is teleported, but their view-direction is irrelevant.
Field | Type | Description |
X | Double | The X position of the player |
Y | Double | The Y position of the player |
Stance | Double | The stance of the player |
Z | Double | The Z position of the player |
Serverbound
Sent to the server when the player is moving, but hasn’t changed their viewing direction in a while.
Field | Type | Description |
X | Double | The X position of the player |
Y | Double | The Y position of the player |
Stance | Double | The stance of the player |
Z | Double | The Z position of the player |
On Ground | Boolean | 0 for walking/swimming, 1 for jumping/falling |
Example Packets
Clientbound
Field | Value |
X | 5669.064 |
Y | 68.4 |
Stance | 0.62 |
Z | -5325.32 |
Serverbound
Field | Value |
X | 5669.064 |
Y | 68.4 |
Stance | 0.62 |
Z | -5325.32 |
On Ground | 1 |