0x0C C0CPacketInput

Player steers a vehicle (boat or horse). Sends sideways/forward movement, jump flag, and unmount flag.

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

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

entityvehicleboathorsemovement
Comprehensive 8/8

Fields

FieldTypeDescription
sidewaysfloatLeft/right input (-1 to 1)
forwardfloatForward/back input (-1 to 1)
jumpbooleanJump flag
unmountbooleanSneak to dismount flag

Wire Encoding

FieldTypeNotes
SidewaysfloatLeft/right input
ForwardfloatForward/back input
JumpboolHorse jump or boat vertical
UnmountboolDismount vehicle

MCP References

MCPNetHandlerPlayServer.processInput()

Handler Interface

HNDINetHandlerPlayServer

Notes

Sent every tick while riding a vehicle. Rise 6.0 uses C0CPacketInput in its Disabler module for three different modes: VehicleDisabler (send empty C0C on pre-motion), InputDisabler (send C0C with fix- ed values on strafe), and GhostlyDisabler (send C0C alongside C03 movement). The empty constructor C0CPacketInput() defaults to (0,0,false,false) which freezes the boat.

Vanilla Source

C0CPacketInput.java91 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.client;
2
3
import java.io.IOException;
4
import net.minecraft.network.Packet;
5
import net.minecraft.network.PacketBuffer;
6
import net.minecraft.network.play.INetHandlerPlayServer;
7
8
public class C0CPacketInput implements Packet<INetHandlerPlayServer>
9
{
10
    /** Positive for left strafe, negative for right */
11
    private float strafeSpeed;
12
13
    /** Positive for forward, negative for backward */
14
    private float forwardSpeed;
15
    private boolean jumping;
16
    private boolean sneaking;
17
18
    public C0CPacketInput()
19
    {
20
    }
21
22
    public C0CPacketInput(float strafeSpeed, float forwardSpeed, boolean jumping, boolean sneaking)
23
    {
24
        this.strafeSpeed = strafeSpeed;
25
        this.forwardSpeed = forwardSpeed;
26
        this.jumping = jumping;
27
        this.sneaking = sneaking;
28
    }
29
30
    /**
31
     * Reads the raw packet data from the data stream.
32
     */
33
    public void readPacketData(PacketBuffer buf) throws IOException
34
    {
35
        this.strafeSpeed = buf.readFloat();
36
        this.forwardSpeed = buf.readFloat();
37
        byte b0 = buf.readByte();
38
        this.jumping = (b0 & 1) > 0;
39
        this.sneaking = (b0 & 2) > 0;
40
    }
41
42
    /**
43
     * Writes the raw packet data to the data stream.
44
     */
45
    public void writePacketData(PacketBuffer buf) throws IOException
46
    {
47
        buf.writeFloat(this.strafeSpeed);
48
        buf.writeFloat(this.forwardSpeed);
49
        byte b0 = 0;
50
51
        if (this.jumping)
52
        {
53
            b0 = (byte)(b0 | 1);
54
        }
55
56
        if (this.sneaking)
57
        {
58
            b0 = (byte)(b0 | 2);
59
        }
60
61
        buf.writeByte(b0);
62
    }
63
64
    /**
65
     * Passes this Packet on to the NetHandler for processing.
66
     */
67
    public void processPacket(INetHandlerPlayServer handler)
68
    {
69
        handler.processInput(this);
70
    }
71
72
    public float getStrafeSpeed()
73
    {
74
        return this.strafeSpeed;
75
    }
76
77
    public float getForwardSpeed()
78
    {
79
        return this.forwardSpeed;
80
    }
81
82
    public boolean isJumping()
83
    {
84
        return this.jumping;
85
    }
86
87
    public boolean isSneaking()
88
    {
89
        return this.sneaking;
90
    }
91
}

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

Deep Dive

Role in the protocol

The vehicle steering packet. Every tick while the player rides a boat, horse or pig, EntityPlayerSP.onUpdateWalkingPlayer sends C0CPacketInput with strafeSpeed (moveStrafing), forwardSpeed (moveForward), the jump flag and the sneak/unmount flag. The server applies these to the ridden entity via setEntityActionState, which drives boat paddling, horse jump charging and pig steering. The empty constructor used by every module in the corpus defaults to (0.0F, 0.0F, false, false): a request to stop all input.

Vanilla handling

NetHandlerPlayServer.processInput calls playerEntity.setEntityActionState(strafeSpeed, forwardSpeed, isJumping, isSneaking) with no validation on the floats. The values feed the ridden entity on the next tick: forward and sideways map to boat rowing velocity and pig steering angle, the jump flag charges a horse jump. Because the floats are applied directly, absurd magnitudes propagate straight into vehicle motion.

Why clients touch it

Every real use in the 8 clients is disabler-side. Memeware's AACv1.9.10 and Ghostly modes inject an empty C0C before each C03PacketPlayer; Nekoware's Ghostly mode sends one every 10 ticks; Rise 5.99's Disabler sends empty C0C (verusOld, ghostly), (0.98F, 0.0F, false, false) (coc) and (Float.MAX_VALUE, Float.MAX_VALUE, false, false) (funnyCraft); Spicy's Disabler cancels C0C outright. Rise 6.x splits the pattern into VehicleDisabler, InputDisabler and GhostlyDisabler modes. Nekoware's Fly Damage mode sends empty C0C before its fall packets.

Exploit surface

The server applies input floats without clamping, so extreme values distort vehicle physics and desync the server's vehicle state from the player's C03 position stream, which movement anti-cheats then flag. An empty C0C freezes the boat server-side while the client moves freely, the classic BoatFly primitive. Cancelling C0C (Spicy) makes the server keep the player's input stale, which some anti-cheat versions read as a mounted state inconsistent with C03 movement.

Server-Side Handling

processInput forwards the four fields verbatim into setEntityActionState; EntityPlayer feeds them to the ridden entity each tick. Boat motion is rowing ticks derived from forward input, horse jump is a charged power from the jump flag hold, and the sneak flag dismounts. There is no clamp, no rate limit, and no check that the player is actually riding.

Protocol Analysis

Four fields: two floats (strafe, forward), two booleans (jump, sneak/unmount). Sent once per tick while ridingEntity is non-null; vanilla sends it even when all inputs are zero. The default constructor (0, 0, false, false) is the module workhorse, injected as a stop-input reset. Float.MAX_VALUE pairs decode normally and are applied unclamped. Wire order: strafe, forward, jump, sneak.

Anti-Cheat Landscape

Vehicle checks compare C0C input against the motion the server applies to the boat or horse and against the player's C03 position stream. Float.MAX_VALUE input alongside normal C03 movement is a classic desync flag; empty C0C spam is low risk because zero input is legitimate when standing still in a boat. NCP-era disablers used the empty-C0C reset to clear vehicle and water checks right before each C03.

implementation Implementation Cases

The vehicle input packet. No client in the corpus uses C0C for direct BoatFly-style speed; every real use is a disabler injecting empty or extreme C0C values to corrupt server-side input state, plus Spicy cancelling it and Nekoware pairing it with fall packets in Fly.

Disabler (Memeware 7.3, Nekoware v1 private, Rise 5.99, Spicy)

Break anti-cheat vehicle and input-state heuristics by cancelling C0C or injecting synthetic input packets.

Mode-dependent. Spicy cancels every outgoing C0C in EventSendPacket pre. Memeware AACv1.9.10 sends an empty C0C before each C03 (with y bumped by 7.0E-9D to reset critical checks) and Ghostly sends one before each C03. Nekoware Ghostly sends empty C0C every 10 ticks from a packet-in event. Rise 5.99 sends empty C0C in verusOld and ghostly modes, (0.98F, 0.0F, false, false) in coc, and the Float.MAX_VALUE pair in funnyCraft.

Source: Spicy, info/spicyclient/modules/player/Disabler.java

Vanilla hook: EventSendPacket (pre) for the cancel; UpdateEvent and packet events for injection in the other clients.
Cancelling C0C is invisible per packet (the packet just never exists) but changes the server's mounted-input state; extreme-value injection is visible in the floats and flags on anti-cheats that validate input magnitude.
Variations: Memeware injects via PacketUtil.sendPacketSilent, Nekoware via addToSendQueue, Rise 5.99 via PacketUtil.sendPacketWithoutEvent. Rise 5.99's ghostly mode also rounds the C03 y to the 0.015625 grid and forces onGround true after the C0C send.
VehicleDisabler / InputDisabler / GhostlyDisabler (Rise 6.2.4, Rise 6.1.30)

Rise 6.x disabler suite, three modes that each abuse C0C differently to keep server-side input state consistent with spoofed movement.

VehicleDisabler sends an empty C0C on every PreMotionEvent, resetting any vehicle-input expectation. InputDisabler sends (0.98f, 0, true, true) on StrafeEvent, feeding a fixed strafe with jump and sneak set. GhostlyDisabler sends an empty C0C immediately before rewriting the outgoing C03: y rounded to the 0.015625 grid and onGround forced true.

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

Vanilla hook: PreMotionEvent, StrafeEvent, PacketSendEvent.
The empty and fixed-value sends are stealthy because they are valid packet shapes; the Ghostly C03 rewrite (grid y, forced ground) is the part anti-cheats can measure.
Variations: Identical files in 6.1.30 and 6.2.4. Rise 6.1.30 and 6.2.4 also expose C0C to scripts via PacketAPI.sendInput(strafeSpeed, forwardSpeed, jumping, sneaking), and PingSpoofComponent lists C0C in its blink tuple so blink windows hold input packets too.
Fly (Nekoware v1 private)

Reset server-side input state during the damage-based fly sequence so the fall packets read as stationary input.

Damage mode sends an empty C0C followed by C03PacketPlayer(true) on every pre-update, after the enable-time fall sequence (C04 up 3.05, back down, up 0.41999998688697815 on ground). The C0C pins the server's input state to zero while the position packets move the player.

Source: Nekoware v1 private, me/nekoWare/client/module/movement/Fly.java

Vanilla hook: UpdateEvent pre phase.
Empty C0C is legitimate input; the flag surface is the vertical teleport sequence itself, not the input packet.
Variations: None in the corpus for this pattern; Nekoware's Disabler also sends empty C0C in its Ghostly mode, and Memeware's Disabler covers the same ground.
Tp (LiquidSense Dev)

Send a stop-input C0C (zero strafe/forward, jump and sneak true) after the lagback teleport sequence, pinning the server's input state during the move.

After the teleport packet burst (C0F(-1), C13 abilities, C04 y-offsets, fall-distance position spam, C03(true)), the module sends new C0CPacketInput(0.0F, 0.0F, true, true) via addToSendQueue, then walks a PathfindingUtils path to the target coordinates. The C0C with both flags set is the reset that stops the server applying stale vehicle/input state to the teleport.

Source: LiquidSense Dev, me/AquaVit/liquidSense/modules/world/Tp.java

Vanilla hook: TickEvent after S08 detection; send via mc.getNetHandler().addToSendQueue.
The jump+sneak C0C flags alongside teleport C03s can read as input desync to vehicle checks, but with no vehicle mounted the server applies it to nothing, so the risk is the position spam, not the C0C.
Variations: Nekoware's Fly Damage mode sends an empty C0C for a similar reset; LiquidSense's sends it with both flags true instead of the default constructor.
LuaEventPacket (November Recode 2.0)

Expose C0C to November's Lua scripting API as id 0x0C with direction, for scripted input injection.

packetIds maps C0CPacketInput.class to 0x0C; the wrapper stores the numeric id and 'out' direction from the EventPacket.

Source: November Recode 2.0, scripting/wrapper/event/LuaEventPacket.java

Vanilla hook: EventPacket.Out through the scripting bridge.
None; read-only mapping.
PacketSendEvent / EventSendPacket for cancels, UpdateEvent and packet events for injection. Rise 6.x also references C0C inside PingSpoofComponent's blink class list and PacketAPI's script-facing sendInput helper. LiquidSense Dev sends C0C from a TickEvent in Tp; November Recode 2.0 exposes 0x0C to scripts via LuaEventPacket.
Memeware and Nekoware inject through PacketUtil.sendPacketSilent or addToSendQueue; Rise 5.99 uses PacketUtil.sendPacketWithoutEvent; Rise 6.x uses PacketUtil.send and sendNoEvent; Spicy cancels via event.setCanceled(true). Tenacity's AdvancedDisablerModule references C0C only in commented-out code, and its PacketUtil counts C0C among packet types that bypass the send queue. LiquidSense Dev's Tp uses the four-arg constructor with both flags true; November Recode 2.0's LuaEventPacket also carries the C0C id but only for scripting.

anticheat Anti-Cheat Checks

The input packet, also called steer vehicle, is sent every tick while riding a boat or horse, carrying forward and sideways axes plus the jump and unmount flags. It is the only stream that tells the server what the rider wants to do, so vehicle movement checks pair it with the vehicle move packet: impossible axis values, steering while not in a vehicle, and input that does not match the predicted vehicle motion are all C0C signatures. Boat fly and boat speed cheats are detected by comparing the claimed input against the vehicle's actual motion.

VehicleA (Grim) (GrimAnticheat-Grim)

Cancels steer vehicle packets whose forward or sideways axes exceed the physically possible range.

PreViaPacketReceiveListener on STEER_VEHICLE: decodes WrapperPlayClientSteerVehicle and, if the absolute forward or sideways value is above 0.98, flags with both values in the verbose, cancels the packet and runs onPacketCancel. The 0.98 bound matches the vanilla input clamp.

Detects: Modified clients that send boosted input axes to move vehicles faster, and input spoofing modules.

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

Variations: VehicleB (same anticheat) cancels steer packets sent while the player is not in a vehicle; NCP routes the packet into its vehicle checks through InputsAdapter.
InputsAdapter (NoCheatPlus) (Updated-NoCheatPlus-NoCheatPlus)

Feeds the steer vehicle packet into NCP's vehicle movement checks as an input queue.

BaseAdapter listening at MONITOR priority on STEER_VEHICLE. It skips temporary players, resolves the IPlayerData and NetData, and wraps the raw Input object with an AutoWrapper into DataPacketInput, then pushes it onto the input queue. NCP's vehicle checks consume the queue to validate the rider's claimed input against the vehicle move. The javadoc notes the packet is named Player_Input in the modern protocol but ProtocolLib keeps the legacy name.

Detects: Feeds the input data used by VehicleChecks, VehicleEnvelope and VehicleMorePackets to flag boat fly and vehicle speed cheats.

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

Variations: Grim reads the steer packet directly in VehicleA and VehicleB; Intave SteerVehicleReader exposes the jump flag; BetterAnticheat RepeatedSteerCheck uses the packet rhythm instead.
BoatFlyCheck (CheaterDeleter) (CoolMineman-CheaterDeleter)

Flags boats that rise without the rider providing the motion, the boat fly signature.

VehicleMoveListener combining the player input packet with consecutive vehicle move packets. If the vehicle has no step height, the y delta is positive, and the vehicle's own velocity is not positive, it flags Boat Fly with the delta and velocity, then punishes by grounding the boat. Piston pushes and liquid contact within the last second are exempt.

Detects: Boat fly cheats that lift the boat without server-side motion to explain it.

Source: CoolMineman-CheaterDeleter, src/main/java/io/github/coolmineman/cheaterdeleter/modules/movement/entity/BoatFlyCheck.java

Variations: Grim VehicleC and VehiclePredictionRunner compare the steer input against predicted vehicle motion; NCP VehicleEnvelope runs the same idea with an envelope model; Rammelkast AntiCheatReloaded BoatFlyCheck and MC-Jinky BoatCheck are the same pattern on older bases.
RepeatedSteerCheck (BetterAnticheat) (amnoah-BetterAnticheat)

Flags artificial vehicle move streams that omit the rotation packet a real client sends between vehicle moves.

Tracks a lastRotating flag: any flying packet with a rotation change sets it true; a VEHICLE_MOVE packet consumes it and sets it false. A vehicle move with lastRotating false fails the check, because the vanilla client always interleaves a rotation packet between vehicle move packets.

Detects: Vehicle move spoofers and boat fly modules that generate only vehicle move packets.

Source: amnoah-BetterAnticheat, core/src/main/java/better/anticheat/core/check/impl/flying/RepeatedSteerCheck.java

Variations: CheaterDeleter BoatFlyCheck inspects y motion, Grim VehicleA checks the input axes, and NCP validates the full move envelope.
SteerVehicleReader (Intave) (intave-intave)

Reads the jump flag from the steer vehicle packet so the movement simulator knows when the rider wants to jump.

AbstractPacketReader that reads the first boolean of the steer vehicle packet as isJumping. It is consumed by the vehicle simulation branch, the boat simulator and the keypress brancher, to predict the vehicle's motion from the rider's input.

Detects: Feeds the input state used by Intave's boat and vehicle physics simulation to catch vehicle fly and speed cheats.

Source: intave-intave, src/main/java/de/jpx3/intave/packet/reader/SteerVehicleReader.java

Variations: Grim VehicleA and VehicleB validate the raw axes and vehicle state; NCP InputsAdapter queues the full input object; BetterAnticheat RepeatedSteerCheck checks packet rhythm.

Wiki Cross-Reference

Two floats strafe/forward plus jump and sneak packed into one flag byte (bit0 jump, bit1 sneak).

Sent every tick while ridingEntity is set, even all zeros; default ctor is 0,0,false,false.

Server forwards values unclamped into setEntityActionState with no check that riding is active.

MCP 1.8.9 C0CPacketInput implements Packet dispatching to INetHandlerPlayServer.processInput; wire serde is readPacketData/writePacketData via readByte, readFloat.

1.8.9 callers: EntityPlayerSP.onUpdate sends new C0CPacketInput (line 177): 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.

Module Analyses Using C0CPacketInput

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