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 Name | Field Type | Notes |
---|---|---|
Version | be u32 | The game build number |
Gamemode | enum be u32 | Game mode identifier |
Seed | be u32 | World seed |
Gametick | be u32 | Current game tick |
Mod Count | be u32 | Amount of enabled mods |
Mod Data | ModData[Mod Count] | A list of enabled mods |
Game Data | String | This JSON string is parsed and stored in the game script self.data |
Script Key Count | be u32 | |
Script Data | GenericData[Script Key Count] | |
Generic Key Count | be u32 | |
Generic Data | GenericData[Generic Key Count] | |
Flags | bitfield | Developer mode |
Gamemode enum
Entry size: 4 bytes
Value | Name |
---|---|
0 | AlphaTerrain |
1 | FlatTerrain |
2 | ClassicTerrain |
3 | CreatedTerrain_Test |
4 | CreatedTerrain |
5 | Challenge |
6 | ChallengeBuilder |
7 | Terrain |
8 | Menu Creation |
14 | Survival |
15 | Custom |
16 | Development |
ModData
Field Name | Field Type | Size |
---|---|---|
File ID | u64 | 8 bytes |
UUID | byte[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 Name | Field Type | Size |
---|---|---|
UUID | byte[16] | 16 bytes |
Size | u16 | 2 bytes |
Key | u32 | 4 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.
Bits | Field name | Notes |
---|---|---|
7 | Developer Mode | High when the Developer Mode is enabled. This is a server-side setting that can be toggled by launching with the |
6 | Unknown | Not known to be anything other than low. |
5 | ||
4 | ||
3 | ||
2 | ||
1 | ||
0 |