0x0C C0CPacketInput
Player steers a vehicle (boat or horse). Sends sideways/forward movement, jump flag, and unmount flag.
Published 2026-06-18 · Updated 2026-10-14
Fields
| Field | Type | Description |
|---|---|---|
| sideways | float | Left/right input (-1 to 1) |
| forward | float | Forward/back input (-1 to 1) |
| jump | boolean | Jump flag |
| unmount | boolean | Sneak to dismount flag |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Sideways | float | Left/right input |
| Forward | float | Forward/back input |
| Jump | bool | Horse jump or boat vertical |
| Unmount | bool | Dismount vehicle |
MCP References
NetHandlerPlayServer.processInput()Handler Interface
INetHandlerPlayServerNotes
Vanilla Source
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 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.
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.
// ===== FILE: Spicy, info/spicyclient/modules/player/Disabler.java =====
package info.spicyclient.modules.player;
import java.util.ArrayList;
import java.util.Random;
import org.lwjgl.input.Keyboard;
import info.spicyclient.SpicyClient;
import info.spicyclient.chatCommands.Command;
import info.spicyclient.events.Event;
import info.spicyclient.events.listeners.EventPacket;
import info.spicyclient.events.listeners.EventSendPacket;
import info.spicyclient.events.listeners.EventUpdate;
import info.spicyclient.modules.Module;
import info.spicyclient.notifications.Color;
import info.spicyclient.notifications.NotificationManager;
import info.spicyclient.notifications.Type;
import info.spicyclient.util.MovementUtils;
import info.spicyclient.util.Timer;
import net.minecraft.entity.player.PlayerCapabilities;
import net.minecraft.network.Packet;
import net.minecraft.network.handshake.client.C00Handshake;
import net.minecraft.network.login.server.S00PacketDisconnect;
import net.minecraft.network.play.client.C00PacketKeepAlive;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C0CPacketInput;
import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
import net.minecraft.network.play.client.C13PacketPlayerAbilities;
import net.minecraft.network.play.server.S08PacketPlayerPosLook;
import net.minecraft.network.play.server.S32PacketConfirmTransaction;
public class Disabler extends Module {
public Disabler() {
super("Disabler", Keyboard.KEY_NONE, Category.PLAYER);
}
public static transient boolean watchdog = false;
public static transient ArrayList<C0FPacketConfirmTransaction> C0FPackets = new ArrayList<C0FPacketConfirmTransaction>();
public static transient Timer ping = new Timer();
@Override
public void onEnable() {
NotificationManager.getNotificationManager().createNotification("Relog for the disabler to take effect", "", true, 5000, Type.INFO, Color.PINK);
watchdog = false;
}
@Override
public void onDisable() {
watchdog = false;
for (C0FPacketConfirmTransaction p : C0FPackets) {
mc.getNetHandler().getNetworkManager().sendPacketNoEvent(p);
}
C0FPackets.clear();
}
@Override
public void onEvent(Event e) {
if (e instanceof EventUpdate && e.isPre()) {
this.additionalInformation = "Hypixel";
PlayerCapabilities playerCapabilities = new PlayerCapabilities();
playerCapabilities.isFlying = true;
playerCapabilities.allowFlying = true;
//playerCapabilities.setFlySpeed((float) ((Math.random() * (9.0 - 0.1)) + 0.1));
playerCapabilities.setFlySpeed((float) ((Math.random() * (9.0 - 0.1)) + 0.1));
playerCapabilities.isCreativeMode = true;
mc.getNetHandler().getNetworkManager().sendPacketNoEvent(new C13PacketPlayerAbilities(playerCapabilities));
// Added this
if (SpicyClient.config.fly.isEnabled()) {
mc.getNetHandler().getNetworkManager().sendPacketNoEvent(new C13PacketPlayerAbilities(playerCapabilities));
}
if (ping.hasTimeElapsed(500 + (new Random()).nextInt(750), true) && C0FPackets.size() > 0) {
mc.getNetHandler().getNetworkManager().sendPacketNoEvent(C0FPackets.get(0));
C0FPackets.remove(0);
}
}
if (e instanceof EventPacket && e.isPre()) {
if (((EventPacket)e).packet instanceof S00PacketDisconnect) {
C0FPackets.clear();
}
}
if (e instanceof EventSendPacket && e.isPre()) {
EventSendPacket event = (EventSendPacket) e;
if (event.packet instanceof C00Handshake) {
C0FPackets.clear();
}
if (event.packet instanceof C0FPacketConfirmTransaction) {
C0FPacketConfirmTransaction packetConfirmTransaction = (C0FPacketConfirmTransaction)event.packet;
//mc.getNetHandler().getNetworkManager().sendPacketNoEvent(new C0FPacketConfirmTransaction(2147483647, packetConfirmTransaction.getUid(), false));
//mc.getNetHandler().getNetworkManager().sendPacketNoEvent(new C0FPacketConfirmTransaction(1147483647, packetConfirmTransaction.getUid(), false));
//packetConfirmTransaction.setAccepted(new Random().nextBoolean());
//packetConfirmTransaction.setWindowId(Integer.MIN_VALUE + new Random().nextInt(1000));
//packetConfirmTransaction.setUid(Short.MAX_VALUE);
//mc.getNetHandler().getNetworkManager().sendPacketNoEvent(new C0FPacketConfirmTransaction(Integer.MIN_VALUE, Short.MAX_VALUE, true));
C0FPackets.add(packetConfirmTransaction);
e.setCanceled(true);
}
if (event.packet instanceof C00PacketKeepAlive) {
//mc.getNetHandler().getNetworkManager().sendPacketNoEvent(new C00PacketKeepAlive(-2147483648 + (new Random()).nextInt(100)));
//e.setCanceled(true);
}
if (event.packet instanceof C0CPacketInput) {
e.setCanceled(true);
}
}
}
}
// NOTE (AI): Spicy is the cancel variant: C0C never reaches the server, so the server's input state for the player stays stale. Memeware, Nekoware and Rise 5.99 do the opposite, injecting empty or extreme C0C values, which shows the two sides of the same disabler idea.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.
// ===== FILE: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/module/impl/exploit/disabler/VehicleDisabler.java =====
package com.alan.clients.module.impl.exploit.disabler;
import com.alan.clients.event.Listener;
import com.alan.clients.event.annotations.EventLink;
import com.alan.clients.event.impl.motion.PreMotionEvent;
import com.alan.clients.module.impl.exploit.Disabler;
import com.alan.clients.util.packet.PacketUtil;
import com.alan.clients.value.Mode;
import net.minecraft.network.play.client.C0CPacketInput;
public class VehicleDisabler extends Mode<Disabler> {
public VehicleDisabler(String name, Disabler parent) {
super(name, parent);
}
@EventLink
public final Listener<PreMotionEvent> onPreMotionEvent = event -> {
PacketUtil.send(new C0CPacketInput());
};
}
// NOTE (AI): VehicleDisabler is the minimal form: one empty C0C per pre-motion. InputDisabler and GhostlyDisabler (both under 45 lines) extend the same idea on StrafeEvent and PacketSendEvent respectively.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.
// ===== FILE: Nekoware v1 private, me/nekoWare/client/module/movement/Fly.java =====
package me.nekoWare.client.module.movement;
import me.hippo.api.lwjeb.annotation.Handler;
import me.nekoWare.client.event.events.EventCollide;
import me.nekoWare.client.event.events.MovementEvent;
import me.nekoWare.client.event.events.PacketOutEvent;
import me.nekoWare.client.event.events.UpdateEvent;
import me.nekoWare.client.module.Module;
import me.nekoWare.client.util.blocks.misc.BlockUtil;
import me.nekoWare.client.util.misc.Timer;
import me.nekoWare.client.util.movement.MovementUtils;
import me.nekoWare.client.util.packet.PacketUtil;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.client.C00PacketKeepAlive;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C08PacketPlayerBlockPlacement;
import net.minecraft.network.play.client.C09PacketHeldItemChange;
import net.minecraft.network.play.client.C0CPacketInput;
import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
import net.minecraft.network.play.client.C18PacketSpectate;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.BlockPos;
import net.minecraft.util.MovementInput;
import org.apache.commons.lang3.RandomUtils;
import java.util.function.Consumer;
public class Fly extends Module {
private Timer timer = new Timer();
private double y;
public Fly() {
super("Fly", 34, Module.Category.MOVEMENT);
this.addDouble("Speed", 2.5, 0.1, 5.0);
this.addModes("Vanilla", "Damage", "Verus");
this.addBoolean("Anti-Kick", false);
}
@Handler
public Consumer<MovementEvent> eventConsumer0 = event -> {
};
@Handler
public Consumer<UpdateEvent> eventConsumer1 = (event) -> {
if (isMode("Vanilla")) {
mc.timer.timerSpeed = 1f;
if (event.isPre()) {
float speed = getDouble("Speed").floatValue();
MovementInput movementInput = mc.thePlayer.movementInput;
mc.thePlayer.motionY = movementInput.isJumping() ? speed * 0.5F
: movementInput.isSneaking() ? -speed * 0.5F
: 0.0F;
MovementUtils.setMoveSpeed(speed);
if (getBool("Anti-Kick") && timer.delay(700.0f)) {
MovementUtils.fallPacket();
MovementUtils.ascendPacket();
timer.reset();
}
}
}
if (isMode("Damage")) {
mc.timer.timerSpeed = 1f;
if (event.isPre()) {
mc.thePlayer.sendQueue.addToSendQueue(new C0CPacketInput());
mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer(true));
mc.thePlayer.onGround = false;
float speed = getDouble("Speed").floatValue();
MovementInput movementInput = mc.thePlayer.movementInput;
mc.thePlayer.motionY = movementInput.isJumping() ? speed * 0.5F
: movementInput.isSneaking() ? -speed * 0.5F : 0.0F;
MovementUtils.setMoveSpeed(speed);
}
}
if (isMode("Verus")) {
mc.thePlayer.sendQueue.addToSendQueue(new C08PacketPlayerBlockPlacement(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY - 1.5, mc.thePlayer.posZ), 1, new ItemStack(Blocks.stone.getItem(mc.theWorld, new BlockPos(-1, -1, -1))), 0, 0.94f, 0));
MovementUtils.setMoveSpeed(0.36);
mc.timer.timerSpeed = 1f;
if (y >= 11) {
y = 0;
}
y++;
mc.thePlayer.motionY = 0f;
}
};
@Handler
public Consumer<PacketOutEvent> eventConsumer11 = (event) -> {
if (event.getPacket() instanceof C0FPacketConfirmTransaction) {
event.cancel();
timer.reset();
}
if (event.getPacket() instanceof C00PacketKeepAlive) {
event.cancel();
timer.reset();
}
};
@Override
public void onEnable() {
if(this.isMode("Damage")) {
mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX,
mc.thePlayer.posY + 3.05, mc.thePlayer.posZ, false));
mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX,
mc.thePlayer.posY, mc.thePlayer.posZ, false));
mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX,
mc.thePlayer.posY + 0.41999998688697815, mc.thePlayer.posZ, true));
mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.5, mc.thePlayer.posZ);
}
}
@Override
public void onDisable() {
MovementUtils.setMoveSpeed(0);
}
}
// NOTE (AI): The C0C sits directly before the C03(true) in the Damage mode loop. The same file cancels C00 keepalive and C0F transaction as collateral, so this is the full disabler-style packet diet inside a movement module.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.
// ===== FILE: LiquidSense Dev, me/AquaVit/liquidSense/modules/world/Tp.java =====
package me.AquaVit.liquidSense.modules.world;
import net.ccbluex.liquidbounce.event.EventTarget;
import net.ccbluex.liquidbounce.event.MoveEvent;
import net.ccbluex.liquidbounce.event.PacketEvent;
import net.ccbluex.liquidbounce.event.TickEvent;
import net.ccbluex.liquidbounce.features.module.Module;
import net.ccbluex.liquidbounce.features.module.ModuleCategory;
import net.ccbluex.liquidbounce.features.module.ModuleInfo;
import net.ccbluex.liquidbounce.utils.ClientUtils;
import net.ccbluex.liquidbounce.utils.CustomVec3;
import net.ccbluex.liquidbounce.utils.PathfindingUtils;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.client.network.NetHandlerPlayClient;
import net.minecraft.entity.player.PlayerCapabilities;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C0CPacketInput;
import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
import net.minecraft.network.play.client.C13PacketPlayerAbilities;
import net.minecraft.network.play.server.S08PacketPlayerPosLook;
import static net.ccbluex.liquidbounce.utils.MovementUtils.getMaxFallDist;
@ModuleInfo(name = "Tp",description = "Allows you to teleport around.", category = ModuleCategory.WORLD,array = false)
public class Tp extends Module {
public static float x;
public static float y;
public static float z;
boolean tp;
@Override
public void onEnable() {
if (mc.thePlayer == null)
return;
tp = false;
ClientUtils.displayChatMessage("Wait For Server LagBack");
PlayerCapabilities playerCapabilities = new PlayerCapabilities();
playerCapabilities.isFlying = true;
mc.getNetHandler().addToSendQueue(new C0FPacketConfirmTransaction(0, (short)(-1), false));
mc.getNetHandler().addToSendQueue(new C13PacketPlayerAbilities(playerCapabilities));
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX,
mc.thePlayer.posY + 0.17, mc.thePlayer.posZ, true));
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX,
mc.thePlayer.posY + 0.06, mc.thePlayer.posZ, true));
mc.thePlayer.stepHeight = 0.0f;
mc.thePlayer.motionX = 0.0;
mc.thePlayer.motionZ = 0.0;
}
@Override
public void onDisable() {
mc.timer.timerSpeed = 1.0f;
mc.thePlayer.stepHeight = 0.625f;
mc.thePlayer.motionX = 0.0;
mc.thePlayer.motionZ = 0.0;
}
@EventTarget
public void onTick(TickEvent event) {
if (tp) {
double offset = 0.060100000351667404;
NetHandlerPlayClient netHandler = mc.getNetHandler();
EntityPlayerSP player = mc.thePlayer;
double x2 = player.posX;
double y2 = player.posY;
double z2 = player.posZ;
int i = 0;
while (i < getMaxFallDist() / 0.05510000046342611 + 1.0) {
netHandler.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(x2, y2 + 0.060100000351667404, z2, false));
netHandler.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(x2, y2 + 5.000000237487257E-4, z2, false));
netHandler.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(x2, y2 + 0.004999999888241291 + 6.01000003516674E-8, z2, false));
++i;
}
netHandler.addToSendQueue(new C03PacketPlayer(true));
mc.getNetHandler().addToSendQueue(new C0CPacketInput(0.0f, 0.0f, true, true));
double lastY = mc.thePlayer.posY, downY = 0;
for (CustomVec3 vec3 : PathfindingUtils.computePath(
new CustomVec3(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ),
new CustomVec3(x, y, z))) {
if (vec3.getY() < lastY) {
downY += (lastY - vec3.getY());
}
if (downY > 2.5) {
downY = 0;
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(vec3.getX(),
vec3.getY(), vec3.getZ(), true));
} else {
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(vec3.getX(),
vec3.getY(), vec3.getZ(), false));
}
lastY = vec3.getY();
}
//Teleported
mc.thePlayer.setPosition(x, y, z);
this.setState(false);
}
}
@EventTarget
public void onMove(MoveEvent e) {
if (!tp) {
e.cancelEvent();
}
}
@EventTarget
public final void onSendPacket(PacketEvent event) {
if (!tp && event.getPacket() instanceof C03PacketPlayer) {
event.cancelEvent();
}
if (event.getPacket() instanceof S08PacketPlayerPosLook) {
if (!this.tp) {
this.tp = true;
ClientUtils.displayChatMessage("Start TelePort");
}
}
}
}
// NOTE (AI): The C0C send is line 75, between the C03(true) reset and the path walk; the rest is the lagback-teleport machinery.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.
// ===== FILE: November Recode 2.0, scripting/wrapper/event/LuaEventPacket.java =====
/* November.lol © 2023 */
package lol.november.scripting.wrapper.event;
import java.util.HashMap;
import java.util.Map;
import lol.november.listener.event.net.EventPacket;
import lol.november.protect.DontObfuscate;
import lombok.Getter;
import lombok.Setter;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.*;
/**
* @author Gavin
* @since 2.0.0
*/
@Getter
@Setter
@DontObfuscate
public class LuaEventPacket {
/**
* A map of each {@link Packet} to their id
*/
private static final Map<Class<? extends Packet<?>>, Integer> packetIds =
new HashMap<>();
static {
// you may ask: why not use reflection and just.. do a funny?
// obfuscation eventually happens so this aids has to happen
packetIds.put(C0APacketAnimation.class, 0x0A);
packetIds.put(C0BPacketEntityAction.class, 0x0B);
packetIds.put(C0CPacketInput.class, 0x0C);
packetIds.put(C0DPacketCloseWindow.class, 0x0D);
packetIds.put(C0EPacketClickWindow.class, 0x0E);
packetIds.put(C0FPacketConfirmTransaction.class, 0x0F);
packetIds.put(C00PacketKeepAlive.class, 0x00);
packetIds.put(C01PacketChatMessage.class, 0x01);
packetIds.put(C02PacketUseEntity.class, 0x02);
packetIds.put(C03PacketPlayer.class, 0x03);
packetIds.put(C03PacketPlayer.C04PacketPlayerPosition.class, 0x04);
packetIds.put(C03PacketPlayer.C05PacketPlayerLook.class, 0x05);
packetIds.put(C03PacketPlayer.C06PacketPlayerPosLook.class, 0x06);
packetIds.put(C07PacketPlayerDigging.class, 0x07);
packetIds.put(C08PacketPlayerBlockPlacement.class, 0x08);
packetIds.put(C09PacketHeldItemChange.class, 0x09);
packetIds.put(C10PacketCreativeInventoryAction.class, 0x10);
packetIds.put(C11PacketEnchantItem.class, 0x11);
packetIds.put(C12PacketUpdateSign.class, 0x12);
packetIds.put(C13PacketPlayerAbilities.class, 0x13);
packetIds.put(C14PacketTabComplete.class, 0x14);
packetIds.put(C15PacketClientSettings.class, 0x15);
packetIds.put(C16PacketClientStatus.class, 0x16);
packetIds.put(C17PacketCustomPayload.class, 0x17);
packetIds.put(C18PacketSpectate.class, 0x18);
packetIds.put(C19PacketResourcePackStatus.class, 0x19);
}
private final int packet;
private final String direction;
public LuaEventPacket(EventPacket event) {
packet = packetIds.getOrDefault(event.get().getClass(), -1);
direction = event.get() instanceof EventPacket.Out ? "out" : "in";
}
}
// NOTE (AI): C0C is registered as 0x0C in the serverbound id table.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.
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.
// ===== FILE: GrimAnticheat-Grim, common/src/main/java/ac/grim/grimac/checks/impl/vehicle/VehicleA.java =====
package ac.grim.grimac.checks.impl.vehicle;
import ac.grim.grimac.api.storage.verbose.Verbose;
import ac.grim.grimac.checks.Check;
import ac.grim.grimac.checks.CheckData;
import ac.grim.grimac.checks.type.PreViaPacketReceiveListener;
import ac.grim.grimac.player.GrimPlayer;
import com.github.retrooper.packetevents.event.PacketReceiveEvent;
import com.github.retrooper.packetevents.protocol.packettype.PacketType;
import com.github.retrooper.packetevents.wrapper.play.client.WrapperPlayClientSteerVehicle;
@CheckData(name = "VehicleA", stableKey = "grim.vehicle.impossible_input", description = "Impossible input values")
public class VehicleA extends Check implements PreViaPacketReceiveListener {
private static final Verbose V = Verbose.of("forwards={f32}, sideways={f32}");
public VehicleA(GrimPlayer player) {
super(player);
}
@Override
public void onPreViaPacketReceive(final PacketReceiveEvent event) {
if (event.getPacketType() == PacketType.Play.Client.STEER_VEHICLE) {
final WrapperPlayClientSteerVehicle packet = new WrapperPlayClientSteerVehicle(event);
if (Math.abs(packet.getForward()) > 0.98f || Math.abs(packet.getSideways()) > 0.98f) {
if (flag(V.write(verbose()).f32(packet.getForward()).f32(packet.getSideways())) && shouldModifyPackets()) {
event.setCancelled(true);
player.onPacketCancel();
}
}
}
}
}
// NOTE (AI): The companion VehicleB check in the same anticheat cancels steer packets sent while the player is not in a vehicle, and VehicleC pairs the input with predicted vehicle control.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.
// ===== FILE: Updated-NoCheatPlus-NoCheatPlus, NCPCompatProtocolLib/src/main/java/fr/neatmonster/nocheatplus/checks/net/protocollib/InputsAdapter.java =====
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package fr.neatmonster.nocheatplus.checks.net.protocollib;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.events.ListenerPriority;
import com.comphenix.protocol.events.PacketContainer;
import com.comphenix.protocol.events.PacketEvent;
import com.comphenix.protocol.reflect.StructureModifier;
import com.comphenix.protocol.wrappers.AutoWrapper;
import fr.neatmonster.nocheatplus.checks.net.NetData;
import fr.neatmonster.nocheatplus.checks.net.model.DataPacketInput;
import fr.neatmonster.nocheatplus.players.DataManager;
import fr.neatmonster.nocheatplus.players.IPlayerData;
/**
* Listen to the Steer_vehicle packet for extrapolating input information sent by the player (1.21.2+)
* The packet is actually named "Player_Input" in the Minecraft protocol, but ProtocolLib uses the former name for compatibility.
*/
public class InputsAdapter extends BaseAdapter {
private static AutoWrapper<DataPacketInput> INPUT_WRAPPER;
private static PacketType[] initPacketTypes() {
final List<PacketType> types = new LinkedList<PacketType>(Arrays.asList(PacketType.Play.Client.STEER_VEHICLE));
return types.toArray(new PacketType[types.size()]);
}
public InputsAdapter(Plugin plugin) {
super(plugin, ListenerPriority.MONITOR, initPacketTypes());
}
@Override
public void onPacketReceiving(final PacketEvent event) {
handleInputPacket(event);
}
private void handleInputPacket(PacketEvent event) {
try {
if (event.isPlayerTemporary()) return;
}
catch (NoSuchMethodError e) {
if (event.getPlayer() == null) {
counters.add(ProtocolLibComponent.idNullPlayer, 1);
return;
}
if (DataManager.getPlayerDataSafe(event.getPlayer()) == null) {
return;
}
}
final Player player = event.getPlayer();
final PacketContainer packet = event.getPacket();
final IPlayerData pData = DataManager.getPlayerData(player);
final NetData data = pData.getGenericInstance(NetData.class);
// Instead of a primitive, we're being handed the full Input object from Mojang’s code.
StructureModifier<Object> objs = packet.getModifier().withType(Object.class);
Object raw = objs.read(0);
if (INPUT_WRAPPER == null) {
INPUT_WRAPPER = AutoWrapper.wrap(DataPacketInput.class, raw.getClass());
}
final DataPacketInput in = INPUT_WRAPPER.wrap(raw);
data.addInputQueue(in);
}
}
// NOTE (AI): This adapter exists because the modern Input object no longer maps to simple packet fields, so NCP wraps the raw object with an AutoWrapper.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.
// ===== FILE: CoolMineman-CheaterDeleter, src/main/java/io/github/coolmineman/cheaterdeleter/modules/movement/entity/BoatFlyCheck.java =====
package io.github.coolmineman.cheaterdeleter.modules.movement.entity;
import org.jetbrains.annotations.Nullable;
import io.github.coolmineman.cheaterdeleter.events.VehicleMoveListener;
import io.github.coolmineman.cheaterdeleter.modules.CDModule;
import io.github.coolmineman.cheaterdeleter.objects.PlayerMoveC2SPacketView;
import io.github.coolmineman.cheaterdeleter.objects.entity.CDEntity;
import io.github.coolmineman.cheaterdeleter.objects.entity.CDPlayer;
import io.github.coolmineman.cheaterdeleter.util.BlockCollisionUtil;
import io.github.coolmineman.cheaterdeleter.util.PunishUtil;
import net.minecraft.network.packet.c2s.play.PlayerInputC2SPacket;
import net.minecraft.network.packet.c2s.play.VehicleMoveC2SPacket;
import net.minecraft.util.math.Box;
public class BoatFlyCheck extends CDModule implements VehicleMoveListener {
public BoatFlyCheck() {
super("boat_fly_check");
VehicleMoveListener.EVENT.register(this);
}
@Override
public long getFlagCoolDownMs() {
return 100;
}
@Override
public void onVehicleMove(CDPlayer player, CDEntity vehicle, PlayerMoveC2SPacketView playerLook, PlayerInputC2SPacket playerInput, VehicleMoveC2SPacket vehicleMoveC2SPacket, @Nullable VehicleMoveC2SPacket lastVehicleMoveC2SPacket) {
if (!enabledFor(player)) return;
if (vehicle != null && lastVehicleMoveC2SPacket != null) {
double ydelta = vehicleMoveC2SPacket.getY() - lastVehicleMoveC2SPacket.getY() - 0.001;
Box box = vehicle.getBoxForPosition(vehicleMoveC2SPacket.getX(), vehicleMoveC2SPacket.getY(), vehicleMoveC2SPacket.getZ());
if (vehicle.getStepHeight() == 0 && ydelta > 0 && vehicle.getVelocity().getY() <= 0) {
if (assertOrFlag(player.getWorld().getTime() - vehicle.getPistonMovementTick() < 1000 || BlockCollisionUtil.isTouching(box, player.getWorld(), BlockCollisionUtil.LIQUID), player, FlagSeverity.MAJOR, "Boat Fly " + ydelta + " " + vehicle.getVelocity().getY()))
PunishUtil.groundBoat(player, vehicle);
}
}
}
}
// NOTE (AI): CheaterDeleter receives the input packet as PlayerInputC2SPacket inside the vehicle move event, so the check reads both streams at once.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.
// ===== FILE: amnoah-BetterAnticheat, core/src/main/java/better/anticheat/core/check/impl/flying/RepeatedSteerCheck.java =====
package better.anticheat.core.check.impl.flying;
import better.anticheat.core.BetterAnticheat;
import better.anticheat.core.check.Check;
import better.anticheat.core.check.CheckInfo;
import better.anticheat.core.player.Player;
import com.github.retrooper.packetevents.event.simple.PacketPlayReceiveEvent;
import com.github.retrooper.packetevents.protocol.packettype.PacketType;
import com.github.retrooper.packetevents.wrapper.play.client.WrapperPlayClientPlayerFlying;
import com.github.retrooper.packetevents.wrapper.play.client.WrapperPlayClientVehicleMove;
/**
* This check looks for artificial vehicle movement packets.
*/
@CheckInfo(name = "RepeatedSteer", category = "flying")
public class RepeatedSteerCheck extends Check {
private boolean lastRotating = true;
public RepeatedSteerCheck(BetterAnticheat plugin, Player player) {
super(plugin, player);
}
@Override
public void handleReceivePlayPacket(PacketPlayReceiveEvent event) {
/*
* This check works by the fact that between every two Vehicle Move packets the client sends a rotation. I'm
* not exactly sure why this is since the Vehicle Move packets already includes rotation information, but that
* works for us anyway!
*/
if (WrapperPlayClientPlayerFlying.isFlying(event.getPacketType())) {
WrapperPlayClientPlayerFlying wrapper = new WrapperPlayClientPlayerFlying(event);
if (wrapper.hasRotationChanged()) lastRotating = true;
} else if (event.getPacketType() == PacketType.Play.Client.VEHICLE_MOVE) {
if (!lastRotating) fail();
lastRotating = false;
}
}
}
// NOTE (AI): The check reads the vehicle move stream and the flying rotation stream together; the comment admits the rotation interleave is an observed client quirk rather than documented behavior.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.
// ===== FILE: intave-intave, src/main/java/de/jpx3/intave/packet/reader/SteerVehicleReader.java =====
/*
* Copyright 2026 Intave
*
* This software is licensed under the PolyForm Perimeter License 1.0.0.
* You may use this software for any purpose, except for providing to
* others any product that competes with the software.
*
* A copy of the license is available at:
* https://polyformproject.org/licenses/perimeter/1.0.0/
*/
package de.jpx3.intave.packet.reader;
public final class SteerVehicleReader extends AbstractPacketReader {
public boolean isJumping() {
return Boolean.TRUE.equals(packet().getBooleans().readSafely(0));
}
}
// NOTE (AI): The reader is minimal because the simulator consumes it; the boat physics live in BoatSimulator and the base simulator classes.Related Packets
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
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.