Skip to main content

Server Info

This is sent by the client after being accepted by the server. It contains information about the server, such as the world seed, the current game tick, and the enabled mods.

  • ID: 0x02
  • Size: Variable
  • LZ4 Compressed: Yes
  • State: Joining
  • Bound To: Server -> Client

Structure

Server Info

Field NameField TypeNotes
Versionbe u32The game build number
Gamemodeenum be u32Game mode identifier
Seedbe u32World seed
Gametickbe u32Current game tick
Mod Countbe u32Amount of enabled mods
Mod DataModData[Mod Count]A list of enabled mods
Game DataStringThis JSON string is parsed and stored in the game script self.data
Script Key Countbe u32
Script DataGenericData[Script Key Count]
Generic Key Countbe u32
Generic DataGenericData[Generic Key Count]
FlagsbitfieldDeveloper mode

Gamemode enum

Entry size: 4 bytes

ValueName
0AlphaTerrain
1FlatTerrain
2ClassicTerrain
3CreatedTerrain_Test
4CreatedTerrain
5Challenge
6ChallengeBuilder
7Terrain
8Menu Creation
14Survival
15Custom
16Development

ModData

Field NameField TypeSize
File IDu648 bytes
UUIDbyte[16]16 bytes

GenericData

Purpose is not fully known.

note

Channel field name is a guess. It is unconfirmed what this field is used for.

Field NameField TypeSize
UUIDbyte[16]16 bytes
Sizeu162 bytes
Keyu324 bytes

Flags bitfield

Contains information about which movement keys are pressed. All bits are always low while the player's character is seated or tumbling.

BitsField nameNotes
7Developer Mode

High when the Developer Mode is enabled. This is a server-side setting that can be toggled by launching with the -dev command line argument.

6UnknownNot known to be anything other than low.
5
4
3
2
1
0