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
playerhealthfoodcombat

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.

implementation Implementation Cases

AutoRespawn (Tenacity 5.1, Sigma 3.9, Gugustus)

Detect health changes. AutoRespawn triggers on health<=0. AutoPot uses health thresholds. GodMode cancels health update.

Vanilla hook: EventReceivePacket
AutoPot (Tenacity 5.1, Sigma 3.9, Gugustus)

Detect health changes. AutoRespawn triggers on health<=0. AutoPot uses health thresholds. GodMode cancels health update.

Vanilla hook: EventReceivePacket
Regen (Tenacity 5.1, Sigma 3.9, Gugustus)

Detect health changes. AutoRespawn triggers on health<=0. AutoPot uses health thresholds. GodMode cancels health update.

Vanilla hook: EventReceivePacket
GodMode (Tenacity 5.1, Sigma 3.9, Gugustus)

Detect health changes. AutoRespawn triggers on health<=0. AutoPot uses health thresholds. GodMode cancels health update.

Vanilla hook: EventReceivePacket
← Back to all packets