0x39 S39PacketPlayerAbilities
Server updates the player's capabilities (flying, invulnerable, creative, fly speed, walk speed).
Fields
| Field | Type | Description |
|---|---|---|
| flags | byte bitmask | 0x01=invulnerable, 0x02=flying, 0x04=allowFlying, 0x08=creative |
| flySpeed | float | Flight speed (default 0.05) |
| walkSpeed | float | Walk speed (default 0.1) |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Flags | byte | Bitmask |
| Fly Speed | float | 0.05 default |
| Walk Speed | float | 0.1 default |
MCP References
MCP
NetHandlerPlayClient.handlePlayerAbilities()Handler Interface
HND
INetHandlerPlayClientNotes
This is the SERVER→CLIENT version. The server sends this when the player's abilities change. The CLIENT→SERVER version is C13PacketPlayerAbilities (which only carries the isFlying flag).
implementation Implementation Cases
Flight
(Tenacity 6.0)
Detect ability changes. Flight checks allowFlying. GodMode tracks invulnerable.
GodMode
(Tenacity 6.0)
Detect ability changes. Flight checks allowFlying. GodMode tracks invulnerable.
CreativeFly
(Tenacity 6.0)
Detect ability changes. Flight checks allowFlying. GodMode tracks invulnerable.