0x19 S19PacketEntityStatus

Sends a status event for an entity (death sound, hurt effect, taming, wolf shaking, etc.).

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

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

entitystatusevent
Comprehensive 8/8

Fields

FieldTypeDescription
entityIdVarIntEntity ID
statusbyteStatus code

Wire Encoding

FieldTypeNotes
Entity IDVarInt
StatusbyteEvent code

MCP References

MCPNetHandlerPlayClient.handleEntityStatus()

Handler Interface

HNDINetHandlerPlayClient

Notes

Status codes: 2=hurt, 3=death, 6=taming, 7=tamed, 8=shaking, 9=hearts, 10=wolfSmoke, 11=accept, 12=witherSpawn, 15=redstoneTorches, 16=ironGolem, 17=sheepEat, 18=trueGod, 19=endermanScream, 20=zombieVillagerCure, 21=guardianElder, 22=petWolf, 23=zombieVillagerReplacing, 24=arrowCount, 25=particles, 26=thorns, 27=snowParticles, 28=shulkerTeleport, 29=ironGolemGiveRose.

Vanilla Source

S19PacketEntityStatus.java60 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.server;
2
3
import java.io.IOException;
4
import net.minecraft.entity.Entity;
5
import net.minecraft.network.Packet;
6
import net.minecraft.network.PacketBuffer;
7
import net.minecraft.network.play.INetHandlerPlayClient;
8
import net.minecraft.world.World;
9
10
public class S19PacketEntityStatus implements Packet<INetHandlerPlayClient>
11
{
12
    private int entityId;
13
    private byte logicOpcode;
14
15
    public S19PacketEntityStatus()
16
    {
17
    }
18
19
    public S19PacketEntityStatus(Entity entityIn, byte opCodeIn)
20
    {
21
        this.entityId = entityIn.getEntityId();
22
        this.logicOpcode = opCodeIn;
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.entityId = buf.readInt();
31
        this.logicOpcode = buf.readByte();
32
    }
33
34
    /**
35
     * Writes the raw packet data to the data stream.
36
     */
37
    public void writePacketData(PacketBuffer buf) throws IOException
38
    {
39
        buf.writeInt(this.entityId);
40
        buf.writeByte(this.logicOpcode);
41
    }
42
43
    /**
44
     * Passes this Packet on to the NetHandler for processing.
45
     */
46
    public void processPacket(INetHandlerPlayClient handler)
47
    {
48
        handler.handleEntityStatus(this);
49
    }
50
51
    public Entity getEntity(World worldIn)
52
    {
53
        return worldIn.getEntityByID(this.entityId);
54
    }
55
56
    public byte getOpCode()
57
    {
58
        return this.logicOpcode;
59
    }
60
}

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

Deep Dive

Role in the protocol

S19PacketEntityStatus carries a single opcode byte for one entity: the client-bound event channel for hurt (2), death (3), wolf taming, hearts, wither spawn and a dozen more codes. The server broadcasts it through WorldServer.setEntityState, which routes to the entity tracker (corpus line 880), and EntityPlayerMP sends code 9 to the player itself (line 893). For a cheat client the only actionable signal is the hurt/death transition of the local player, which is why the sole module consumer is a velocity module.

Vanilla handling

NetHandlerPlayClient.handleEntityStatus (Memeware 7.3 bundle, line 897) special-cases opcode 21 (guardian sound) and otherwise forwards the code to entity.handleHealthUpdate, which plays the hurt/death sounds, wolf effects, totem-like particles and so on. The handler is a pure dispatch table: no state is stored, no position is involved.

Why clients touch it

The corpus has exactly one module consumer: Rise 6.x GrimVelocity, in both 6.1.30 and 6.2.4, which uses opcode 2 (hurt) on the local player as the precondition for cancelling the following S12 velocity. Rise's NetworkAPI whitelists the packet for scripts in both versions. Memeware, Nekoware, Sigma, Spicy and Tenacity reference it only through the vanilla handler. The thinness is structural: the packet has no position or rotation data, so movement, render and combat modules have nothing to consume; only the hurt-to-knockback contract matters.

Exploit surface

The S19(2) then S12 pairing is the knockback contract: the server announces damage, then the velocity that results from it. Cancelling S12 after seeing the hurt status is the classic velocity bypass, and GrimVelocity hardens it by sending a C07 dig packet at the player's own position on the next PreUpdate, so the server observes a legitimate block interaction on the damaged tick instead of a missing motion change. Anticheats that detect velocity cancel measure the absent motionY after a confirmed hurt status; the dig packet is the counter because it gives the server an acceptable action to attach the tick to.

Server-Side Handling

Clientbound only. WorldServer.setEntityState broadcasts the opcode through the entity tracker to every tracking player; EntityPlayerMP sends code 9 (the eating effect) to the player directly. The client dispatch is entity.handleHealthUpdate with a special case for 21. There is no per-player state kept on either side; the packet is a one-shot event.

Protocol Analysis

VarInt entityId plus one unsigned byte opcode. The opcode set is defined by Entity.handleHealthUpdate: 2 = hurt, 3 = death, 6 = taming, 7 = tamed, 8 = wolf shaking, 9 = eating, 10 = wolf smoke, 11 = accept, 12 = wither spawn, 15 = redstone torches, 16 = iron golem, 17 = sheep eating, 19 = enderman scream, 20 = zombie villager cure, 21 = guardian elder, 22 = pet wolf, 24 = arrow count, 26 = thorns, 27 = snow particles, 28 = shulker teleport, 29 = iron golem rose. The opcode for the local player arrives on the same connection as the S12 that follows.

Anti-Cheat Landscape

Velocity detection is the only anticheat interaction: the hurt status confirms damage, and the subsequent S12 must produce the expected motion change. Cancelling S12 without a substitute is the classic flag; GrimVelocity's substitute is the C07 dig at the player's own position, which the server processes as a normal block interaction. Server anticheats cannot see the client's S19 handling at all, so the entire exploit surface is the S12 side of the pairing.

implementation Implementation Cases

The status opcode channel is nearly invisible to the 8 clients: one module, GrimVelocity in Rise 6.x, uses opcode 2 as the trigger for a velocity bypass, and the script API whitelists it. Everything else in the corpus is the vanilla dispatch handler.

GrimVelocity (Rise 6.1.30, Rise 6.2.4)

Grim-targeted velocity bypass: cancel the knockback S12 after confirming the hurt status, then emit a benign C07 dig so the damaged tick still carries a legitimate server action.

A VERY_LOW priority PacketReceiveEvent handler checks S19PacketEntityStatus first: when the entity is the local player and the opcode is 2, it sets realVelocity. The next S12PacketEntityVelocity for the local player is then cancelled, realVelocity clears and velocity is set. On the following PreUpdateEvent, if velocity is set, it sends C07PacketPlayerDigging (START_DESTROY_BLOCK while looking at a block and swinging, otherwise STOP_DESTROY_BLOCK) at the player's own position and clears the flag.

Source: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/module/impl/combat/velocity/GrimVelocity.java

Vanilla hook: PacketReceiveEvent (VERY_LOW), PreUpdateEvent.
The hurt-status gate prevents cancelling velocities that never arrived. The C07 dig at the player's own feet is a no-op block action that still registers server-side, giving the anticheat a legitimate interaction instead of a bare missing knockback.
Variations: Identical in Rise 6.1.30 and 6.2.4 (same package com/alan/clients/module/impl/combat/velocity).
PacketReceiveEvent in Rise 6.x; no other hook exists in the corpus.
Only Rise 6.x touches the packet outside vanilla. The 6.1.30 and 6.2.4 GrimVelocity files are identical apart from the corpus path prefix.

anticheat Anti-Cheat Checks

The status opcode channel has no server-side check surface: the only corpus references are Artemis's packet wrapper and MinecraftAntiCheat's NPC utility, which emits status packets to animate fake players. The opcode byte matters to clients (hurt, death, taming), but anticheats never branch on it. This is one of the thinnest packets in the entity family.

GPacketPlayServerEntityStatus (packet wrapper) (artemisac-artemis-minecraft-anticheat)

Wrap the entity status packet in Artemis's packet layer; the wrapper reads the entity id and the opcode byte.

The class binds to PacketPlayServerEntityStatus via @PacketLink, reads entityId as an int and logicOpcode as a byte from the buffer, and stores them as fields for any consumer.

Detects: Nothing; the fields are exposed but no Artemis check reads them.

Source: artemisac-artemis-minecraft-anticheat, ac.artemis.packet.spigot/src/main/java/cc/ghast/packet/wrapper/packet/play/server/GPacketPlayServerEntityStatus.java

Variations: The wrapper mirrors the generic GPacket pattern; the head-rotation wrapper in the same package carries an empty read.
NPC status emission (fake player lifecycle) (network-dev-MinecraftAntiCheat)

Send entity status packets for fake players so they show hurt and death effects like real players during staff testing.

setStatus(byte) builds a PacketPlayOutEntityStatus, sets the entity id and status fields by reflection, and sends it; the NPCStatus enum wraps the opcode ids. The packet is only ever emitted for NPCs created by the anticheat's staff tools.

Detects: Nothing; the emission exists so NPCs behave like players for testing killaura and reach checks.

Source: network-dev-MinecraftAntiCheat, src/main/java/me/sendpacket/anticheat/anticheat/Utils/NPC.java

Variations: PeyangSuperbAntiCheat does not send status packets for its NPCs; it animates them with teleport and head-rotation packets instead.

Wiki Cross-Reference

Clientbound 0x19: int entityId plus one opcode byte handled by Entity.handleHealthUpdate.

Opcode 2 is hurt and 3 is death; others cover taming, wolves, wither spawn and particles.

One-shot event with no ack; hurt status arrives just before S12 velocity on damage.

MCP 1.8.9 S19PacketEntityStatus implements Packet dispatching to INetHandlerPlayClient.handleEntityStatus; wire serde is readPacketData/writePacketData via readByte, readInt.

1.8.9 callers: CommandGameRule.func_175773_a sends new S19PacketEntityStatus (line 83) +2 more: https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/command/CommandGameRule.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 S19PacketEntityStatus

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