MCBE
OverviewPacketsSetActorData
ID 0x27 · 39Server → ClientEntities

SetActorData

Updates an entity's synchronized data: flags (on fire, sneaking, ...), byte/short/int/float/long variants and component data like bounding box.

set-actor-data.bin
struct SetActorData {
  ActorRuntimeID                               Id;
  SynchedActorData.CopyableDataList            PackedItems;
  PropertySyncData                             SynchedProperties;
  PlayerInputTick                              Tick;
}

Structure

FieldTypeDescription
IdActorRuntimeID
Packed ItemsSynchedActorData.CopyableDataList
Synched PropertiesPropertySyncData
TickPlayerInputTick

Structure of CopyableDataList

FieldTypeDescription
Datavaruint32 count + DataItemEntry[]Length-prefixed sequence.

Structure of DataItemEntry

FieldTypeDescription
Idvaruint32
Payloadtagged case index (0=DataItemBytePayload, 1=DataItemShortPayload, 2=DataItemIntPayload, 3=DataItemFloatPayload, 4=DataItemStringPayload, 5=DataItemCompoundTagPayload, 6=DataItemPosPayload, 7=DataItemInt64Payload, 8=DataItemVec3Payload)Variant: an index selects the payload type — see the tables below.

Structure of DataItemBytePayload

FieldTypeDescription
Typeconstant DataItemType.BYTEFixed tag written on the wire.
Valueint8 (LE)

Structure of DataItemShortPayload

FieldTypeDescription
Typeconstant DataItemType.SHORTFixed tag written on the wire.
Valueint16 (LE)

Structure of DataItemIntPayload

FieldTypeDescription
Typeconstant DataItemType.INTFixed tag written on the wire.
Valuevarint32

Structure of DataItemFloatPayload

FieldTypeDescription
Typeconstant DataItemType.FLOATFixed tag written on the wire.
Valuefloat32 (LE)

Structure of DataItemStringPayload

FieldTypeDescription
Typeconstant DataItemType.STRINGFixed tag written on the wire.
Valuestring

Structure of DataItemCompoundTagPayload

FieldTypeDescription
Typeconstant DataItemType.COMPOUND_TAGFixed tag written on the wire.
ValueCompoundTag

Structure of DataItemPosPayload

FieldTypeDescription
Typeconstant DataItemType.POSFixed tag written on the wire.
ValueBlockPos

Structure of DataItemInt64Payload

FieldTypeDescription
Typeconstant DataItemType.INT64Fixed tag written on the wire.
Valuevarint64

Structure of DataItemVec3Payload

FieldTypeDescription
Typeconstant DataItemType.VEC3Fixed tag written on the wire.
ValueVec3

Structure of BlockPos

FieldTypeDescription
Xvarint32
Yvarint32
Zvarint32

Structure of Vec3

FieldTypeDescription
Xfloat32 (LE)
Yfloat32 (LE)
Zfloat32 (LE)

Notes

  • No special notes.