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
| Field | Type | Description |
|---|---|---|
| Runtime Id | ActorRuntimeID | |
| Attribute Data | varuint32 count + AttributeData[] | Length-prefixed sequence. |
| Tick | PlayerInputTick |
Structure of AttributeData
| Field | Type | Description |
|---|---|---|
| Min Value | float32 (LE) | |
| Max Value | float32 (LE) | |
| Current Value | float32 (LE) | |
| Default Min Value | float32 (LE) | |
| Default Max Value | float32 (LE) | |
| Default Value | float32 (LE) | |
| Name | string | |
| Modifiers | varuint32 count + AttributeModifier[] | Length-prefixed sequence. |
Structure of AttributeModifier
| Field | Type | Description |
|---|---|---|
| Id | string | |
| Name | string | |
| Amount | float32 (LE) | |
| Operation | int32 (LE) | |
| Operand | int32 (LE) | |
| Serialize | bool |
Notes
- Attribute names are namespaced strings like minecraft:health; each entry can carry modifiers.
