0x1C S1CPacketEntityMetadata

Updates an entity's DataWatcher metadata (health, skin, flags, name, etc.).

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

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

entitymetadatadata
Comprehensive 8/8

Fields

FieldTypeDescription
entityIdVarIntEntity ID
metadataDataWatcherSerialized metadata entries

Wire Encoding

FieldTypeNotes
Entity IDVarInt
MetadataDataWatcherSerialized key-value pairs

MCP References

MCPNetHandlerPlayClient.handleEntityMetadata()

Handler Interface

HNDINetHandlerPlayClient

Notes

S1C carries changed or new DataWatcher entries for an entity. Metadata indexes: 0=flags (onFire/sneaking/riding/sprinting/flying), 1=airTicks, 2=nameTag, 3=nameVisible, 6=health (for living), 15/variant, 16/color (for horses), etc.

Vanilla Source

S1CPacketEntityMetadata.java68 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.server;
2
3
import java.io.IOException;
4
import java.util.List;
5
import net.minecraft.entity.DataWatcher;
6
import net.minecraft.network.Packet;
7
import net.minecraft.network.PacketBuffer;
8
import net.minecraft.network.play.INetHandlerPlayClient;
9
10
public class S1CPacketEntityMetadata implements Packet<INetHandlerPlayClient>
11
{
12
    private int entityId;
13
    private List<DataWatcher.WatchableObject> field_149378_b;
14
15
    public S1CPacketEntityMetadata()
16
    {
17
    }
18
19
    public S1CPacketEntityMetadata(int entityIdIn, DataWatcher p_i45217_2_, boolean p_i45217_3_)
20
    {
21
        this.entityId = entityIdIn;
22
23
        if (p_i45217_3_)
24
        {
25
            this.field_149378_b = p_i45217_2_.getAllWatched();
26
        }
27
        else
28
        {
29
            this.field_149378_b = p_i45217_2_.getChanged();
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
        this.field_149378_b = DataWatcher.readWatchedListFromPacketBuffer(buf);
40
    }
41
42
    /**
43
     * Writes the raw packet data to the data stream.
44
     */
45
    public void writePacketData(PacketBuffer buf) throws IOException
46
    {
47
        buf.writeVarIntToBuffer(this.entityId);
48
        DataWatcher.writeWatchedListToPacketBuffer(this.field_149378_b, buf);
49
    }
50
51
    /**
52
     * Passes this Packet on to the NetHandler for processing.
53
     */
54
    public void processPacket(INetHandlerPlayClient handler)
55
    {
56
        handler.handleEntityMetadata(this);
57
    }
58
59
    public List<DataWatcher.WatchableObject> func_149376_c()
60
    {
61
        return this.field_149378_b;
62
    }
63
64
    public int getEntityId()
65
    {
66
        return this.entityId;
67
    }
68
}

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

Deep Dive

Role in the protocol

S1CPacketEntityMetadata carries DataWatcher updates for one entity: a list of WatchableObject entries, or the full watcher dump on spawn. EntityTrackerEntry sends the full watcher with the metadata flag true when a player enters tracking range (corpus line 360) and incremental changed entries otherwise (line 303). The client merges them into the entity's DataWatcher. Relevant indexes: 0 is the byte flags (sneaking, sprinting, invisible, riding), 2 the name tag, 3 name visibility, 6 health for living entities. The sneak flag (bit 1, byte value 2) is the one the corpus actually reads.

Vanilla handling

NetHandlerPlayClient.handleEntityMetadata (Memeware 7.3 bundle, line 468) resolves the entity, guards against a null list and calls entity.getDataWatcher().updateWatchedObjectsFromList(list). The DataWatcher then notifies the renderer and any systems watching specific indexes. The same list rides inside S0CPacketSpawnPlayer and S0FPacketSpawnMob for the initial state.

Why clients touch it

The canonical ESP/AntiInvis reads (invisibility flag, name-tag index) do not appear in the 8 clients; their renderers read entity fields after the vanilla handler applies S1C. The real hits: Rise 5.99 EagleA reads the sneak byte from the WatchableObjects, the only genuine module consumer; Sigma 4.11 AutoPot and InventoryManager import the class but never process it, polling isPotionActive and inventoryContainer on EventUpdate instead, so both imports are dead code; Rise 6.x PingSpoofComponent classifies S1C in its regular tuple, delayed with C0F and C00 during spoof, and NetworkAPI whitelists it for scripts.

Exploit surface

Metadata is read-only intelligence: 1.8.9 has no serverbound metadata packet, so the stream is the only place the server's view of entity state leaks back to the client. That makes it the natural feed for anti-invis and name-tag modules, and its absence in these 8 clients is a design choice, not a protocol limitation. The sneak flag is the load-bearing bit for anticheats: eagle checks (Rise 5.99) read it against the S14 ground state, and any client that spoofs sneak serverbound via C0B must keep the server-visible flag consistent or the mismatch is a flag.

Server-Side Handling

Clientbound only. EntityTrackerEntry sends the full DataWatcher on tracking start and incremental entries on change; the client merges them via updateWatchedObjectsFromList. Index 0 byte flags encode sneaking (bit 1), sprinting (bit 3), invisible (bit 5) and riding (bit 6). No validation is applied to incoming values, so a malicious server can inject arbitrary metadata, which is why clients that care about server-side state reads (name tags, invisibility) consume it defensively.

Protocol Analysis

The packet carries a VarInt entityId followed by the DataWatcher serialization: repeated (index byte, type byte, value) triples terminated by 127, with an empty list meaning no changes. A full dump is flagged server-side by the boolean constructor argument (true on tracking start). Sneak is bit 1 of the flags byte, which decodes to exactly 2 when it is the only set bit, matching EagleA's equality check. Metadata changes do not touch position or rotation, so the packet interleaves freely with the S14/S18 stream.

Anti-Cheat Landscape

The sneak flag is the anticheat-relevant field: eagle and shift-tap checks correlate the flag with S14 ground transitions, and the Rise 5.99 EagleA check flags a sneak byte that appears within two ticks of walking off a ledge. Server anticheats compare the sneak flag against serverbound C0B sneak actions; a client whose metadata-visible sneak disagrees with its C0B stream leaks the discrepancy. Everything else in the packet (name tags, health) is cosmetic to anticheats.

implementation Implementation Cases

The metadata stream is the server's mirror of entity state, but only one module in the corpus genuinely reads it: Rise 5.99's EagleA, which checks the sneak flag byte. Sigma's AutoPot and InventoryManager carry dead imports, and Rise 6.x classifies the packet for ping-spoof delay and scripts.

EagleA (Rise 5.99)

Detect eagle (auto-sneak at block edges) by reading the sneak flag byte out of the tracked player's metadata stream.

On S14 relative moves it sets shouldEagle when the packet's onGround flag is true and the block below the reconstructed position is air, then counts ticks. On S1CPacketEntityMetadata for the tracked player it scans the WatchableObjects for a Byte whose value is exactly 2 (the sneak bit alone), and if shouldEagle is set with ticks <= 2 it increases the buffer and fails past 10; otherwise the buffer decays by 5.

Source: Rise 5.99, dev/rise/anticheat/check/impl/other/eagle/EagleA.java

Vanilla hook: Raw packet stream via PlayerData.handle (S14 and S1C).
This is Rise's own client-side anticheat check. The equality check (byte == 2) only fires when sneak is the sole flag set, which misses combos (sneak + invisible), a blind spot of the shipped check.
Variations: EagleA is the only check in the Rise 5.99 anticheat that consumes S1C; the S14 branch it shares with KeepSprintA, SpeedA and GroundSpoofA/B is documented under S14PacketEntity.
AutoPot / InventoryManager (Sigma 4.11)

Corpus hit is an import only: both modules import S1CPacketEntityMetadata but no shipped handler branches on it.

AutoPot registers only EventUpdate and decides when to drink from mc.thePlayer.isPotionActive and getHealth, then pots by swapping, sending C05 look and C08 placement. InventoryManager likewise registers only EventUpdate and manages inventoryContainer slots. The metadata import is a development leftover from an earlier design that read potion or armor state from the watcher stream; the shipped logic polls local state instead, which is equivalent because the vanilla handler already applied S1C to the entity.

Source: Sigma 4.11, info/sigmaclient/module/impl/combat/AutoPot.java

Vanilla hook: EventUpdate only; the S1C import is unused.
Dead imports have no detection surface. The honest takeaway is that Sigma's potion logic trusts local entity state, which the server already keeps consistent via S1C.
Variations: InventoryManager (info/sigmaclient/module/impl/player/InventoryManager.java, 498 lines) carries the same dead import and the same EventUpdate-only design; AutoArmor in the same client shares the pattern.
Rise 5.99 anticheat consumes S1C through PlayerData.handle; Rise 6.x components hook it via the packet event system for classification.
Rise 5.99 reads the WatchableObjects list via func_149376_c and iterates raw objects; Rise 6.x never reads fields, only classifies the packet class. Sigma's modules import the class without using it, which the corpus confirms by the absence of any EventPacket registration for S1C.

anticheat Anti-Cheat Checks

The metadata packet is the server's mirror of entity state, and anticheats read it for two reasons: to keep the player's own simulation state honest (sneak, gliding, pose, sleeping) and to hide or rewrite health information so clients cannot exploit it. The corpus splits into self-metadata listeners (Grim PacketSelfMetadataListener, intave MetadataTracker), a health rewrite check (Kauri HealthSpoof, disabled), Photon's damage-hiding module, and wrapper layers (FlopAC). The sneak and health indexes are the only fields any check actually touches.

HealthSpoof (health metadata rewrite) (funkemunky-KauriV3)

Rewrite the health metadata entry (index 6, float) to 1.0 for other entities so clients cannot read real health values; the shipped check is disabled and the handler is commented out.

The commented @Bind handler intercepts WrapperPlayServerEntityMetadata, skips the viewer's own entity, copies the metadata list, and replaces any float entry at index 6 with 1.0f, then sends the rewritten packet silently. With the block disabled the check registers nothing.

Detects: Would prevent health-reading and health-based combat modules that rely on the client-visible metadata health; in the shipped source it is dead code.

Source: funkemunky-KauriV3, Anticheat/src/main/java/dev/brighten/ac/check/impl/misc/HealthSpoof.java

Variations: Photon's DamageIndicator implements the same idea live, rewriting health to 0.5 for entities other than the viewer, and additionally rewrites the generic.maxHealth attribute in S20. No other anticheat in the corpus rewrites metadata health.
PacketSelfMetadataListener (self metadata into simulation) (GrimAnticheat-Grim)

Read metadata sent to the checked player and fold flags, pose, gravity, frozen and use-item state into the prediction simulation, timestamped by transaction.

On ENTITY_METADATA for the player's own entity id, the listener strips the pose entry on 1.14+ clients, reads the flags byte for gliding, swimming and sprinting bits, the gravity boolean, powder-snow frozen ticks, bed position and the use-item/riptide byte, and applies each via latencyUtils real-time tasks anchored to the last transaction. The strip of pose metadata keeps old clients from receiving state that would desync their movement model.

Detects: Pose and state desync that would otherwise poison movement prediction; also protects the simulation from metadata the client version cannot represent.

Source: GrimAnticheat-Grim, common/src/main/java/ac/grim/grimac/events/packets/PacketSelfMetadataListener.java

Variations: intave's MetadataTracker covers the same ground for bed position, gliding and pose with a packet-tick feedback wrapper; Grim's EntityMetadataPoseUtil resolves the pose metadata index per entity type.
MetadataTracker (sleep, gliding, pose state) (intave-intave)

Extract sleeping bed position, gliding flag and pose from the self entity's metadata so the movement simulation knows the player's physical state.

The tracker subscribes to the ENTITY_METADATA packet, reads the bed position entry, the gliding bit of the flags byte and the pose entry (1.14+), and applies them through user.packetTickFeedback. A bed position re-anchors the player's position to the bed coordinates, which is the only legitimate teleport-free position reset in the protocol.

Detects: Simulation divergence caused by stale sleep, gliding or pose state; the extracted state feeds the physics search that flags movement impossibilities.

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

Variations: Grim's PacketSelfMetadataListener applies the same fields with transaction-anchored tasks. The EntityMetadataReader class in the corpus is the reader this tracker drives.
DamageIndicator (health metadata hiding) (Photon-GitHub-AntiCheatAddition)

Spoof the health metadata of entities other than the viewer so clients cannot learn real health from the metadata stream.

The module subscribes to ENTITY_METADATA and UPDATE_ATTRIBUTES. On metadata it rewrites any float entry at the version-specific health index to 0.5, skipping the viewer's own entity and dead entities; on attributes it rewrites generic.maxHealth to 1.0 and clears its modifiers. Entity types are filtered by config (players versus others), with ender dragon and wither exempt.

Detects: Prevents health-reading combat aids and health-based decision making in killaura modules.

Source: Photon-GitHub-AntiCheatAddition, src/main/java/de/photon/anticheataddition/modules/additions/DamageIndicator.java

Variations: Kauri's HealthSpoof is the same idea but disabled; the S20 half of this module (max-health rewrite) is noted under S20PacketEntityProperties.
WrappedOutEntityMetadata (metadata wrapper) (JTXOfficial-FlopAC)

Tinyprotocol wrapper exposing the entity id and watchable-object list of the S1C packet to FlopAC's packet layer.

The wrapper resolves the watchableObjects and entityid fields via reflection, copies the watchable list, and can rebuild the packet from an entity id and object list via setPacket. FlopAC's processors consume entity state through wrappers like this one.

Detects: Nothing directly; infrastructure.

Source: JTXOfficial-FlopAC, src/main/java/me/jtx/flopac/tinyprotocol/packet/out/WrappedOutEntityMetadata.java

Variations: Artemis and FlopAC both ship generic packet layers; Artemis additionally reads the metadata into its emulator through EmulatorPreProcessor.

Wiki Cross-Reference

Any metadata properties not included in the packet are left unchanged on the client rather than reset.

MCP 1.8.9 S1CPacketEntityMetadata implements Packet dispatching to INetHandlerPlayClient.handleEntityMetadata; wire serde is readPacketData/writePacketData via readVarIntFromBuffer.

1.8.9 callers: EntityTrackerEntry.sendMetadataToAllAssociatedPlayers sends new S1CPacketEntityMetadata (line 314): 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.

Module Analyses Using S1CPacketEntityMetadata

Full source walkthroughs of the modules and anti-cheats that use this packet.