0x20 S20PacketEntityProperties

Updates an entity's generic attributes (movement speed, max health, knockback resistance, etc.).

Clientbound (Server → Client) · PLAY · net/minecraft/network/play/server/S20PacketEntityProperties.java
entityattributesspeed

Fields

FieldTypeDescription
entityIdVarIntEntity ID
propertiesList of AttributeAttribute key-value pairs

Wire Encoding

FieldTypeNotes
Entity IDVarInt
Number of Propertiesint
Per-PropertyString + double + VarInt + Modifier[]Attribute key, base value, modifiers

MCP References

MCPNetHandlerPlayClient.handleEntityProperties()

Handler Interface

HNDINetHandlerPlayClient

Notes

Attribute keys: generic.movementSpeed, generic.maxHealth, generic.knockbackResistance, generic.followRange, horse.jumpStrength, zombie.spawnReinforcements, etc. Movement speed can be read to predict horse speeds or detect speed-modified players.

implementation Implementation Cases

AntiBot

Read entity attributes (speed, health, attack damage) for bot detection and target info.

Vanilla hook: EventReceivePacket
TargetInfo

Read entity attributes (speed, health, attack damage) for bot detection and target info.

Vanilla hook: EventReceivePacket
← Back to all packets