0x0B C0BPacketEntityAction

Player performs an action: crouch, uncrouch, sprint, stop sprint, leave bed, jump with horse, open inventory.

Serverbound (Client → Server) · PLAY · net/minecraft/network/play/client/C0BPacketEntityAction.java

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

playerentitymovement
Comprehensive 7/8

Fields

FieldTypeDescription
entityIDVarIntPlayer entity ID (for horse actions, the horse ID)
actionEnumSTART_SNEAKING, STOP_SNEAKING, STOP_SLEEPING, START_SPRINTING, STOP_SPRINTING, RIDING_JUMP, OPEN_INVENTORY
auxDataVarIntFor RIDING_JUMP: jump boost value (0-100)

Wire Encoding

FieldTypeNotes
Entity IDVarIntPlayer or horse entity
Action IDVarInt Enum0=crouch,1=uncrouch,2=leaveBed,3=sprint,4=stopSprint,5=jumpHorse,6=openInv
Jump BoostVarIntHorse jump power 0-100

MCP References

MCPNetHandlerPlayServer.processEntityAction()

Handler Interface

HNDINetHandlerPlayServer

Vanilla Source

C0BPacketEntityAction.java79 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.client;
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.INetHandlerPlayServer;
8
9
public class C0BPacketEntityAction implements Packet<INetHandlerPlayServer>
10
{
11
    private int entityID;
12
    private C0BPacketEntityAction.Action action;
13
    private int auxData;
14
15
    public C0BPacketEntityAction()
16
    {
17
    }
18
19
    public C0BPacketEntityAction(Entity entity, C0BPacketEntityAction.Action action)
20
    {
21
        this(entity, action, 0);
22
    }
23
24
    public C0BPacketEntityAction(Entity entity, C0BPacketEntityAction.Action action, int auxData)
25
    {
26
        this.entityID = entity.getEntityId();
27
        this.action = action;
28
        this.auxData = auxData;
29
    }
30
31
    /**
32
     * Reads the raw packet data from the data stream.
33
     */
34
    public void readPacketData(PacketBuffer buf) throws IOException
35
    {
36
        this.entityID = buf.readVarIntFromBuffer();
37
        this.action = (C0BPacketEntityAction.Action)buf.readEnumValue(C0BPacketEntityAction.Action.class);
38
        this.auxData = buf.readVarIntFromBuffer();
39
    }
40
41
    /**
42
     * Writes the raw packet data to the data stream.
43
     */
44
    public void writePacketData(PacketBuffer buf) throws IOException
45
    {
46
        buf.writeVarIntToBuffer(this.entityID);
47
        buf.writeEnumValue(this.action);
48
        buf.writeVarIntToBuffer(this.auxData);
49
    }
50
51
    /**
52
     * Passes this Packet on to the NetHandler for processing.
53
     */
54
    public void processPacket(INetHandlerPlayServer handler)
55
    {
56
        handler.processEntityAction(this);
57
    }
58
59
    public C0BPacketEntityAction.Action getAction()
60
    {
61
        return this.action;
62
    }
63
64
    public int getAuxData()
65
    {
66
        return this.auxData;
67
    }
68
69
    public static enum Action
70
    {
71
        START_SNEAKING,
72
        STOP_SNEAKING,
73
        STOP_SLEEPING,
74
        START_SPRINTING,
75
        STOP_SPRINTING,
76
        RIDING_JUMP,
77
        OPEN_INVENTORY;
78
    }
79
}

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

Deep Dive

Role in the protocol

C0B carries an action enum (START_SNEAKING, STOP_SNEAKING, START_SPRINTING, STOP_SPRINTING, STOP_SLEEPING, RIDING_JUMP, OPEN_INVENTORY) plus an int aux value used only for RIDING_JUMP. The server's processEntityAction maps it directly onto the player entity state: setSneaking, setSprinting, wakeUpPlayer, horse jump. It is a pure state packet with no position, which makes it the perfect carrier for sprint/sneak manipulation that must not touch movement packets.

Vanilla handling

processEntityAction switches on the action ordinal and mutates the player entity. STOP_SLEEPING also resets hasMoved = false so the next C03 position is accepted (this is why WakeUp/phase tricks use it). RIDING_JUMP sets horse jump power from the aux int. OPEN_INVENTORY opens the horse GUI. The client sends C0B from EntityPlayerSP on key presses; sprint is normally also mirrored inside C03PacketPlayer's sprinting flag, which is where anti-cheats cross-check.

Why clients touch it

Sprint modules (Rise 5.99 Sprint) intercept and rewrite C0B to keep sprint always-on. Sneak modules (Rise 5.99 Sneak, Rise 6.2.4 NCPSneak) send START/STOP_SNEAKING on a timer to trick anti-cheat sneak checks. Scaffold (Rise 5.99, Tenacity, VulcanSprint mode) sneaks while placing on edges. WTap (Rise 5.99, Spicy) sends STOP_SPRINTING then START_SPRINTING around hits to reset the target's knockback velocity. Sigma KeepSprint cancels STOP_SPRINTING entirely so the player keeps sprint speed after attacking. November Recode 2.0 ships a WTap with a silent packet mode; LiquidSense Dev wraps teleport bursts in sneak toggles and cancels C0B in FreeCam.

Exploit surface

The packet is unvalidated beyond the enum, so clients can send START_SPRINTING while standing still or STOP_SNEAKING while never having sneaked. Anti-cheats therefore correlate C0B with C03's sprinting flag and with the movement deltas: sprint flag on but forward speed zero flags. WTap's stop-sprint-while-close is measured against hit timing. Sneak-spam (sending sneak every N ticks) is the classic NCP/Verus phase and safewalk enabler.

Server-Side Handling

processEntityAction mutates playerEntity state: setSneaking/setSprinting booleans, wakeUpPlayer (which clears hasMoved so the next position packet passes the movement check), horse jump power, horse GUI. No rate limiting; the aux int is ignored for all actions except RIDING_JUMP.

Protocol Analysis

Fields: VarInt entityId (client player), VarInt action ordinal, VarInt aux (0 for non-horse actions). Sent in PLAY state. Vanilla sends START_SPRINTING/STOP_SPRINTING from the sprint key handler and sneak actions from the sneak key; modules send it from motion/update events.

Anti-Cheat Landscape

NCP's sprint check compares C0B against C03's onGround/sprinting fields and movement speed. Verus detects sprint-stutter (WTap) by knockback timing. Sneak-abuse (sending sneak while moving fast) flags on Intave and newer NCP; Rise 6.2.4 NCPSneak and the scaffold sprint modes exist precisely to shape these patterns per AC.

implementation Implementation Cases

The entity-state switchboard. Sprint modules rewrite it, sneak modules spam it, scaffold sneaks with it, WTap stutters it, and KeepSprint eats the STOP_SPRINTING. Every trick exploits the gap between the boolean state the server stores and the movement the client actually sends.

Sprint (Rise 5.99)

Force sprint state server-side regardless of direction keys, and cancel sprint-stopping packets.

Rise 5.99 Sprint cancels C0B STOP_SPRINTING on the send event and re-sends START_SPRINTING when the player should sprint. The silent+multiDirection mode lets the player sprint in any direction, not just forward, by suppressing the vanilla sprint C0B and setting the entity sprint flag directly.

Source: Rise 5.99, dev/rise/module/impl/movement/Sprint.java

Vanilla hook: PacketSendEvent (cancel STOP_SPRINTING); PreMotionEvent for flag management.
Sprinting sideways without the forward key is the classic flag; NCP checks movement direction vs sprint state. The module is aimed at servers where the sprint check is weak or where the player holds W.
Variations: Only Rise 5.99 ships a dedicated Sprint module in the corpus; other clients fold sprint control into Speed/Fly modules.
Sneak (Rise 5.99, Rise 6.2.4, Rise 6.1.30)

Send START/STOP_SNEAKING on a timer to exploit sneak-based anti-cheat logic or to safely place/phase.

Rise 5.99 Sneak sends START_SNEAKING every N ticks and STOP_SNEAKING between, keeping the server-side sneak state toggling; the module has an auto mode that only sneaks when needed (e.g. near edges). Rise 6.2.4 NCPSneak sends a sneak cycle specifically tuned to NCP's sneak check to allow movement tricks without flagging.

Source: Rise 5.99, dev/rise/module/impl/movement/Sneak.java

Vanilla hook: PreMotionEvent with a TimeUtil; PacketUtil.sendPacket.
Rapid sneak toggling is the classic NCP safewalk/phase enabler and is heavily flagged on modern ACs; NCPSneak in Rise 6.x shapes the toggle timing to the AC.
Variations: Rise 6.2.4/6.1.30 NCPSneak.java implements the NCP-tuned cycle.
WTap (Rise 5.99, Spicy, November Recode 2.0)

Reset the target's knockback by briefly stopping sprint right at the hit, then re-sprinting.

On the attack, if the target is in range and the player was sprinting, send STOP_SPRINTING then START_SPRINTING in the same tick (or on consecutive ticks). The server stops applying sprint-knockback multiplier to the target for that hit. Rise 5.99 WTap sends both packets back-to-back via sendPacketWithoutEvent; Spicy Wtap uses sendQueue.addToSendQueue.

Source: Rise 5.99, dev/rise/module/impl/combat/WTap.java

Vanilla hook: AttackEvent or pre-motion check with a tick counter; PacketUtil.sendPacketWithoutEvent.
WTap is semi-legit: real players stutter sprint during combat. Verus and newer checks measure the stop-sprint duration; sending both packets in one tick is distinguishable from human input.
Variations: Spicy Wtap.java sends the same pair via the raw send queue; Sigma Killaura also touches C0B in its attack routine. November Recode 2.0's WTapModule in SILENT mode sends STOP_SPRINTING then START_SPRINTING back-to-back on the C02 ATTACK, delay-gated and only while sprinting; LEGIT mode releases and re-presses the sprint key binding instead of packets.
KeepSprint (Sigma 4.11)

Cancel STOP_SPRINTING so the player keeps sprint speed after landing a hit.

Sigma KeepSprint hooks EventPacket on the receive/send path, and when a C0B with STOP_SPRINTING is seen it cancels the event, leaving the server-side sprint flag set. The result is that attacking no longer drops the player out of sprint.

Source: Sigma 4.11, info/sigmaclient/module/impl/movement/KeepSprint.java

Vanilla hook: EventPacket (isIncoming guard + packet type check).
Keeping sprint through a hit is exactly what legit 1.8 players do with the sprint key held, so this is low-risk; the flag appears only if the client also cancels the C03 sprinting-flag change.
Variations: No other client ships a dedicated KeepSprint in the corpus; other clients fold it into Sprint/WTap behavior.
Scaffold (sneak/sprint control) (Rise 5.99, Rise 6.2.4, Rise 6.1.30, Sigma 4.11, Tenacity 6.0, LiquidSense Dev)

Send C0B sneaking while placing on block edges and control sprint state around placements.

Scaffold sneaks (START_SNEAKING) when the player is near an edge so the server slows the player and the placement lands, then stops sneaking mid-air. Rise 5.99 Scaffold toggles sneaking based on edge distance (lines ~414-421); Tenacity ScaffoldModule stops/starts sprinting around the placement (lines ~122-125); Rise 6.2.4 VulcanSprint is a scaffold sprint mode that sends START_SNEAKING on a tick cycle to fake the sneak while sprinting (lines ~28, 56).

Source: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/module/impl/player/scaffold/sprint/VulcanSprint.java

Vanilla hook: Scaffold's own pre-motion loop; PacketUtil.send for C0B.
Sneak-while-sprinting is impossible legitimately, so ACs correlate the C0B stream with C03 speed; each scaffold sprint/tower mode exists to pick timings that the target AC does not check.
Variations: Rise 6.2.4 also ships WatchdogJumpSprint; Rise 6.1.30 VulcanSprint; Tenacity ScaffoldModule toggles sprint around placements; Rise 5.99 and Sigma 4.11 Scaffold send sneak directly. LiquidSense Dev's Scaffold sends START/STOP_SNEAKING for eagle mode while placing and stops sneaking after the placement; its Teleport module uses the same sneak toggles around teleport bursts (see the Teleport entry).
Teleport (sneak cycle) (LiquidSense Dev)

Teleport through walls: the Blink and Flag modes wrap the C04 burst with STOP_SNEAKING and START_SNEAKING so the sneak state the server recorded is never visibly dropped.

While sneaking, send STOP_SNEAKING, the C04 sequence to the target, then START_SNEAKING; Flag mode adds MovementUtils.forward(0.04) to nudge motion. The onPacket handler mutates or cancels C03 depending on mode.

Source: LiquidSense Dev, net/ccbluex/liquidbounce/features/module/modules/exploit/Teleport.java

Vanilla hook: UpdateEvent (sneak key), PacketEvent (C03 handling).
Sneaking while teleporting is semi-legit on servers that treat sneak as slow movement; the burst itself is what position checks measure.
Variations: November's InventoryUtils utility sends C0B OPEN_INVENTORY for inventory-walk style modules; AquaVit's Tp uses the same lag-back pattern without sneak toggles.
FreeCam (LiquidSense Dev)

Cancel C0B together with C03 so the detached camera never leaks sprint or sneak state to the server.

A single PacketEvent handler cancels C03PacketPlayer and C0BPacketEntityAction while the module is enabled; the fake player at the origin keeps the server-side entity frozen.

Source: LiquidSense Dev, net/ccbluex/liquidbounce/features/module/modules/render/FreeCam.java

Vanilla hook: PacketEvent (cancel).
Cancelling C0B is what keeps the ghost from toggling sprint server-side; a lingering sprint flag would contradict the frozen position.
Variations: Same file backs the C03 entry.
InventoryUtils (open inventory) (November Recode 2.0)

Utility helper: send C0B OPEN_INVENTORY so the server opens the player's inventory without a GUI transition, the trick behind inventory-walk modules.

openInventory() pushes a C0BPacketEntityAction with Action.OPEN_INVENTORY through the raw send queue. The rest of the class is slot math (swap, find, validPotions) shared by AutoPotModule and other modules.

Source: November Recode 2.0, utility/player/InventoryUtils.java

Vanilla hook: Static helper; called from modules, not an event listener itself.
OPEN_INVENTORY with no matching C0D close desyncs the container state, which is why callers pair it with closeCurrentInventory().
Variations: LiquidSense Dev's InventoryUtils resets a click timer on C08 instead (see C08 client_variations); the OPEN_INVENTORY trick is November-only in the corpus.
PacketSendEvent (Sprint, KeepSprint), PreMotionEvent (Sneak, Scaffold), attack events (WTap). Sigma uses EventPacket; Rise 6.x uses Listener and scaffold sub-modes.
Rise 5.99 uses PacketUtil.sendPacketWithoutEvent to bypass its own event loop. Spicy pushes to sendQueue directly. Sigma hooks EventPacket with an isIncoming guard. Rise 6.x uses PacketUtil.send and EventLink listeners, and its PingSpoofComponent parks C0B in the blink class list.

anticheat Anti-Cheat Checks

The entity action packet carries sprint, crouch, leave-bed, horse jump and inventory-open actions. Sprint and sneak state is the server-side contract anticheats validate: omni-sprint modules forge the sprint action while ignoring hunger and blindness, and toggle spam abuses the state machine. The corpus shows adapters that forward the action (NCP EntityActionAdapter), state checks that validate sprint against food and potions (Grim SprintA, Truthful SprintA), and direction checks on the move stream (Azure OmniSprint).

SprintA (Grim) (GrimAnticheat-Grim)

Post-prediction sprint state check: sprinting with a food level at or below 6 is invalid.

A PostPredictionListener running after the movement simulation. If the prediction was not checked, the player can fly, or the player rides a camel, the check returns (both are legitimate sprint cases). Otherwise, when food is at or below 6 and the client's sprinting flag (set from the entity action packet) is true, it flags with the food level in the verbose; when the flag is false it rewards the balance.

Detects: Omni-sprint and auto-sprint modules that sprint with no hunger, and clients that forge the sprint action state.

Source: GrimAnticheat-Grim, common/src/main/java/ac/grim/grimac/checks/impl/sprint/SprintA.java

Variations: Grim's SprintB through SprintG cover sprint direction, 1.9+ sprint and vehicle cases; the entity action packet itself is parsed in PacketEntityAction which feeds player.isSprinting.
OmniSprint (Azure) (AimbotPvP-azure-anticheat)

Classic omni-sprint detection: diagonal movement direction must agree with the client yaw.

On PlayerMoveEvent with the server-side sprint flag active (set from the entity action packet), it computes deltaX/deltaZ from the movement and the absolute yaw quadrant. Movement diagonally in a direction that contradicts the yaw quadrant is the omni-sprint signature and raises an immediate violation with a 60 second cooldown.

Detects: Omni-sprint cheats that move diagonally while facing straight, and sprint direction spoofing.

Source: AimbotPvP-azure-anticheat, src/main/java/us/skidrevenant/azure/check/checks/motion/OmniSprint.java

Variations: Truthful SprintA flags the same behavior via blindness and hunger state; FlopAC WTapA/B/C and SprintA/B cover sprint-wtap and sprint-state on the packet stream.
EntityActionAdapter (NoCheatPlus) (Updated-NoCheatPlus-NoCheatPlus)

The ProtocolLib bridge for the entity action packet, feeding NCP's net toggle-frequency check.

A BaseAdapter registered at LOW priority for ENTITY_ACTION. It resolves player data safely, records the action timestamp into the player action frequency buffer, refreshes the last-packet time, and runs the ToggleFrequency check that limits how often sprint and sneak can be toggled. A cancel decision requests a setback through the player data.

Detects: Sprint and sneak toggle spam, action-frequency abuse, and clients that flood entity actions to desync server state.

Source: Updated-NoCheatPlus-NoCheatPlus, NCPCompatProtocolLib/src/main/java/fr/neatmonster/nocheatplus/checks/net/protocollib/EntityActionAdapter.java

Variations: Frequency's WrappedPlayInEntityAction feeds BadPacketsC/G and InvalidD/E; CheaterDeleter's PlayerInteractEntity mixin covers the modern 1.19+ equivalent on the same action domain.
SprintA (Truthful) (TawnyE-TruthfulAC)

Sprint state validity check on the movement stream: sprinting is illegal with blindness or with food at or below 6.

Handles relative-move wrappers on position updates. If the player is not sprinting (sprint state set from the entity action packet) the buffer decays. When sprinting and not allowed to fly, blindness adds 2.0 to the buffer (flag at 4.0) and food at or below 6 adds 1.0 (flag at 5.0), with a decaying buffer that resets on quit.

Detects: Omni-sprint with blindness, hunger-ignoring sprint modules, and sprint state desync.

Source: TawnyE-TruthfulAC, src/main/java/ret/tawny/truthful/checks/impl/packet/sprint/SprintA.java

Variations: SprintB in the same package adds direction validation; Photon's BetterSprint sentinel module and FlopAC SprintA cover the same ground on other bases.

Wiki Cross-Reference

The leave-bed action is only sent when the Leave Bed button is clicked in the sleep GUI, not on a natural morning wake. The vanilla server ignores the entity ID field and applies the action to the sending player.

MCP 1.8.9 C0BPacketEntityAction implements Packet dispatching to INetHandlerPlayServer.processEntityAction; wire serde is readPacketData/writePacketData via readEnumValue, readVarIntFromBuffer.

1.8.9 callers: EntityPlayerSP.onUpdateWalkingPlayer sends new C0BPacketEntityAction (line 197) +1 more: https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/client/entity/EntityPlayerSP.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.