0x28 S28PacketEffect
Plays a sound effect or particle effect at a position (without a named sound).
Published 2026-06-18 · Updated 2026-10-14
Fields
| Field | Type | Description |
|---|---|---|
| effectType | int | Effect ID (1023=portal, 2004=smithingTable, etc.) |
| pos | BlockPos | Effect position |
| data | int | Effect-specific data |
| disableRelativeVolume | boolean | If true, plays at full volume regardless of position |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Effect ID | int | |
| Position | BlockPos (long) | |
| Data | int | |
| Disable Volume | bool | Supress volume reduction |
MCP References
NetHandlerPlayClient.handleEffect()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 | |
Deobfuscated MCP 1.8.9 source of S28PacketEffect, fetched directly from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/play/server/S28PacketEffect.java) at build time and verified present.
Deep Dive
Role in the protocol
S28 is the numeric sound/particle effect packet: an int effect type, a BlockPos, an int data value, and a boolean that forces server-wide volume. Effect IDs are split into ranges: 1000-1023 for sound events (anvil, click, door) and 1500-2004 for particle/block events (smoke, portal, beacon, chest open particle). WorldManager sends it either to players near the position (64-block radius, volume-attenuated) or to every player when the server-wide flag is set (corpus lines 82/86).
Vanilla handling
NetHandlerPlayClient.handleEffect branches on the server-wide flag: isSoundServerwide routes to world.func_175669_a (global sound), otherwise world.playAuxSFX(type, pos, data), which maps the numeric ID to a sound or particle burst and plays it with position-based volume. The data int is effect-specific (block ID for break particles, pitch for sounds). There is no client feedback path; the packet is fire-and-forget.
Why clients touch it
Zero module hits in the 8-client corpus; the only non-vanilla reference is Rise 6.x's script NetworkAPI registration. The packet metadata mentions ESP tracking record players and particles, but no module in these 8 clients implements it. The reason is redundancy: effect sounds and particles are transient and position-derived, and anything a module could learn (a chest opening nearby, a beacon activating) is already visible through block state or S24.
Exploit surface
The exploitable direction is server to client: a malicious server can spam S28 with high-volume sound IDs or particle-heavy IDs to annoy or degrade the client (the classic record-spam or smoke-spam lag nuisance). The client applies each effect without rate limiting, which is why crash-patch modules bound effect rates. No corpus module does this for S28; Tenacity's AntiExploit covers the particle flood via S2APacketParticles instead, which is the named-particle equivalent.
Server-Side Handling
WorldManager.func_180439_a sends S28 to players within 64 blocks with serverWide=false; func_180440_b sends it to all players with serverWide=true (used for dimension-wide events like beacon activation or the wither spawn). The server never validates the effect ID or data against a whitelist, so any int in range goes through. No rate limit in vanilla.
Protocol Analysis
Wire format: int effect type, BlockPos long, int data, boolean serverWide. The effect type is a raw int, unlike S29PacketSoundEffect which carries a resource location; this is the 'numeric' counterpart. The boolean is a plain byte on the wire (writeBoolean/readBoolean). The data int is interpreted per effect ID, so the same int means block ID for break particles and pitch for sounds.
Anti-Cheat Landscape
Not monitored. Effects carry no player state, and the only abuse is nuisance flooding, which anti-cheats handle by rate-limiting inbound effect packets rather than flagging players. Client-side crash patches treat S28 and S2A as the same threat class (audio/particle floods), but none of the 8 clients ships that guard for S28 specifically.
implementation Implementation Cases
The numeric sound/particle effect packet with a server-wide volume flag. Zero modules in the 8 clients consume it; the only non-vanilla reference is Rise 6.x's scripting API registration. Transient, position-derived and fire-and-forget, it carries nothing a module needs that block state does not already provide.
anticheat Anti-Cheat Checks
The numeric world-effect packet has zero real hits in the corpus. The ac-mined file for S28 is dominated by keyword noise: the grep term 'Effect' surfaced potion-effect code (PotionEffectType, hasPotionEffect, banEffect) across Frequency, Negativity, Grim, Hydro, FlopAC and others, but none of those files reference S28PacketEffect or PacketPlayOutWorldEvent. No anticheat processes the packet, which is consistent with its role: a fire-and-forget clientbound sound or particle trigger carrying no player claim.
Related Packets
Wiki Cross-Reference
The trailing boolean disables distance-based volume falloff so effects such as wither spawn, enderdragon death and end-portal opening play correctly, and record playback at one location overwrites any record already playing there.
MCP 1.8.9 S28PacketEffect implements Packet
1.8.9 callers: WorldManager.playAuxSFX sends new S28PacketEffect (line 88): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/world/WorldManager.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.