← Packet index

Packet 43

SetSpawnPositionPacket

When a player logs in or the SetWorldSpawnCommand is used this is sent from the server to the client. Does not change when using a bed, that is a separate packet (RespawnPacket)

see RespawnPacket

Packet datagramWire order
HeaderID 43varuint
0Spawn Position Typevarint32 · variable (up to 5 bytes)
1Block PositionBlockPos · variable
2Dimension typeDimensionType · variable
3Spawn Block PosBlockPos · variable

Serialized fields

4 top-level fields
  1. 0Spawn Position TypeCompressionEnum-as-ValueSpawnPositionTypeas varint32
    1. 0PlayerRespawn
    2. 1WorldSpawn
  2. 1Block PositionBlockPos
    1. 0XCompressionvarint32
    2. 1YCompressionvarint32
    3. 2ZCompressionvarint32
  3. 2Dimension typeDimensionType
    1. 0valueCompressionvarint32
  4. 3Spawn Block PosBlockPos
    1. 0XCompressionvarint32
    2. 1YCompressionvarint32
    3. 2ZCompressionvarint32

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this packet.