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

Published 2026-06-18 · Updated 2026-10-14

entityattributesspeed
Comprehensive 8/8

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.

Vanilla Source

S20PacketEntityProperties.java127 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.server;
2
3
import com.google.common.collect.Lists;
4
import java.io.IOException;
5
import java.util.Collection;
6
import java.util.List;
7
import java.util.UUID;
8
import net.minecraft.entity.ai.attributes.AttributeModifier;
9
import net.minecraft.entity.ai.attributes.IAttributeInstance;
10
import net.minecraft.network.Packet;
11
import net.minecraft.network.PacketBuffer;
12
import net.minecraft.network.play.INetHandlerPlayClient;
13
14
public class S20PacketEntityProperties implements Packet<INetHandlerPlayClient>
15
{
16
    private int entityId;
17
    private final List<S20PacketEntityProperties.Snapshot> field_149444_b = Lists.<S20PacketEntityProperties.Snapshot>newArrayList();
18
19
    public S20PacketEntityProperties()
20
    {
21
    }
22
23
    public S20PacketEntityProperties(int entityIdIn, Collection<IAttributeInstance> p_i45236_2_)
24
    {
25
        this.entityId = entityIdIn;
26
27
        for (IAttributeInstance iattributeinstance : p_i45236_2_)
28
        {
29
            this.field_149444_b.add(new S20PacketEntityProperties.Snapshot(iattributeinstance.getAttribute().getAttributeUnlocalizedName(), iattributeinstance.getBaseValue(), iattributeinstance.func_111122_c()));
30
        }
31
    }
32
33
    /**
34
     * Reads the raw packet data from the data stream.
35
     */
36
    public void readPacketData(PacketBuffer buf) throws IOException
37
    {
38
        this.entityId = buf.readVarIntFromBuffer();
39
        int i = buf.readInt();
40
41
        for (int j = 0; j < i; ++j)
42
        {
43
            String s = buf.readStringFromBuffer(64);
44
            double d0 = buf.readDouble();
45
            List<AttributeModifier> list = Lists.<AttributeModifier>newArrayList();
46
            int k = buf.readVarIntFromBuffer();
47
48
            for (int l = 0; l < k; ++l)
49
            {
50
                UUID uuid = buf.readUuid();
51
                list.add(new AttributeModifier(uuid, "Unknown synced attribute modifier", buf.readDouble(), buf.readByte()));
52
            }
53
54
            this.field_149444_b.add(new S20PacketEntityProperties.Snapshot(s, d0, list));
55
        }
56
    }
57
58
    /**
59
     * Writes the raw packet data to the data stream.
60
     */
61
    public void writePacketData(PacketBuffer buf) throws IOException
62
    {
63
        buf.writeVarIntToBuffer(this.entityId);
64
        buf.writeInt(this.field_149444_b.size());
65
66
        for (S20PacketEntityProperties.Snapshot s20packetentityproperties$snapshot : this.field_149444_b)
67
        {
68
            buf.writeString(s20packetentityproperties$snapshot.func_151409_a());
69
            buf.writeDouble(s20packetentityproperties$snapshot.func_151410_b());
70
            buf.writeVarIntToBuffer(s20packetentityproperties$snapshot.func_151408_c().size());
71
72
            for (AttributeModifier attributemodifier : s20packetentityproperties$snapshot.func_151408_c())
73
            {
74
                buf.writeUuid(attributemodifier.getID());
75
                buf.writeDouble(attributemodifier.getAmount());
76
                buf.writeByte(attributemodifier.getOperation());
77
            }
78
        }
79
    }
80
81
    /**
82
     * Passes this Packet on to the NetHandler for processing.
83
     */
84
    public void processPacket(INetHandlerPlayClient handler)
85
    {
86
        handler.handleEntityProperties(this);
87
    }
88
89
    public int getEntityId()
90
    {
91
        return this.entityId;
92
    }
93
94
    public List<S20PacketEntityProperties.Snapshot> func_149441_d()
95
    {
96
        return this.field_149444_b;
97
    }
98
99
    public class Snapshot
100
    {
101
        private final String field_151412_b;
102
        private final double field_151413_c;
103
        private final Collection<AttributeModifier> field_151411_d;
104
105
        public Snapshot(String p_i45235_2_, double p_i45235_3_, Collection<AttributeModifier> p_i45235_5_)
106
        {
107
            this.field_151412_b = p_i45235_2_;
108
            this.field_151413_c = p_i45235_3_;
109
            this.field_151411_d = p_i45235_5_;
110
        }
111
112
        public String func_151409_a()
113
        {
114
            return this.field_151412_b;
115
        }
116
117
        public double func_151410_b()
118
        {
119
            return this.field_151413_c;
120
        }
121
122
        public Collection<AttributeModifier> func_151408_c()
123
        {
124
            return this.field_151411_d;
125
        }
126
    }
127
}

Deobfuscated MCP 1.8.9 source of S20PacketEntityProperties, fetched directly from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/play/server/S20PacketEntityProperties.java) at build time and verified present.

Deep Dive

Role in the protocol

S20PacketEntityProperties is a full attribute snapshot for one entity: entityId VarInt, property count int, then per property a String key, double base value, modifier count, and per modifier a UUID, name, amount and operation byte. The server sends it from EntityTrackerEntry when an entity's attributes change (line 267/311 in the corpus) and to new watchers when they start tracking (line 329/374). This is the only channel by which the client learns other entities' movement speed, knockback resistance, max health and attack damage.

Vanilla handling

NetHandlerPlayClient.handleEntityProperties resolves the entity and throws IllegalStateException if it is not EntityLivingBase ('Server tried to update attributes of a non-living entity'). It then walks the snapshot list: unknown attribute keys are registered on the fly as RangedAttribute with the full double range, setBaseValue is applied, all modifiers are removed and re-added from the wire. EntityLivingBase reads these attributes for its own speed, health and knockback math, so the packet directly drives client-side entity physics.

Why clients touch it

Rise 6.1.30 and 6.2.4 PingSpoofComponent include S20PacketEntityProperties in the 'players' class tuple: when a module enables players=true spoofing, incoming S20 packets are cancelled and released late. Rise 6.x NetworkAPI also registers the class (clientbound index 75). Memeware, Nekoware, Sigma, Spicy and Tenacity carry only the vanilla handler; the AntiBot/TargetInfo attribute-reading modules from older docs have no corpus hits in the reference set.

Exploit surface

The interesting abuse is buffering, not reading: PingSpoofComponent holds S20 for other entities so their attribute snapshots arrive after their position updates, keeping the client's view of entity speeds consistent with frozen positions during blink windows. Delaying entity-state packets does not touch the player's own server-authoritative motion, so no anti-cheat flags it. A client that reads S20 precisely could predict player speeds for aim/velocity math, but none of the 8 clients does.

Server-Side Handling

EntityTrackerEntry sends the full attribute map on change (line 267/311) and on watcher start (line 329/374). The packet carries base values plus modifiers, so the client rebuilds the complete attribute state from scratch on every arrival; there is no delta encoding and no inbound handler. Server-side validation is absent by design: the packet is clientbound.

Protocol Analysis

The property count is a plain int, not a VarInt, unlike most 1.8.9 counts. Attribute keys are the unlocalized names ('generic.movementSpeed', 'generic.knockbackResistance', 'generic.maxHealth', 'generic.attackDamage', 'horse.jumpStrength', 'zombie.spawnReinforcements'). Modifier operation is a byte (0 add, 1 multiply, 2 multiply-base). The client registers unknown keys as RangedAttribute with near-infinite bounds, so a server can push arbitrary named attributes.

Anti-Cheat Landscape

Entity attribute state is derived server-side, so anti-cheats never validate S20 traffic. The only observable effect of buffering it is delayed visual entity speed, which looks like normal lag. This is why PingSpoofComponent can park S20 for hundreds of milliseconds without risk.

implementation Implementation Cases

The client's only window into other entities' attributes. Rise 6.x PingSpoofComponent buffers S20 as part of its 'players' spoof category, and NetworkAPI registers it for scripts; the other six clients leave the vanilla handler untouched.

PingSpoofComponent (Rise 6.1.30, Rise 6.2.4)

Buffers S20PacketEntityProperties for other entities during a spoof/blink window so attribute snapshots arrive late and stay consistent with frozen entity positions.

The 'players' Tuple lists S20PacketEntityProperties alongside S13PacketDestroyEntities, S14PacketEntity variants, S18PacketEntityTeleport and S19PacketEntityHeadLook. onPacketReceive cancels any listed class when its category flag is enabled and parks it as a TimedPacket; onPostMotion flushes entries whose time plus the spoof amount has elapsed, and dispatch() releases everything on world change or disable.

Source: Rise 6.1.30, com/alan/clients/component/impl/player/PingSpoofComponent.java

Vanilla hook: PacketReceiveEvent (cancel + park), PostMotionEvent (flush), WorldChangeEvent (dispatch), PacketSendEvent (serverbound park).
Low risk: only entity-state packets are delayed, never the player's own movement or transaction stream, so server-side motion checks see nothing unusual. Delayed entity attributes render as slightly stale entity speeds, which reads as latency.
Variations: Rise 6.2.4 carries an identical file under Client-release2/Client/src/main/java. Rise 6.0 (outside the reference set) has the same component; within the reference set only 6.1.30 and 6.2.4 count.
Rise 6.x component system: @EventLink listeners on PacketReceiveEvent, PacketSendEvent, PostMotionEvent and WorldChangeEvent. Modules request spoofing via PingSpoofComponent.spoof(amount, ...) and blink().
Rise 6.1.30 and 6.2.4 are the only reference clients with non-vanilla S20 code, both through the component plus NetworkAPI registration. Classic clients (Memeware, Nekoware, Sigma, Spicy, Tenacity) ship the stock handler.

anticheat Anti-Cheat Checks

The attribute snapshot packet is the server's only channel for entity attribute state, and anticheats treat it as authoritative input for movement simulation. Trackers capture the movement-speed attribute and its modifiers (Hydro, AntiHaxerman, intave), Grim clamps attribute values to the wiki-defined client bounds and excludes the sprinting modifier from the base value, TruthfulAC records attribute snapshots from the Bukkit API that mirrors the S20 state, and Photon rewrites the max-health attribute. Knockback resistance is present in the packet but no check in the corpus consumes it.

ValuedAttribute (attribute range validation) (GrimAnticheat-Grim)

Model one server-sent attribute with wiki-defined min/max bounds and recompute its value from the S20 property, so the simulation never trusts an out-of-range base or modifier sum.

with() recomputes the value as (base + addition sum) x (1 + multiply-base sum) x product of (1 + multiply-total) and clamps to [min, max]; the sprinting modifier is removed first because Grim tracks sprint separately in CompensatedEntities. requiredVersion gates value changes behind a client version, and setRewriter/getRewriter adapt the value per client and server version. The constructor rejects defaults outside the range.

Detects: Attribute abuse where the server sends values the client would clamp, and version-dependent attribute quirks that would otherwise desync the simulation.

Source: GrimAnticheat-Grim, common/src/main/java/ac/grim/grimac/utils/data/attribute/ValuedAttribute.java

Variations: CompensatedEntities.updateAttributes feeds the same property list into per-entity attribute maps, watching specifically for the movement-speed sprint modifier and horse jump strength; PlayerBaseTick consumes the resulting movement speed and scale during simulation.
AttributeTracker (movement speed tracking) (Incognitolol-Hydro)

Capture the player's walk speed from the S20 update, combine it with speed and slowness potion effects, and expose the effective move speed the simulation checks use.

handleAttributeUpdate matches generic.movementSpeed in the property list and stores the base value inside the transaction-confirm window. Entity-effect packets feed speed, slowness and jump boost levels, and getMoveSpeed(sprint) composes walk speed with the 0.3 sprint modifier and 0.2/-0.15 potion modifiers.

Detects: Speed-state desync between the server's attributes and the movement the player reports; feeds speed and flight simulation.

Source: Incognitolol-Hydro, src/main/java/integral/studios/hydro/model/tracker/impl/AttributeTracker.java

Variations: AntiHaxerman's AttributeTracker keeps a full snapshot list of the player's attributes on connection confirm; intave's AttributeTracker stores modifier sets and derives the sprint flag from the presence of the sprinting modifier.
AttributeTracker (attribute snapshot) (Tecnio-AntiHaxerman)

Keep the player's current attribute snapshot and potion levels, refreshed on connection confirm, so movement checks know the exact speed and effect state.

The tracker handles GPacketPlayServerUpdateAttributes for the player's own entity id and stores the full Snapshot list inside a connection-confirm action; entity-effect packets update the potion map the same way. getPotionLevel and hasPotion expose the effect state.

Detects: Nothing directly; feeds speed, flight and velocity checks with the confirmed attribute state.

Source: Tecnio-AntiHaxerman, src/main/java/me/tecnio/ahm/data/tracker/impl/AttributeTracker.java

Variations: Hydro keeps only the movement-speed value plus potion levels; intave additionally derives the sprint state from the modifier set.
AttributeTracker (sprint speed detection) (intave-intave)

Read the S20 attribute collection for the player, store the server's modifier set, and derive whether the player has the sprinting modifier active.

sentAttributes reads the attribute collection modifier of the UPDATE_ATTRIBUTES packet for the player's own entity id, converts each WrappedAttribute into intave's Attribute model, clears the stored modifiers, then stores the server's modifier set and sets movement.hasSprintSpeed when the SPRINTING_MODIFIER is present. Base values update the ability metadata.

Detects: Speed-state desync where the client moves as if sprinting while the server attributes say otherwise.

Source: intave-intave, src/main/java/de/jpx3/intave/module/tracker/player/AttributeTracker.java

Variations: Hydro and AntiHaxerman track the same attribute stream with simpler base-value snapshots; Grim goes further and recomputes the full value with range clamps.
AttributeEngine (simulation attribute history) (TawnyE-TruthfulAC)

Record walk speed, gravity, jump strength, step height, movement efficiency and potion levels over a 1.5 second window so the simulation checks bound their physics assumptions.

updateStateCache in PlayerData reads the Bukkit attribute API (generic.movementSpeed, generic.gravity, generic.jumpStrength, generic.stepHeight, generic.movementEfficiency, player.sneakingSpeed) and potion levels, then calls attributeEngine.record. The engine keeps a timestamped deque, exposes max walk speed, min gravity, max jump strength and step height, and hasAttributeTransition detects attribute changes within the window. The debug tags (ATTR_LOW_GRAVITY, ATTR_SPEED, ATTR_JUMP, ATTR_STEP) label the active conditions.

Detects: Physics assumptions violated by attribute changes; the recorded history lets the simulation checks tolerate legitimate speed and jump changes instead of flagging them.

Source: TawnyE-TruthfulAC, src/main/java/ret/tawny/truthful/attributes/AttributeEngine.java

Variations: The engine is fed from the Bukkit API rather than parsing S20 directly, but it mirrors the same server-side attribute state the packet announces. Grim and Hydro feed their simulations from the packet stream itself.

Wiki Cross-Reference

Modifier operations apply in a fixed order: all addition modifiers first, then multiply-base percentage modifiers, then multiply-total modifiers.

MCP 1.8.9 S20PacketEntityProperties implements Packet dispatching to INetHandlerPlayClient.handleEntityProperties; wire serde is readPacketData/writePacketData via readByte, readDouble, readInt, readStringFromBuffer, readUuid, readVarIntFromBuffer.

1.8.9 callers: EntityTrackerEntry.sendMetadataToAllAssociatedPlayers sends new S20PacketEntityProperties (line 324): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/entity/EntityTrackerEntry.java

Cross-checked against minecraft.wiki (CC BY-SA 3.0) for 1.8.9 accuracy.

Vanilla Internals

Full 1.8.9 logic-class sources that send or handle this packet, stored verbatim.