0x19 S19PacketEntityHeadLook

Updates an entity's head yaw rotation independently of body rotation.

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

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

entityrotationhead
Comprehensive 8/8

Fields

FieldTypeDescription
entityIdVarIntEntity ID
headYawbyteHead yaw × 256/360

Wire Encoding

FieldTypeNotes
Entity IDVarInt
Head Yawbyteyaw * 256/360

MCP References

MCPNetHandlerPlayClient.handleEntityHeadLook()

Handler Interface

HNDINetHandlerPlayClient

Notes

Head yaw is separate from body yaw, so entities can look in a different direction than they're moving. Used by Backtrack modules to track the full entity rotation, and by ESP modules for accurate head-position aim prediction.

Vanilla Source

S19PacketEntityHeadLook.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 S19PacketEntityHeadLook implements Packet<INetHandlerPlayClient>
11
{
12
    private int entityId;
13
    private byte yaw;
14
15
    public S19PacketEntityHeadLook()
16
    {
17
    }
18
19
    public S19PacketEntityHeadLook(Entity entityIn, byte p_i45214_2_)
20
    {
21
        this.entityId = entityIn.getEntityId();
22
        this.yaw = p_i45214_2_;
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.readVarIntFromBuffer();
31
        this.yaw = 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.writeVarIntToBuffer(this.entityId);
40
        buf.writeByte(this.yaw);
41
    }
42
43
    /**
44
     * Passes this Packet on to the NetHandler for processing.
45
     */
46
    public void processPacket(INetHandlerPlayClient handler)
47
    {
48
        handler.handleEntityHeadLook(this);
49
    }
50
51
    public Entity getEntity(World worldIn)
52
    {
53
        return worldIn.getEntityByID(this.entityId);
54
    }
55
56
    public byte getYaw()
57
    {
58
        return this.yaw;
59
    }
60
}

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

Deep Dive

Role in the protocol

S19PacketEntityHeadLook updates only the head yaw of an entity, independent of the body yaw carried by S16/S17. The wire format is a VarInt entityId plus one byte decoded as yaw * 360 / 256. The server sends it whenever the head rotation changes: EntityTrackerEntry broadcasts it to tracked players (corpus line 236, sendPacketToTrackedPlayers(new S19PacketEntityHeadLook(trackedEntity, (byte) l))) while body rotation travels in the S14 family. It is the only rotation packet keyed to the head rather than the body.

Vanilla handling

NetHandlerPlayClient.handleEntityHeadLook (Memeware 7.3 bundle, line 573) resolves the entity and calls setRotationYawHead(yaw * 360 / 256.0F). Only yaw is transmitted; the head pitch is derived from the body pitch at render time, and the model's head mesh rotates around the neck joint using this value. The body rotation is untouched, which is why a player can look sideways while running straight.

Why clients touch it

None of the 8 clients has an ESP, Tracers or KillAura module that reads S19. The corpus consumers are all Rise 6.x infrastructure and one velocity module: WatchdogVelocity includes S19 in the spoof packet set so a held head-look update completes the backtrack illusion, PingSpoofComponent classifies it in the players tuple (delayed with the S14 family and S18), the translation PacketType maps ENTITY_HEAD_LOOK into the position cache, and NetworkAPI whitelists it for scripts in both 6.1.30 and 6.2.4. Renderers skip it because aim indicators are derived from body yaw/pitch in S16/S17; head yaw only affects the model mesh.

Exploit surface

The packet is cosmetic clientbound state with no serverbound counterpart and no server-side validation, so there is no direct abuse. The interesting quirk is in the translation cache: ENTITY_HEAD_LOOK writes the decoded head yaw into the Position.yaw slot while keeping pitch, so the cached orientation becomes the head yaw until the next S16/S17 overwrites it. Any aim or rotation math fed from that cache inherits the error. Backtrack modules that hold S19 along with the movement set produce the visible frozen-head artifact, which is a staff-visible tell rather than a detection risk.

Server-Side Handling

Clientbound only. The server emits it from EntityTrackerEntry when the tracked entity's head yaw changes, and the client applies it as setRotationYawHead with the * 360 / 256 decode. There is no rate limit or validation; a server can spam it harmlessly. The client-side consequence is limited to the model's head rotation and any module that consumes rotation state.

Protocol Analysis

Single byte angle, decode yaw * 360 / 256.0F. Body yaw lives in S16/S17; head yaw lives here; the two can differ by up to 180 degrees for a player looking over the shoulder. S19 arrives at the same tracking cadence as the S14 family and typically interleaves with it. The translation cache's ENTITY_HEAD_LOOK handler overwrites the yaw slot, so cached positions diverge from vanilla rotation semantics until the next look packet.

Anti-Cheat Landscape

No server anticheat consumes head yaw; killaura rotation-sync detection works on the serverbound C05/C06 look packets, not on this clientbound announcement. For cheat clients the only relevance is fidelity: backtrack and reach modules that reconstruct entity state must either include S19 in the held set (WatchdogVelocity) or accept that the reconstructed orientation drifts. There is no flag surface, only visual artifacts.

implementation Implementation Cases

The head-look packet is the least-touched entity packet in the corpus: no renderer or aim module in the 8 clients reads it. It survives only in Rise 6.x packet-classification components (PingSpoofComponent, translation PacketType) and WatchdogVelocity's backtrack set, plus the script API whitelist.

WatchdogVelocity (Rise 6.2.4)

Hold S19PacketEntityHeadLook with the S14 movement subclasses and S18 so the backtracked target's full state, including head rotation, replays coherently.

isSpoof2Packet returns true for S19PacketEntityHeadLook, so while the backtrack is active the packet is cancelled in PacketReceiveEvent and queued, then replayed through PacketUtil.receive on the flush conditions (elapsed 100-250 ms, distance threshold crossing, hurtTime == 9, world age under 100 ticks).

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

Vanilla hook: PacketReceiveEvent.
Clientbound buffering is invisible server-side. The delayed head-look replay is exactly what produces the frozen-head visual when the target's head snaps late.
Variations: Rise 6.1.30 has no WatchdogVelocity hit for S19; the packet reaches 6.1.30 only through the components and NetworkAPI.
PingSpoofComponent (Rise 6.1.30, Rise 6.2.4)

Classify S19PacketEntityHeadLook as player traffic so it is parked with the rest of the entity stream while ping spoofing is active.

The players tuple lists S19PacketEntityHeadLook next to the S14 subclasses, S18PacketEntityTeleport, S20PacketEntityProperties and S13PacketDestroyEntities. While the component is enabled, every packet whose class matches an enabled tuple is cancelled on send/receive and parked as a TimedPacket, then flushed via PacketUtil.queue on PostMotion when the delay elapses or on world change.

Source: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/component/impl/player/PingSpoofComponent.java

Vanilla hook: PacketSendEvent and PacketReceiveEvent, PostMotionEvent, WorldChangeEvent.
Delaying clientbound state is not detectable from the packet stream. The side effect is the same stutter that any ping spoof produces on the entity render.
Variations: Identical tuple in Rise 6.1.30 and 6.2.4; the 6.2.4 corpus path carries the Client-release2 prefix.
PacketType (translation component) (Rise 6.1.30, Rise 6.2.4)

Write the decoded head yaw into the per-entity position cache used by the translation system.

ENTITY_HEAD_LOOK decodes headYaw as getYaw() * 360 / 256.0F, looks up the entity's cached Position and stores new Position(posX, posY, posZ, headYaw, currentPitch). It returns null when no entry exists, so head-look updates for entities that never spawned through the cache (no S0F/S0C seen) are silently dropped.

Source: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/component/impl/player/translation/PacketType.java

Vanilla hook: Invoked from the translation component's packet receive path.
No server interaction. The yaw-slot overwrite is a fidelity bug relative to vanilla (head yaw and body yaw are separate there), and downstream consumers inherit it until the next look packet.
Variations: Identical in Rise 6.1.30 and 6.2.4.
PacketReceiveEvent in Rise 6.x; no other client in the corpus registers any hook for S19PacketEntityHeadLook.
The packet appears in Memeware, Nekoware, Sigma, Spicy and Tenacity only via the vanilla NetHandlerPlayClient handler; the entire non-vanilla surface is Rise 6.x components and the script API NetworkAPI whitelist.

anticheat Anti-Cheat Checks

No server anticheat consumes the head-look packet: it carries only the head yaw byte, which plays no role in movement or combat verification. The corpus shows exactly two kinds of references: Artemis's packet-abstraction layer wraps the packet for its pipeline, and the NPC test rigs (PeyangSuperbAntiCheat, MinecraftAntiCheat) emit head rotations for fake players used to bait killaura. The packet is cosmetic clientbound state with no flag surface.

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

Register the head-rotation packet in Artemis's packet abstraction layer so the pipeline can classify it; the read buffer is empty.

The class is annotated with @PacketLink(PacketPlayServerEntityHeadRotation.class) and extends GPacket, binding the wrapper to the packet name; read() does nothing because no Artemis stage consumes the fields.

Detects: Nothing; structural registration only.

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

Variations: The same pattern appears for every play-state server packet in Artemis (entity, entity teleport, entity status, entity metadata).
NPC head rotation (killaura test rig) (P2P-Develop-PeyangSuperbAntiCheat, network-dev-MinecraftAntiCheat)

Emit head-rotation packets for fake players so NPC bait looks alive while testing whether a player's aim tracks them.

PeyangSuperbAntiCheat's NPCTeleport drives a fake EntityPlayer in a circle around the suspect (aura bot mode) or a panic radius (aura panic mode), sending PacketPlayOutEntityTeleport every tick plus PacketPlayOutEntityHeadRotation with the head yaw derived from the player's own head rotation. MinecraftAntiCheat's NPC utility sends the head-rotation packet through rotateHead alongside a look packet for any staff-created fake player.

Detects: Nothing by itself; the head rotation is part of the NPC bait that killaura checks observe from the attack side.

Source: P2P-Develop-PeyangSuperbAntiCheat, src/main/java/ml/peya/plugins/Detect/NPCTeleport.java

Variations: MinecraftAntiCheat builds the packet with raw field reflection (fields a and b) and always pairs it with PacketPlayOutEntityLook; PSAC computes the head yaw from the suspect's own rotation to make the NPC look at the target.

Wiki Cross-Reference

While the entity is stationary the body also rotates toward the head direction after a delay without changing the entity yaw value, and the body rotates back toward yaw once the entity starts moving.

While the entity is moving, head rotation is clamped to a maximum distance from body rotation, and for remote players the server keeps updating head rotation alongside body yaw.

MCP 1.8.9 S19PacketEntityHeadLook implements Packet dispatching to INetHandlerPlayClient.handleEntityHeadLook; wire serde is readPacketData/writePacketData via readByte, readVarIntFromBuffer.

1.8.9 callers: EntityTrackerEntry.? sends new S19PacketEntityHeadLook (line 288): 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.