View on GitHub

Soupply

Automatically generated libraries for encoding and decoding Minecraft protocols

home / bedrock261 / play / set-player-game-type

Set player game type

Encode/decode this packet in Sandbox

Id: 62

Id (hex): 3E

Id (bin): 00111110

Clientbound: ✔️

Serverbound: ✔️

Sets the player’s gamemode. This packet is sent by the player when it has the operator status (set in AdventureSettings.permissions) and it changes the gamemode in the settings screen.

Fields

Name Type
gamemode varint

gamemode

Constants:

Name Value
survival 0
creative 1
adventure 2