MCBE
OverviewPacketsUpdateAttributes
ID 0x1D · 29Server → ClientEntities

UpdateAttributes

Updates entity attributes (health, movement speed, hunger, ...) with min/max/current/default values and modifiers.

update-attributes.bin
struct UpdateAttributes {
  ActorRuntimeID                               RuntimeId;
  varuint32 [] · AttributeData[]               AttributeData;
  PlayerInputTick                              Tick;
}

Structure

FieldTypeDescription
Runtime IdActorRuntimeID
Attribute Datavaruint32 count + AttributeData[]Length-prefixed sequence.
TickPlayerInputTick

Structure of AttributeData

FieldTypeDescription
Min Valuefloat32 (LE)
Max Valuefloat32 (LE)
Current Valuefloat32 (LE)
Default Min Valuefloat32 (LE)
Default Max Valuefloat32 (LE)
Default Valuefloat32 (LE)
Namestring
Modifiersvaruint32 count + AttributeModifier[]Length-prefixed sequence.

Structure of AttributeModifier

FieldTypeDescription
Idstring
Namestring
Amountfloat32 (LE)
Operationint32 (LE)
Operandint32 (LE)
Serializebool

Notes

  • Attribute names are namespaced strings like minecraft:health; each entry can carry modifiers.