0x06 S06PacketUpdateHealth

Updates the player's health, food level, and saturation. Sent ~20 times per second during combat.

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

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

playerhealthfoodcombat
Comprehensive 8/8

Fields

FieldTypeDescription
healthfloatCurrent health (0.0-20.0). ≤ 0.0 = death screen.
foodLevelVarIntCurrent food level (0-20)
saturationLevelfloatFood saturation (0.0-5.0)

Wire Encoding

FieldTypeNotes
Healthfloat0.0-20.0
FoodVarInt0-20
Saturationfloat0.0-5.0

MCP References

MCPNetHandlerPlayClient.handleUpdateHealth()

Handler Interface

HNDINetHandlerPlayClient

Notes

When health ≤ 0, the client shows the death screen overlay and sends C16PacketClientStatus(PERFORM_RESPAWN) on respawn button click.

Vanilla Source

S06PacketUpdateHealth.java67 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.server;
2
3
import java.io.IOException;
4
import net.minecraft.network.Packet;
5
import net.minecraft.network.PacketBuffer;
6
import net.minecraft.network.play.INetHandlerPlayClient;
7
8
public class S06PacketUpdateHealth implements Packet<INetHandlerPlayClient>
9
{
10
    private float health;
11
    private int foodLevel;
12
    private float saturationLevel;
13
14
    public S06PacketUpdateHealth()
15
    {
16
    }
17
18
    public S06PacketUpdateHealth(float healthIn, int foodLevelIn, float saturationIn)
19
    {
20
        this.health = healthIn;
21
        this.foodLevel = foodLevelIn;
22
        this.saturationLevel = saturationIn;
23
    }
24
25
    /**
26
     * Reads the raw packet data from the data stream.
27
     */
28
    public void readPacketData(PacketBuffer buf) throws IOException
29
    {
30
        this.health = buf.readFloat();
31
        this.foodLevel = buf.readVarIntFromBuffer();
32
        this.saturationLevel = buf.readFloat();
33
    }
34
35
    /**
36
     * Writes the raw packet data to the data stream.
37
     */
38
    public void writePacketData(PacketBuffer buf) throws IOException
39
    {
40
        buf.writeFloat(this.health);
41
        buf.writeVarIntToBuffer(this.foodLevel);
42
        buf.writeFloat(this.saturationLevel);
43
    }
44
45
    /**
46
     * Passes this Packet on to the NetHandler for processing.
47
     */
48
    public void processPacket(INetHandlerPlayClient handler)
49
    {
50
        handler.handleUpdateHealth(this);
51
    }
52
53
    public float getHealth()
54
    {
55
        return this.health;
56
    }
57
58
    public int getFoodLevel()
59
    {
60
        return this.foodLevel;
61
    }
62
63
    public float getSaturationLevel()
64
    {
65
        return this.saturationLevel;
66
    }
67
}

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

Deep Dive

Role in the protocol

The player's authoritative health, food and saturation sync. EntityPlayerMP sends it on join and on every health, food or saturation change (line ~382), which in combat means roughly once per damage tick. The wire carries a float health (0-20, 0.0 means dead), a VarInt food level and a float saturation. The client treats it as truth: it drives the hearts, the hunger bar and the death screen, and there is no serverbound health packet, so the client cannot push health back.

Vanilla handling

handleUpdateHealth writes the three values into EntityPlayerSP (setPlayerSPHealth, foodStats) and, when health is at or below 0, arms the death-screen state. Respawn itself is a separate round trip: the button click sends C16PacketClientStatus with PERFORM_RESPAWN and the server answers with S07PacketRespawn. Because S06 is receive-only, every client-side health read is a mirror of the last packet.

Why clients touch it

The corpus shows two live integrations and one dead one. Sigma 4.11 Ranking treats S06 as a damage-confirmation clock: a health drop triggers a scan of loaded players for a swing animation within the last 70 ms and 9 blocks, which is how its hidden telemetry attributes deaths. Rise 6.1.30/6.2.4 StaffDetector carries an S06 branch that is fully commented out, and Sigma 4.11 HitIndicator imports the packet but leaves its packet branch empty. The classic Regen/AutoPot/AutoSoup family that keys off S06 thresholds in other client generations does not appear here; in these 8 clients those modules poll local health on UpdateEvent instead.

Exploit surface

The classic abuse is receive-side cancellation: a module that swallows S06 never learns it died, so the death screen never shows while the server keeps sending damage updates and eventually kicks the dead player. No module in the corpus does this. Anti-cheats flag nothing on S06 because the client cannot influence it; the only measurable cost is bandwidth during high-tick combat.

Server-Side Handling

EntityPlayerMP pushes S06PacketUpdateHealth(health, foodLevel, saturation) whenever the player's stats change (line ~382 in the MCP builds), which covers join, damage, regeneration, hunger and saturation drift. The server never validates the packet stream because it is the sole author; the values are copied verbatim from the player's own stats. The death path is two-sided: the client arms the death screen from S06 health <= 0, and the respawn is driven by the client's C16 PERFORM_RESPAWN.

Protocol Analysis

Fields in order: float health, VarInt food, float saturation. There is no serverbound health packet, so any module that wants to fake health must do it by suppressing the clientbound packet (cosmetic only) or by manipulating the server's damage logic through other packets. S06 arrives on the main thread and its writes are unconditional, so a cancelling module must intercept before the vanilla handler.

Anti-Cheat Landscape

Anti-cheats treat S06 as render-state sync and measure nothing on it; the client cannot spoof health serverbound, so there is no flag surface. The practical detection risk belongs to modules that act on S06 (Sigma Ranking's HTTP telemetry, Rise's commented staff heuristic), which are privacy/ToS concerns rather than movement or combat flags.

implementation Implementation Cases

The client's only authoritative health source, sent on join and on every damage, food or saturation change. The corpus uses it as a damage-confirmation clock (Sigma Ranking telemetry) and as abandoned scaffolding (Rise StaffDetector, Sigma HitIndicator); the Regen/AutoPot threshold pattern is absent from these 8 clients, which poll local health on ticks instead.

Ranking (Sigma 4.11)

Hidden combat telemetry that uses S06 health drops to attribute deaths and prosecutions to specific players.

On EventPacket, when S06 reports health at or below the client's current health, Ranking scans the loaded entity list for players that are not the local player, have a swing animation (S0BPacketAnimation) timestamp within the last 70 ms and sit within 9 blocks; each match becomes a prosecutor entity. health <= 0 calls onDeath, which resolves outstanding kill/death records and ships them through sendStat. The S06 packet is the timing anchor: the 70 ms window is measured from animation timestamp to damage confirmation.

Source: Sigma 4.11, info/sigmaclient/module/impl/other/Ranking.java

Vanilla hook: EventPacket, registered alongside EventAttack and EventUpdate.
Unobservable: the module only reads clientbound state. The telemetry itself (HTTP stats reporting) is a privacy/ToS concern, not an anti-cheat one.
Variations: Sigma 4.11 HitIndicator imports S06 but its EventPacket branch is empty, so the import is dead. No other client in the corpus uses S06 for telemetry.
StaffDetector (Rise 6.1.30, Rise 6.2.4)

Detect staff players from team and tab-list names and auto-run /hub; the S06 reference is commented-out scaffolding, not live logic.

The packet listener matches names from S3EPacketTeams and S38PacketPlayerListItem against a hardcoded staff table (one comma-separated string of roughly 150 names) and triggers after 6 matches, sending /hub via C01 when autoLeave is on. The S06PacketUpdateHealth block exists only inside a comment, an abandoned idea that never shipped in either build.

Source: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/module/impl/exploit/StaffDetector.java

Vanilla hook: PacketReceiveEvent (plus PreMotionEvent to decay the match counter).
None: the module consumes clientbound packets and sends ordinary chat. The hardcoded staff list is a maintenance liability, not a flag.
Variations: Rise 6.1.30 ships the same file with the same commented S06 block; the 6.2.4 copy is identical in the relevant region. Neither build ever enabled the health branch.
Sigma uses EventPacket with instanceof dispatch; Rise uses PacketReceiveEvent listeners. Both only read S06; no serverbound traffic is generated by S06 handling in either module.
Sigma's event model is a single registered onEvent switch over EventAttack/EventPacket/EventUpdate; Rise uses per-listener @EventLink fields. Both treat S06 as pure input, which keeps the cross-client story simple.

anticheat Anti-Cheat Checks

The update-health packet is server-authored, so anticheats cannot see a client-spoofed health value; what they can see is the server's own health bookkeeping around it. Modern anticheats parse WrapperPlayServerUpdateHealth on the send side to track death and food state (Grim, BetterAnticheat), while regen and god-mode checks watch EntityRegainHealthEvent and damage events to catch fast-heal and damage suppression (Negativity, Arc, NoCheatPlus, Daedalus, ThotPatrol, MIU). The packet itself is never flagged; it is the reference clock for health-related checks.

UpdateHealth death tracking (BetterAnticheat) (amnoah-BetterAnticheat)

Track the client-visible death state from the update-health payload and the client's own respawn acknowledgement.

PlayerStatusTracker.handlePacketPlaySend wraps UPDATE_HEALTH as WrapperPlayServerUpdateHealth and, inside a confirmation transaction, pushes isDead = (health == 0) into a ten-slot BooleanManyState that flushes only after the client confirms the packet. The receive side mirrors it: a CLIENT_STATUS PERFORM_RESPAWN pushes isDead = false and flushes four slots at once, deliberately wiping stale death states to defeat disablers that delay selected responses.

Detects: Death-state desync: a client that selectively delays packet responses to hide its own death or respawn timing from the anticheat.

Source: amnoah-BetterAnticheat, core/src/main/java/better/anticheat/core/player/tracker/impl/PlayerStatusTracker.java

Variations: Grim does the same tracking in PacketPlayerRespawn: it stores lastHealth, lastFood and lastSaturation, marks the simulated self entity dead when health reaches zero and feeds BadPacketsM.onDeath; Artemis mirrors health into its emulator through BntityPlayerSP.setPlayerSPHealth.
Regen (Negativity) (Elikill58-Negativity)

Flag fast regeneration: health regaining faster than the version's natural regen interval allows.

RegenProtocol.onRegen listens to EntityRegainHealthEvent for players. It skips players with active regen-affecting potions, records the time between regains and flags when the gap is below the version's timeBetweenTwoRegen plus ping (per-version table in Version). A gap under 50 ms plus ping is a hard violation, and the event is cancelled when setbacks are enabled. The protocol also tags the player's flying reason on golden-apple interactions so movement checks can discount regen-based vertical motion.

Detects: Auto-regen modules and fast-heal packets that produce health regains faster than the per-version interval tables permit.

Source: Elikill58-Negativity, src/com/elikill58/negativity/spigot/protocols/RegenProtocol.java

Variations: Arc-v2 Regeneration compares the last health event against a configurable regen-time (3400 ms default); Daedalus Regen and ThotPatrol BadPacketsA use the same SATIATED-reason timing pattern; MIU FastHealA computes the expected interval from the player's health level and regen potion stage.
Regeneration (Arc v2) (Vrekt-Arc-v2)

Classic satiated-regen rate check: health must not regenerate faster than the configured interval.

FightListener.onRegen records the SATIATED regain timestamp into FightData when the check can run; Regeneration.check computes now minus lastHealthEvent and fails when the gap is below the regen-time value read from the check config (3400 ms default). It is one of the smallest checks in the corpus: a timestamp, a subtraction and a threshold.

Detects: Fast-regen modules that exploit the satiated regeneration mechanic.

Source: Vrekt-Arc-v2, src/main/java/me/vrekt/arc/check/combat/Regeneration.java

Variations: Negativity RegenProtocol adds per-version tables and potion exemptions; Daedalus Regen and ThotPatrol BadPacketsA count packets between regains; NoCheatPlus tracks regainHealthTime in FightData and feeds it into GodMode's expectation model.
GodMode (NoCheatPlus) (Updated-NoCheatPlus-NoCheatPlus)

Detect players that ignore inflicted damage or keep an impossible health ceiling across regen and damage events.

GodMode.check runs on damage events against FightData bookkeeping: regainHealthTime is stamped by FightListener.onEntityRegainHealth, godModeHealth tracks the highest health the player has held, and the check flags when current health stays above the expected post-damage value or when no damage lands despite a hit. The regain-tracking variant is what the corpus shows; the original 2012-era sensitivity path is marked as likely obsolete in the source.

Detects: God-mode exploits, damage suppression and health-ceiling manipulation around combat.

Source: Updated-NoCheatPlus-NoCheatPlus, NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/fight/GodMode.java

Variations: Kauri HealthSpoof is the modern replacement pattern; MIU AntiDamageA compares post-damage health against the expected drop; Daedalus Regen watches only the regain rate.

Wiki Cross-Reference

Food saturation acts as a food overcharge so food values do not decrease while saturation is above zero.

New or respawning players automatically get a saturation of 5.0, and eating food raises saturation as well as the food bar.

MCP 1.8.9 S06PacketUpdateHealth implements Packet dispatching to INetHandlerPlayClient.handleUpdateHealth; wire serde is readPacketData/writePacketData via readFloat, readVarIntFromBuffer.

1.8.9 callers: EntityPlayerMP.onUpdateEntity sends new S06PacketUpdateHealth (line 403): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/entity/player/EntityPlayerMP.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.