0x2A S2APacketParticles
Spawns particle effects at a position with offset, speed, and count.
Published 2026-06-18 · Updated 2026-10-14
Fields
| Field | Type | Description |
|---|---|---|
| particleName | String | Particle type (iconcrack, blockcrack, mobSpell, etc.) |
| x/y/z | float | Source position |
| offsetX/Y/Z | float | Random spread |
| speed | float | Particle velocity |
| count | int | Number of particles |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Particle Name | String | |
| X | float | |
| Y | float | |
| Z | float | |
| Offset X/Y/Z | float | Spread |
| Speed | float | |
| Count | int |
MCP References
NetHandlerPlayClient.handleParticles()Handler Interface
INetHandlerPlayClientNotes
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 | |
Deobfuscated MCP 1.8.9 source of S2APacketParticles, fetched directly from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/play/server/S2APacketParticles.java) at build time and verified present.
Deep Dive
Role in the protocol
Spawns a particle burst at a world position with random offset, speed, and count. The particle name is a String that the client maps to an EnumParticleTypes; a trailing varint array carries iconcrack/blockcrack item and block data. Server-side it is the workhorse of WorldServer.spawnParticle, which batches particles into a single packet and sends it with a long-distance flag when the emitter is far from the viewer. The client handler walks the count in a loop, so a large count is a direct CPU/GPU cost on the receiving machine.
Vanilla handling
NetHandlerPlayClient.handleParticles marshals to the main thread, then calls clientWorldController.spawnParticle. When count is 0 the offset floats are treated as a single particle's velocity; otherwise the offsets are random spread and count particles are spawned. A Throwable around the spawn call logs 'Could not spawn particle effect' instead of crashing. The server path (WorldServer.spawnParticle) constructs one S2A per batch and uses sendToAllNear with a 512-block radius when longDistance is set.
Why clients touch it
Five distinct uses in the 8 clients. (1) Memeware 7.3 Disabler cancels every S2A unconditionally, an anti-lag/anti-crash blanket filter. (2) Rise 5.99 Disabler cancels only SLIME-type particles in its HypixelSlime mode. (3) Rise 6.x ParticleDistanceComponent, a performance component, drops any particle further than 6 blocks from the player. (4) Rise 6.x ParticleCheck, a security feature, token-buckets particle counts and drops floods. (5) Tenacity 6.0 AntiExploit cancels particles with extreme speed or count, and Sigma 4.11 Criticals skips S2A inside its own packet state machine so the crit-trigger logic is not disturbed.
Exploit surface
Particle floods are a classic client-crash vector: a server sends one S2A with a huge count or repeated packets, and the client spawns thousands of entities per tick. Anti-cheat servers also use particle bursts as visual flags for cheaters (crit particles on KillAura, etc.). Client defenses range from blanket cancellation (Memeware) to rate limiting (Rise ParticleCheck: accumulate count, drain 6 per packet, cap 150, drop over 100) to heuristic drops (Tenacity: speed >= 1 or count > 1). The trade-off is visibility: aggressive cancellation hides legitimate gameplay effects.
Server-Side Handling
WorldServer.spawnParticle builds one S2APacketParticles per batch with particle type, longDistance flag, x/y/z floats, three offset floats, speed, count, and a varint data array. It sends via ConfigurationManager.sendToAllNear (radius 512 when longDistance, else 32). NetHandlerPlayClient.handleParticles then loops count times through clientWorldController.spawnParticle, which is where a flood becomes a client-side hang. No server-side cap exists on count in vanilla 1.8.9.
Protocol Analysis
Encoding: String particle name, boolean longDistance, float x, float y, float z, float offsetX, float offsetY, float offsetZ, float speed, int count, then a varint-length int array of particle arguments used only by iconcrack and blockcrack. The name is read with readStringFromBuffer(64). Count 0 is special: offsets become velocity for a single particle. The packet was introduced in 1.8 with the EnumParticleTypes refactor that replaced the older string-only effect packets.
Anti-Cheat Landscape
Anti-cheats use particles as a side channel rather than flagging the packet itself: critical-hit particles around a target are evidence for killaura checks on servers that render them. The client-side countermeasures here are defensive, not evasive. The interesting tension is Rise ParticleCheck's accumulator: it treats particle arrival as a budget (drain 6 per packet, cap 150, drop when the bucket exceeds 100), which keeps normal combat particles while killing flood attempts. Blanket cancels (Memeware) trade all particle feedback for stability.
implementation Implementation Cases
The particle broadcast packet, and the only one of the six where client defense depth actually shows: blanket cancel (Memeware), selective cancel (Rise 5.99 slime mode), distance culling (Rise 6.x performance component), flood rate limiting (Rise 6.x ParticleCheck), and crash heuristics (Tenacity AntiExploit). Sigma's Criticals skips it inside its packet state machine.
Remove particle traffic client-side: blanket in Memeware, selective slime-only in Rise 5.99.
Memeware's Disabler registers a PacketInEvent consumer that cancels every S2A it sees, unconditionally, regardless of mode. Rise 5.99's Disabler, in HypixelSlime mode, checks the particle type and cancels only EnumParticleTypes.SLIME. Nekoware's Disabler imports the class but ships no active particle handler in the file.
// ===== FILE: Memeware 7.3, me/memewaredevs/client/module/exploit/Disabler.java =====
package me.memewaredevs.client.module.exploit;
import me.hippo.api.lwjeb.annotation.Handler;
import me.memewaredevs.client.event.events.PacketInEvent;
import me.memewaredevs.client.event.events.PacketOutEvent;
import me.memewaredevs.client.event.events.UpdateEvent;
import me.memewaredevs.client.module.Module;
import me.memewaredevs.client.util.ChatUtil;
import me.memewaredevs.client.util.misc.Timer;
import me.memewaredevs.client.util.packet.PacketUtil;
import net.minecraft.entity.player.PlayerCapabilities;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.*;
import net.minecraft.network.play.server.S08PacketPlayerPosLook;
import net.minecraft.network.play.server.S2APacketParticles;
import org.apache.commons.lang3.RandomUtils;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.function.Consumer;
public class Disabler extends Module {
private static final int VERUS_DISABLE_AUTOBAN_CHANNEL = 65536;
private static final short VERUS_DISABLE_AUTOBAN_UID = 32767;
private final Queue<Packet> packetQueue = new ConcurrentLinkedQueue();
private final Timer timer = new Timer();
private final Timer timer1 = new Timer();
public Disabler(final String name, final int key, final Module.Category category) {
super(name, key, category);
this.addModes("Mineplex Combat", "Transaction", "Latest Verus", "PvPTemple", "OmegaCraft", "Timer", "AACv1.9.10", "Sloth", "Ghostly", "Watchdog", "Faithful Movement");
}
@Override
public void onDisable() {
packetQueue.clear();
}
@Override
public void onEnable() {
timer.reset();
}
@Handler
public Consumer<PacketInEvent> packetInEventConsumer = (event) -> {
if (isMode("Sloth")) {
if (event.getPacket() instanceof S08PacketPlayerPosLook) {
S08PacketPlayerPosLook playerPosLook = (S08PacketPlayerPosLook) event.getPacket();
/**
* Works alongside with the spigot exploit.
* Exploit PlayerData bug (Player data gets set to null if the previous event is cancelled, and y difference <= 1.0E-4)
*/
playerPosLook.y += 1.0E-4;
}
}
};
@Handler
public Consumer<UpdateEvent> eventConsumer = (event) -> {
if (isMode("Latest Verus")) {
if (timer.delay(490L)) {
if (!packetQueue.isEmpty()) {
PacketUtil.sendPacketSilent(packetQueue.poll());
}
timer.reset();
}
}
if (isMode("OmegaCraft")) {
PacketUtil.sendPacketSilent(new C0FPacketConfirmTransaction(VERUS_DISABLE_AUTOBAN_CHANNEL, VERUS_DISABLE_AUTOBAN_UID, true));
}
if (isMode("PvPTemple")) { // Added by Auth
event.setGround(false);
event.setY(event.getY() + 0.42);
event.setYaw(0);
event.setPitch(0);
}
if (isMode("Watchdog")) {
if (timer.delay(15000L)) {
if (!packetQueue.isEmpty()) {
PacketUtil.sendPacketSilent(packetQueue.poll());
}
timer.reset();
}
}
};
@Handler
public Consumer<PacketInEvent> eventConsumer0 = (event) -> {
if (event.getPacket() instanceof S2APacketParticles) {
event.cancel();
}
};
@Handler
public Consumer<PacketOutEvent> eventConsumer1 = (event) -> {
if (isMode("Mineplex Combat"))
if (event.getPacket() instanceof C00PacketKeepAlive) {
C00PacketKeepAlive packetKeepAlive = (C00PacketKeepAlive) event.getPacket();
packetKeepAlive.key -= RandomUtils.nextInt(3, 128);
}
if (isMode("OmegaCraft"))
if (event.getPacket() instanceof C0FPacketConfirmTransaction)
event.cancel();
if (isMode("Latest Verus")) {
if (event.getPacket() instanceof C0FPacketConfirmTransaction) {
C0FPacketConfirmTransaction c0fPacketConfirmTransaction = (C0FPacketConfirmTransaction) event.getPacket();
packetQueue.add(c0fPacketConfirmTransaction);
event.cancel();
}
if (event.getPacket() instanceof C03PacketPlayer) {
C03PacketPlayer c03 = (C03PacketPlayer) event.getPacket();
if (mc.thePlayer.ticksExisted % 33 == 0) {
c03.y = -0.911;
c03.onGround = false;
c03.field_149480_h = false;
}
}
if (mc.thePlayer != null && mc.thePlayer.ticksExisted <= 7) {
timer.reset();
packetQueue.clear();
}
}
if (isMode("Timer") && event.getPacket() instanceof C03PacketPlayer) {
if (mc.thePlayer.ticksExisted % 3 != 0) {
event.cancel();
}
}
if (isMode("AACv1.9.10")) {
if (event.getPacket() instanceof C03PacketPlayer) {
PacketUtil.sendPacketSilent(new C0CPacketInput());
C03PacketPlayer packetPlayer = (C03PacketPlayer) event.getPacket();
/**
* Resets all checks VL due to a bug in critical hit check
*/
packetPlayer.y += 7.0E-9D;
}
}
if (isMode("Sloth")) {
if (event.getPacket() instanceof C03PacketPlayer) {
C03PacketPlayer packetPlayer = (C03PacketPlayer) event.getPacket();
if (!timer.delay(1000L)) {
for (int i = 0; i < 10; ++i) {
double y = i > 2 && i < 8 ? 11 : 120;
PacketUtil.sendPacketSilent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY - y, mc.thePlayer.posZ, true));
}
} else {
//set to default jump value so viper can stop fucking value patching it
packetPlayer.y += 0.42F;
}
}
}
if (isMode("Faithful Movement")) {
if (mc.thePlayer != null && event.getPacket() instanceof C00PacketKeepAlive) {
C00PacketKeepAlive packetKeepAlive = (C00PacketKeepAlive) event.getPacket();
packetKeepAlive.key -= 31;
}
}
if (isMode("Ghostly")) { // Ghostly Disabler added by Auth
if (event.getPacket() instanceof C03PacketPlayer)
PacketUtil.sendPacketSilent(new C0CPacketInput());
if (event.getPacket() instanceof C0FPacketConfirmTransaction)
event.cancel();
}
if (isMode("Watchdog")) {
// PacketUtil.sendPacketSilent(new C0EPacketClickWindow());
if (mc.getCurrentServerData().serverIP.contains("hypixel.net")) {
if (mc.thePlayer.ticksExisted % 30 == 0) {
PlayerCapabilities pc = new PlayerCapabilities();
pc.isFlying = true;
pc.setFlySpeed(Float.NaN);
PacketUtil.sendPacketSilent(new C13PacketPlayerAbilities(pc));
}
System.out.println(event.getPacket());
if (event.getPacket() instanceof C0FPacketConfirmTransaction) {
event.setPacket(new C0FPacketConfirmTransaction(Integer.MIN_VALUE, Short.MAX_VALUE, true));
}
} else {
ChatUtil.printChat("You must be on Hypixel to use Watchdog Disabler!");
this.toggle();
}
}
};
}
// NOTE (AI): The S2A handler is a standalone PacketInEvent consumer (lines ~92-97) that cancels all particle packets. The rest of the module is the mode-switching keepalive/transaction disabler.Drop particle packets whose origin is more than 6 blocks away to save GPU work.
A Component (non-module system) listening on PacketReceiveEvent. For each S2A it computes the squared distance from the player to the packet origin and cancels the packet when distanceSq >= 36, i.e. 6 blocks. Particles closer than 6 blocks pass through untouched.
// ===== FILE: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/component/impl/performance/ParticleDistanceComponent.java =====
package com.alan.clients.component.impl.performance;
import com.alan.clients.component.Component;
import com.alan.clients.event.Listener;
import com.alan.clients.event.annotations.EventLink;
import com.alan.clients.event.impl.packet.PacketReceiveEvent;
import net.minecraft.network.Packet;
import net.minecraft.network.play.server.S2APacketParticles;
public class ParticleDistanceComponent extends Component {
@EventLink
public final Listener<PacketReceiveEvent> onPacketReceiveEvent = event -> {
final Packet<?> packet = event.getPacket();
if (packet instanceof S2APacketParticles) {
final S2APacketParticles wrapper = ((S2APacketParticles) packet);
final double distance = mc.thePlayer.getDistanceSq(wrapper.getXCoordinate(), wrapper.getYCoordinate(), wrapper.getZCoordinate());
if (distance >= 36) {
event.setCancelled();
}
}
};
}
// NOTE (AI): Components run in the same packet pipeline as modules but are always-on infrastructure. The 36 threshold is a squared-distance comparison, so the real cutoff is sqrt(36) = 6 blocks.Rate-limit inbound particle volume so a malicious server cannot crash the client with a flood.
A SecurityFeature. For each S2A it adds the packet's particle count to an accumulator, drains 6 per packet, and clamps the bucket at 150. The packet is dropped when the bucket exceeds 100, or when count is < 1, |count| > 20, or speed is negative or above 1000. Normal combat particles pass because their per-packet counts are small.
// ===== FILE: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/security/impl/ParticleCheck.java =====
package com.alan.clients.security.impl;
import com.alan.clients.security.SecurityFeature;
import net.minecraft.network.Packet;
import net.minecraft.network.play.server.S2APacketParticles;
public final class ParticleCheck extends SecurityFeature {
private int particles;
public ParticleCheck() {
super("ParticleCheck", "Server attempted to crash the client with a large amount of particles");
}
@Override
public boolean handle(final Packet<?> packet) {
if (packet instanceof S2APacketParticles) {
final S2APacketParticles wrapper = ((S2APacketParticles) packet);
particles += wrapper.getParticleCount();
particles -= 6;
particles = Math.min(particles, 150);
return particles > 100 || wrapper.getParticleCount() < 1 || Math.abs(wrapper.getParticleCount()) > 20 ||
wrapper.getParticleSpeed() < 0 || wrapper.getParticleSpeed() > 1000;
}
return false;
}
}
// NOTE (AI): The bucket math (add count, drain 6, clamp 150, flag over 100) is a token-bucket rate limiter with generous headroom for legit gameplay particles.Cancel particle packets that look like crash attempts while logging the block.
A PacketReceiveEvent handler. For S2A it cancels and prints 'Blocked Exploit: Particles' when |particleSpeed| >= 1, or 'Blocked Exploit: Crash' when particleCount > 1. The module bundles several crash-vector filters (resource pack URLs, camera spectate, explosion strength) with a shared 100-packet-per-second counter.
// ===== FILE: Tenacity 6.0, dev/tenacity/module/impl/misc/AntiExploit.java =====
package dev.tenacity.module.impl.misc;
import dev.tenacity.event.IEventListener;
import dev.tenacity.event.impl.packet.PacketReceiveEvent;
import dev.tenacity.module.Module;
import dev.tenacity.module.ModuleCategory;
import dev.tenacity.util.misc.ChatUtil;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C19PacketResourcePackStatus;
import net.minecraft.network.play.server.*;
import java.net.URI;
import java.net.URISyntaxException;
public class AntiExploit extends Module {
private long lastExplosion = 0, lastExperience = 0;
private int invalidExperience = 0;
final int PACKET_THRESHOLD = 100;
final long CHECK_INTERVAL = 1000;
int packetCount = 0;
public AntiExploit() {
super("AntiExploit", "Prevents server exploits", ModuleCategory.MISC);
}
private final IEventListener<PacketReceiveEvent> onReceivePacket = event -> {
Packet<?> packet = event.getPacket();
handlePacketCount();
if(packet instanceof S48PacketResourcePackSend) {
S48PacketResourcePackSend resourcePack = (S48PacketResourcePackSend) packet;
try {
URI uri = new URI(resourcePack.getURL());
String scheme = uri.getScheme();
boolean isLevelProtocol = scheme.equalsIgnoreCase("level");
boolean isHttpProtocol = scheme.equalsIgnoreCase("http");
boolean isHttpsProtocol = scheme.equalsIgnoreCase("https");
if(!isHttpProtocol && !isHttpsProtocol && !isLevelProtocol) {
ChatUtil.print("§cBlocked Exploit: Resource Pack");
event.cancel();
} else if(isLevelProtocol && (resourcePack.getURL().contains("..") || !((S48PacketResourcePackSend) packet).getURL().endsWith("/resources.zip"))) {
ChatUtil.print("§cBlocked Exploit: File Access");
event.cancel();
mc.getNetHandler().addToSendQueue(new C19PacketResourcePackStatus(((S48PacketResourcePackSend) packet).getHash(), C19PacketResourcePackStatus.Action.FAILED_DOWNLOAD));
}
} catch (URISyntaxException exception) {
ChatUtil.print("§cBlocked Exploit: Resource Pack");
event.cancel();
mc.getNetHandler().addToSendQueue(new C19PacketResourcePackStatus(((S48PacketResourcePackSend) packet).getHash(), C19PacketResourcePackStatus.Action.FAILED_DOWNLOAD));
}
} else if(packet instanceof S43PacketCamera && !mc.thePlayer.isSpectator()) {
ChatUtil.print("§cBlocked Exploit: Crash");
event.cancel();
} else if(packet instanceof S2APacketParticles) {
S2APacketParticles particles = (S2APacketParticles) packet;
if(Math.abs(particles.getParticleSpeed()) >= 1) {
ChatUtil.print("§cBlocked Exploit: Particles");
event.cancel();
} else if(((S2APacketParticles) packet).getParticleCount() > 1) {
ChatUtil.print("§cBlocked Exploit: Crash");
event.cancel();
}
} else if(packet instanceof S27PacketExplosion) {
S27PacketExplosion explosion = (S27PacketExplosion) packet;
if(Math.abs(explosion.getStrength()) > 1) {
ChatUtil.print("§cBlocked Exploit: Crash");
event.cancel();
} else if(System.currentTimeMillis() - lastExplosion <= 1) {
ChatUtil.print("§cBlocked Exploit: Crash");
event.cancel();
} else if(packet instanceof S2APacketParticles) {
S2APacketParticles particles = (S2APacketParticles) packet;
if(Math.abs(particles.getParticleSpeed()) > 1) {
ChatUtil.print("§cBlocked Exploit: Particles");
event.cancel();
} else if(particles.getParticleCount() >= 1) {
ChatUtil.print("§cBlocked Exploit: Crash");
event.cancel();
}
}
lastExplosion = System.currentTimeMillis();
} else if(packet instanceof S18PacketEntityTeleport) {
S18PacketEntityTeleport teleport = (S18PacketEntityTeleport) packet;
double packetX = Math.abs(teleport.getX());
double packetY = Math.abs(teleport.getY());
double packetZ = Math.abs(teleport.getZ());
if(packetX > 30000000 || packetY > 30000000 || packetZ > 30000000) {
ChatUtil.print("§cBlocked Exploit: Teleport");
event.cancel();
}
} else if(packet instanceof S11PacketSpawnExperienceOrb) {
if(System.currentTimeMillis() - lastExperience <= 1) {
invalidExperience++;
if(invalidExperience >= 2) {
ChatUtil.print("§cBlocked Exploit: Crash");
event.cancel();
}
} else {
invalidExperience = 0;
}
lastExperience = System.currentTimeMillis();
}
};
private void triggerKick() {
ChatUtil.print("§cAbnormal packet activity detected. Kicking player...");
}
private void handlePacketCount() {
long currentTime = System.currentTimeMillis();
long lastPacketCheckTime = 0;
if (currentTime - lastPacketCheckTime > CHECK_INTERVAL) {
packetCount = 0;
lastPacketCheckTime = currentTime;
}
packetCount++;
if (packetCount > PACKET_THRESHOLD) {
triggerKick();
packetCount = 0;
}
}
}
// NOTE (AI): The particle branch (lines ~59-64) is deliberately blunt: any packet with speed >= 1 or count > 1 is killed. Normal ambient particles have near-zero speed and count 1, so the filter is safe in practice.Keep S2A out of the critical-hit packet state machine so it cannot reset the spoofed-position sequence.
In the EventPacket branch of Criticals, an early return fires when the packet is S2A, so particle broadcasts never reach the transaction/position logic below. The handler's state machine tracks C0F transactions and C03 position packets to trigger criticals; particle noise would otherwise be type-checked pointlessly.
// ===== FILE: Sigma 4.11, info/sigmaclient/module/impl/combat/Criticals.java =====
package info.sigmaclient.module.impl.combat;
import tv.twitch.chat.Chat;
import info.sigmaclient.Client;
import info.sigmaclient.event.Event;
import info.sigmaclient.event.RegisterEvent;
import info.sigmaclient.event.impl.EventAttack;
import info.sigmaclient.event.impl.EventJump;
import info.sigmaclient.event.impl.EventPacket;
import info.sigmaclient.event.impl.EventStep;
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.Bhop;
import info.sigmaclient.module.impl.movement.LongJump;
import info.sigmaclient.util.misc.ChatUtil;
import info.sigmaclient.util.misc.Timer;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.Entity;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C02PacketUseEntity;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C07PacketPlayerDigging;
import net.minecraft.network.play.client.C08PacketPlayerBlockPlacement;
import net.minecraft.network.play.client.C0APacketAnimation;
import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
import net.minecraft.network.play.server.S08PacketPlayerPosLook;
import net.minecraft.network.play.server.S2APacketParticles;
public class Criticals extends Module {
public static String PACKET = "MODE";
static String HURTTIME = "HURTTIME";
public static String MODE = "";
Timer lastStep = new Timer();
Timer timer = new Timer();
int groundTicks, stage, count;
double y;
//0.0625101D
public Criticals(ModuleData data) {
super(data);
settings.put(PACKET, new Setting<>(PACKET, new Options("Mode", "Packet", new String[]{"Packet", "HPacket", "Minis", "HMinis", "Hover", "Jump"}), "Critical attack method."));
settings.put(HURTTIME, new Setting<>(HURTTIME, 15, "The hurtTime tick to crit at.", 1, 0, 20));
}
@Override
public void onEnable() {
stage = 0;
String mm = ((Options) settings.get(PACKET).getValue()).getSelected();
count = 0;
if(mm.equalsIgnoreCase("Packet") || mm.equalsIgnoreCase("Minis")){
if (mc.getCurrentServerData() != null && mc.getCurrentServerData().serverIP.toLowerCase().contains("hypixel")){
Notifications.getManager().post("Warning", mm + " criticals doesn't bypass on Hypixel.", Notifications.Type.WARNING);
}
}
}
@Override
@RegisterEvent(events = {EventPacket.class, EventUpdate.class, EventJump.class, EventAttack.class, EventStep.class})
public void onEvent(Event event) {
if(event instanceof EventStep){
EventStep es = (EventStep)event;
if(!es.isPre()){
lastStep.reset();
if(!mc.thePlayer.isCollidedHorizontally){
y = mc.thePlayer.boundingBox.minY;
stage = 0;
}
}
}
if (event instanceof EventUpdate) {
EventUpdate em = (EventUpdate)event;
setSuffix(((Options) settings.get(PACKET).getValue()).getSelected() + " " + ((Number) settings.get(HURTTIME).getValue()).intValue());
if(MoveUtils.isOnGround(0.001)){
groundTicks ++;
}else if(!mc.thePlayer.onGround){
groundTicks = 0;
}
if(!MODE.equalsIgnoreCase(((Options) settings.get(PACKET).getValue()).getSelected())){
MODE = ((Options) settings.get(PACKET).getValue()).getSelected();
if(MODE.equalsIgnoreCase("Packet") || MODE.equalsIgnoreCase("Minis")){
if (mc.getCurrentServerData() != null && mc.getCurrentServerData().serverIP.toLowerCase().contains("hypixel")){
Notifications.getManager().post("Warning", MODE + " criticals doesn't bypass on Hypixel.", Notifications.Type.WARNING);
}
}
}
if(!MODE.equalsIgnoreCase("Packet") && !MODE.equalsIgnoreCase("HPacket")){
setSuffix(((Options) settings.get(PACKET).getValue()).getSelected());
}
if(em.isPre() && MODE.equalsIgnoreCase("Hover")){
mc.thePlayer.lastReportedPosY = 0;
double ypos = mc.thePlayer.posY;
if(MoveUtils.isOnGround(0.001)){
em.setOnGround(false);
if(stage == 0){
y = ypos + 1E-8;
em.setOnGround(true);
}else if(stage == 1)
y-= 5E-15;
else
y-= 4E-15;
if(y <= mc.thePlayer.posY){
stage = 0;
y = mc.thePlayer.posY;
em.setOnGround(true);
}
em.setY(y);
stage ++;
}else
stage = 0;
}
}
if (event instanceof EventPacket) {
EventPacket ep = (EventPacket) event;
Packet p = ep.getPacket();
if (p instanceof S2APacketParticles ) {
return;
}
if(p instanceof S08PacketPlayerPosLook){
stage = 0;
}
if(p instanceof C0FPacketConfirmTransaction){
C0FPacketConfirmTransaction packet = (C0FPacketConfirmTransaction)p;
boolean accepted = packet.isAccepted();
int uid = packet.getId();
if(accepted && uid == 0){
count ++;
if(Killaura.target != null){
// ep.setCancelled(true);
}
}
}
if(p instanceof C03PacketPlayer && ep.isPre()){
C03PacketPlayer pa = (C03PacketPlayer)p;
double y = pa.y;
if(timer.getTime() == 0)
if(MODE.equalsIgnoreCase("HPacket")){
//ep.setPacket(new C03PacketPlayer(true));
}
}
}
if(event instanceof EventJump){
EventJump ej = (EventJump)event;
if(ej.isPre()){
if (Killaura.isSetupTick() && Client.getModuleManager().isEnabled(Killaura.class)) {
if(MODE.equalsIgnoreCase("minis") || MODE.equalsIgnoreCase("HMinis")){
//if minis criticals is not on ground, send packet onground to be able to jump
Minecraft.getMinecraft().thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C06PacketPlayerPosLook(
mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch, true));
}
}
}
}
if(event instanceof EventAttack){
EventAttack ea = (EventAttack)event;
if(ea.isPreAttack()){
if( ea.getEntity() != null){
if(mc.thePlayer.onGround && MoveUtils.isOnGround(0.001) && !(Client.getModuleManager().isEnabled(LongJump.class) || Client.getModuleManager().isEnabled(Bhop.class))){
if(MODE.equalsIgnoreCase("Packet") || MODE.equalsIgnoreCase("HPacket")){
if( ea.getEntity().hurtResistantTime <= ((Number) settings.get(HURTTIME).getValue()).doubleValue() && lastStep.check(20)
&& (timer.check(200) || ea.getEntity().hurtResistantTime > 0) && mc.thePlayer.isCollidedVertically){
if(groundTicks > 1){
doCrits();
}
}
}else if (!mc.thePlayer.isJumping && ((Options) settings.get(PACKET).getValue()).getSelected().equalsIgnoreCase("Jump")){
mc.thePlayer.jump();
}
timer.reset();
}
}
}
}
}
private boolean hurtTimeCheck(Entity entity) {
return entity != null && entity.hurtResistantTime <= ((Number) settings.get(HURTTIME).getValue()).intValue();
}
public static void doCrits() {
//0.0625 , 17.64e-8
double off = 0.0626;
double x = mc.thePlayer.posX; double y = mc.thePlayer.posY; double z = mc.thePlayer.posZ;
mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(x, y+off, z, false));
if(MODE.equalsIgnoreCase("HPacket")){
mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(x, y+off+0.00000000001, z, false));
}
mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(x, y, z, false));
}
}
// NOTE (AI): The S2A guard (lines ~124-127) is a bare return inside the EventPacket handler. The module cares about C0FPacketConfirmTransaction and C03PacketPlayer; particles are skipped as irrelevant traffic.anticheat Anti-Cheat Checks
The particle packet is the one clientbound cosmetic packet that anticheats actively generate. Kauri, FlopAC, Artemis, Daedalus and intave all construct and send S2A (or its PacketEvents equivalent) to draw debug overlays: hitbox cuboids, rays and collision boxes during testing and at flag time. Artemis additionally ships a full read/write wrapper so the packet can be parsed and re-emitted by its pipeline. No anticheat flags S2A as a cheat signal; the corpus treats it as an output channel, not an input.
Render hitboxes, rays and collision boxes to the player's screen by sending particle packets, so staff and developers can see exactly what a check computed.
Kauri's Helper.drawRay and drawCuboid build a WrapperPlayServerParticle (the PacketEvents S2A equivalent) with the ray or box edge positions and send it to the player. FlopAC's MiscUtils does the same through its own WrappedPacketPlayOutWorldParticle wrapper, and its collision box types each implement a draw() that emits particles along their edges. Daedalus submits particle drawing for bounding boxes to a thread pool, and intave spawns villager-happy particles at waypoints via Bukkit spawnParticle, rate-limited per position. The packets are fired on flag, in debug mode, or from dedicated reveal handlers.
// ===== FILE: funkemunky-KauriV3, Anticheat/src/main/java/dev/brighten/ac/utils/Helper.java =====
package dev.brighten.ac.utils;
import com.github.retrooper.packetevents.protocol.particle.Particle;
import com.github.retrooper.packetevents.protocol.particle.type.ParticleType;
import com.github.retrooper.packetevents.protocol.world.states.type.StateType;
import com.github.retrooper.packetevents.protocol.world.states.type.StateTypes;
import com.github.retrooper.packetevents.util.Vector3d;
import com.github.retrooper.packetevents.util.Vector3f;
import com.github.retrooper.packetevents.util.Vector3i;
import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerParticle;
import dev.brighten.ac.data.APlayer;
import dev.brighten.ac.handler.entity.TrackedEntity;
import dev.brighten.ac.utils.world.BlockData;
import dev.brighten.ac.utils.world.CollisionBox;
import dev.brighten.ac.utils.world.EntityData;
import dev.brighten.ac.utils.world.types.RayCollision;
import dev.brighten.ac.utils.world.types.SimpleCollisionBox;
import org.bukkit.util.Vector;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
/**
* @author DeprecatedLuke
* Taken from <a href="https://github.com/DeprecatedLuke/fireflyx/blob/master/src/main/java/com/ngxdev/anticheat/utils/Helper.java">...</a>
*/
public class Helper {
public static Vector vector(double yaw, double pitch) {
Vector vector = new Vector();
vector.setY(-Math.sin(Math.toRadians(pitch)));
double xz = Math.cos(Math.toRadians(pitch));
vector.setX(-xz * Math.sin(Math.toRadians(yaw)));
vector.setZ(xz * Math.cos(Math.toRadians(yaw)));
return vector;
}
public static void drawRay(RayCollision collision, double distance, ParticleType<?> particle, Collection<? extends APlayer> players) {
for (double i = 0; i < distance; i += 0.2) {
float fx = (float) (collision.originX + (collision.directionX * i));
float fy = (float) (collision.originY + (collision.directionY * i));
float fz = (float) (collision.originZ + (collision.directionZ * i));
WrapperPlayServerParticle packet = new WrapperPlayServerParticle(new Particle<>(particle), false,
new Vector3d(fx, fy, fz), new Vector3f(0, 0, 0), 0f, 1);
for (APlayer p : players) {
p.writePacketSilently(packet);
}
}
}
public static void drawCuboid(SimpleCollisionBox box, ParticleType<?> particle, Collection<? extends APlayer> players) {
Step.GenericStepper<Float> x = Step.step((float) box.minX, 0.241F, (float) box.maxX);
Step.GenericStepper<Float> y = Step.step((float) box.minY, 0.241F, (float) box.maxY);
Step.GenericStepper<Float> z = Step.step((float) box.minZ, 0.241F, (float) box.maxZ);
for (float fx : x) {
Iterator<Float> var8 = y.iterator();
label61:
while (var8.hasNext()) {
float fy = var8.next();
Iterator<Float> var10 = z.iterator();
while (true) {
float fz;
int check;
do {
if (!var10.hasNext()) {
continue label61;
}
fz = var10.next();
check = 0;
if (x.first() || x.last()) {
++check;
}
if (y.first() || y.last()) {
++check;
}
if (z.first() || z.last()) {
++check;
}
} while (check < 2);
WrapperPlayServerParticle packet = new WrapperPlayServerParticle(new Particle<>(particle), false,
new Vector3d(fx, fy, fz), new Vector3f(0, 0, 0), 0f, 1);
for (APlayer p : players) {
p.sendPacket(packet);
}
}
}
}
}
public static List<SimpleCollisionBox> getCollisions(APlayer player, SimpleCollisionBox collisionBox) {
return getCollisions(player, collisionBox, -100);
}
public static List<SimpleCollisionBox> getCollisions(APlayer player, SimpleCollisionBox collisionBox, int mask) {
List<SimpleCollisionBox> collisionBoxes = getCollisionsNoEntities(player, collisionBox, mask);
if(player != null) {
for (TrackedEntity entity : player.getInfo().getNearbyEntities()) {
if (!BlockUtils.isEntityCollidable(entity)) continue;
CollisionBox entityCollisionBox = EntityData.getEntityBox(entity.getLocation()
.toLocation(player.getBukkitPlayer().getWorld()), entity);
if (entityCollisionBox.isIntersected(collisionBox))
entityCollisionBox.downCast(collisionBoxes);
}
}
return collisionBoxes;
}
public static List<SimpleCollisionBox> getCollisionsNoEntities(APlayer player,
SimpleCollisionBox collisionBox, int mask) {
int x1 = (int) Math.floor(collisionBox.minX);
int y1 = (int) Math.floor(collisionBox.minY);
int z1 = (int) Math.floor(collisionBox.minZ);
int x2 = (int) Math.floor(collisionBox.maxX + 1);
int y2 = (int) Math.floor(collisionBox.maxY + 1);
int z2 = (int) Math.floor(collisionBox.maxZ + 1);
List<SimpleCollisionBox> collisionBoxes = new ArrayList<>();
for (int x = x1; x < x2; ++x)
for (int y = y1 - 1; y < y2; ++y)
for (int z = z1; z < z2; ++z) {
Vector3i vec = new Vector3i(x, y, z);
StateType type = player.getWorldTracker().getBlock(vec).getType();
if (type != StateTypes.AIR && (mask == -100 || Materials.checkFlag(type, mask))) {
CollisionBox box = BlockData.getData(type)
.getBox(player, vec, player.getPlayerVersion());
if (box.isIntersected(collisionBox)) {
box.downCast(collisionBoxes);
}
}
}
return collisionBoxes;
}
private static final int[] decimalPlaces = {0, 10, 100, 1000, 10000, 100000, 1000000,
10000000, 100000000, 1000000000};
public static double format(double d, int dec) {
return (long) (d * decimalPlaces[dec] + 0.5) / (double) decimalPlaces[dec];
}
}
// NOTE (AI): drawRay and drawCuboid are the S2A emission paths; they appear in the S2A corpus because anticheats build particle packets themselves rather than reading them.Give Artemis a full read/write wrapper for the world-particles packet so the pipeline can parse inbound S2A and re-emit particle packets for debug drawing.
GPacketPlayServerWorldParticles implements ReadableBuffer and WriteableBuffer. read() parses the particle type (with a BARRIER fallback on a bad id), the long-distance flag, position, offsets, speed, count and the per-type argument array; write() serializes them back, negating particle arguments on the wire. BoundingUtil.drawBox builds one of these packets per box edge to render debug bounding boxes, and the ProtocolGeneratorDirect registers the class in the generated protocol.
// ===== FILE: artemisac-artemis-minecraft-anticheat, ac.artemis.packet.spigot/src/main/java/cc/ghast/packet/wrapper/packet/play/server/GPacketPlayServerWorldParticles.java =====
package cc.ghast.packet.wrapper.packet.play.server;
import ac.artemis.packet.protocol.ProtocolVersion;
import ac.artemis.packet.spigot.protocol.PacketLink;
import ac.artemis.packet.spigot.wrappers.GPacket;
import ac.artemis.packet.wrapper.server.PacketPlayServerBed;
import ac.artemis.packet.wrapper.server.PacketPlayServerWorldParticles;
import cc.ghast.packet.buffer.ProtocolByteBuf;
import cc.ghast.packet.wrapper.bukkit.Particle;
import cc.ghast.packet.wrapper.packet.ReadableBuffer;
import cc.ghast.packet.wrapper.packet.WriteableBuffer;
import lombok.Getter;
import lombok.Setter;
import java.util.UUID;
@Getter
@Setter
@PacketLink(PacketPlayServerWorldParticles.class)
public class GPacketPlayServerWorldParticles extends GPacket implements PacketPlayServerBed, ReadableBuffer, WriteableBuffer {
public GPacketPlayServerWorldParticles(UUID player, ProtocolVersion version) {
super("PacketPlayOutWorldParticles", player, version);
}
public GPacketPlayServerWorldParticles(String realName, UUID player, ProtocolVersion version, Particle type,
float x, float y, float z, float offsetX, float offsetY, float offsetZ,
float particleSpeed, int particleCount, boolean longDistance) {
super(realName, player, version);
this.type = type;
this.x = x;
this.y = y;
this.z = z;
this.offsetX = offsetX;
this.offsetY = offsetY;
this.offsetZ = offsetZ;
this.particleSpeed = particleSpeed;
this.particleCount = particleCount;
this.longDistance = longDistance;
}
private Particle type;
private float x;
private float y;
private float z;
private float offsetX;
private float offsetY;
private float offsetZ;
private float particleSpeed;
private int particleCount;
private boolean longDistance;
/**
* These are the block/item ids and possibly metaData ids that are used to color or texture the particle.
*/
private int[] particleArguments;
@Override
public void read(ProtocolByteBuf byteBuf) {
try {
this.type = Particle.values()[byteBuf.readInt()];
} catch (Exception e) { }
if (this.type == null) {
this.type = Particle.BARRIER;
}
this.longDistance = byteBuf.readBoolean();
this.x = byteBuf.readFloat();
this.y = byteBuf.readFloat();
this.z = byteBuf.readFloat();
this.offsetX = byteBuf.readFloat();
this.offsetY = byteBuf.readFloat();
this.offsetZ = byteBuf.readFloat();
this.particleSpeed = byteBuf.readFloat();
this.particleCount = byteBuf.readInt();
final int size = this.type.getArgumentCount();
this.particleArguments = new int[size];
for (int j = 0; j < size; ++j) {
this.particleArguments[j] = byteBuf.readVarInt();
}
}
@Override
public void write(ProtocolByteBuf byteBuf) {
byteBuf.writeInt(this.type.getParticleID());
byteBuf.writeBoolean(this.longDistance);
byteBuf.writeFloat(this.x);
byteBuf.writeFloat(this.y);
byteBuf.writeFloat(this.z);
byteBuf.writeFloat(this.offsetX);
byteBuf.writeFloat(this.offsetY);
byteBuf.writeFloat(this.offsetZ);
byteBuf.writeFloat(this.particleSpeed);
byteBuf.writeInt(this.particleCount);
final int size = this.type.getArgumentCount();
for (int j = 0; j < size; ++j) {
byteBuf.writeVarInt(-this.particleArguments[j]);
}
}
}
// NOTE (AI): The write() path negates particle arguments when serializing, a quirk of the 1.8 wire format for block and item particle data.Related Packets
Wiki Cross-Reference
The long-distance flag extends particle visibility from 256 blocks to 65536 blocks, and the offset fields are spread with gaussian random values around the source position.
MCP 1.8.9 S2APacketParticles implements Packet
1.8.9 callers: WorldServer.spawnParticle sends new S2APacketParticles (line 1149): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/world/WorldServer.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 S2APacketParticles
Full source walkthroughs of the modules and anti-cheats that use this packet.