← Back to Index

ServerboundLoadingScreenPacket (312)

Sent from the client to the server to message to the server about the state of the loading screen.
In order for the client to send a packet with StartLoadingScreen, the server needs to anticipate that this packet is coming. If the server doesn't expect that we are about to start a loading screen, the server will disconnect the client. EndLoadingScreen is sent by the client when the loading screen closes. The Loading Screen Id field will be empty if the loading screen is triggered by the initial loading into of a world. The Loading Screen Id field will have a value if sent by the server. This currently happens as part of ChangeDimensionPacket if the player is alive.
Field Name Type Field Index Description
Loading Screen Packet Type (Required) varint32 0
Enum Values:
Index Value
0 StartLoadingScreen
1 EndLoadingScreen
Loading Screen Id (Required) uint32 1 This will be set if the server gives us a value. If the server doesn't expect this value, then the client will get disconnected.