Packet 62
SetPlayerGameTypePacket
The client handles the change of the UI element (the gametype dropdown, although this can be avoided by changing via command or on the server), then the client sends a packet to the server, then the server changes the player's gametype and sends a packet back (UpdatePlayerGameTypePacket) to make sure it matches on the client.
HeaderID 62varuint
0Player Game Typevarint32 · variable (up to 5 bytes)
Serialized fields
1 top-level fieldsChangelog
Stable releases
Changes between stable protocol releases.
No stable release changes are recorded for this packet.
Preview builds
Changes between Minecraft Preview protocol builds.
No preview build changes are recorded for this packet.