MCBE
OverviewPacketsClientboundAttributeLayerSync
ID 0x159 · 345Server → ClientAccessibility

ClientboundAttributeLayerSync

clientbound-attribute-layer-sync.bin
struct ClientboundAttributeLayerSync {
  tagged case index (0=UpdateAttributeLayersData, 1=UpdateAttributeLayerSettingsData, 2=UpdateEnvironmentAttributesData, 3=RemoveEnvironmentAttributesData) Data;
}

Structure

FieldTypeDescription
Datatagged case index (0=UpdateAttributeLayersData, 1=UpdateAttributeLayerSettingsData, 2=UpdateEnvironmentAttributesData, 3=RemoveEnvironmentAttributesData)Variant: an index selects the payload type — see the tables below.

Structure of UpdateAttributeLayersData

FieldTypeDescription
Attribute Layersvaruint32 count + AttributeLayerData[]Length-prefixed sequence.

Structure of UpdateAttributeLayerSettingsData

FieldTypeDescription
Layer Namestring
Layer Dimension IdDimensionType
Attribute Layer SettingsAttributeLayerSettings

Structure of UpdateEnvironmentAttributesData

FieldTypeDescription
Layer Namestring
Layer Dimension IdDimensionType
Attributesvaruint32 count + EnvironmentAttributeData[]Length-prefixed sequence.

Structure of RemoveEnvironmentAttributesData

FieldTypeDescription
Layer Namestring
Layer Dimension IdDimensionType
Attributesvaruint32 count + string[]Length-prefixed sequence.

Structure of AttributeLayerData

FieldTypeDescription
Namestring
Noise Nameoptional byte + stringPresence flag on the wire; value omitted when absent.
Dimension IdDimensionType
SettingsAttributeLayerSettings
Attributesvaruint32 count + EnvironmentAttributeData[]Length-prefixed sequence.

Structure of AttributeLayerSettings

FieldTypeDescription
Priorityint32 (LE)
Weightfloat32 (LE)
Enabledbool
Transitions Pausedbool

Structure of EnvironmentAttributeData

FieldTypeDescription
Namestring
From Attributeoptional byte + AttributeDataVariantPresence flag on the wire; value omitted when absent.
AttributeAttributeDataVariant
To Attributeoptional byte + AttributeDataVariantPresence flag on the wire; value omitted when absent.
Current Transition Ticksuint32 (LE)
Total Transition Ticksuint32 (LE)
Easingstring
Local Transition Ticksuint32 (LE)
Noise Transitionbool
Noise AlignmentNoiseAlignment

Structure of NoiseAlignment

FieldTypeDescription
TypeNoiseAlignmentType
Valuevaruint32

Notes

  • No special notes.