MCBE
OverviewPacketsSyncWorldClocks
ID 0x158 · 344Server → ClientWorld

SyncWorldClocks

Sent from the server when a client joins to initialize all world clocks for the client and periodically to all clients to keep them in sync. It is also sent to all clients when a world clock's paused state changes or when time markers are added or removed.

sync-world-clocks.bin
struct SyncWorldClocks {
  tagged case index (0=SyncStateData, 1=InitializeRegistryData, 2=AddTimeMarkerData, 3=RemoveTimeMarkerData) Data;
}

Structure

FieldTypeDescription
Datatagged case index (0=SyncStateData, 1=InitializeRegistryData, 2=AddTimeMarkerData, 3=RemoveTimeMarkerData)Variant: an index selects the payload type — see the tables below.

Structure of SyncStateData

FieldTypeDescription
Clock Datavaruint32 count + SyncWorldClockStateData[]Length-prefixed sequence.

Structure of InitializeRegistryData

FieldTypeDescription
Clock Datavaruint32 count + WorldClockData[]Length-prefixed sequence.

Structure of AddTimeMarkerData

FieldTypeDescription
Clock Idvaruint64
Time Markersvaruint32 count + TimeMarkerData[]Length-prefixed sequence.

Structure of RemoveTimeMarkerData

FieldTypeDescription
Clock Idvaruint64
Time Marker Idsvaruint32 count + varuint64[]Length-prefixed sequence.

Structure of SyncWorldClockStateData

FieldTypeDescription
Clock Idvaruint64
Timevarint32
Is Pausedbool

Structure of WorldClockData

FieldTypeDescription
Idvaruint64
Namestring
Timevarint32
Is Pausedbool
Time Markersvaruint32 count + TimeMarkerData[]Length-prefixed sequence.

Structure of TimeMarkerData

FieldTypeDescription
Idvaruint64
Namestring
Timevarint32
Periodoptional byte + int32Presence flag on the wire; value omitted when absent.

Notes

  • No special notes.