0x24 S24PacketBlockAction
Triggers a block action animation/event (chest open, piston extend, note block play, etc.).
Published 2026-06-18 · Updated 2026-10-14
Fields
| Field | Type | Description |
|---|---|---|
| pos | BlockPos | Block position |
| actionData1 | byte | Action type ID |
| actionData2 | byte | Action parameter |
| blockType | Block | Block type ID |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Block Position | BlockPos (long) | |
| Byte 1 | byte | Action type |
| Byte 2 | byte | Action param |
| Block Type | VarInt | Block ID |
MCP References
NetHandlerPlayClient.handleBlockAction()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 | |
Deobfuscated MCP 1.8.9 source of S24PacketBlockAction, fetched directly from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/play/server/S24PacketBlockAction.java) at build time and verified present.
Deep Dive
Role in the protocol
S24 is a block-level event trigger: chest open/close, piston extend/retract, note block note, dispenser click, door open, beacon power. It carries a BlockPos, two action bytes (event ID and parameter) and the block type. The server broadcasts it from WorldServer's block-event queue (line 934 in the 1.8.9 corpus) to every player within 64 blocks of the position via sendToAllNear, which means it is a proximity event, not a per-player one.
Vanilla handling
NetHandlerPlayClient.handleBlockAction calls PacketThreadUtil.func_180031_a then world.addBlockEvent(pos, blockType, data1, data2), which fans out to every IWorldAccess (render global, sound handler). The action bytes are interpreted per block: BlockChest uses data1 for open state, BlockNote uses data1 as the pitch index, BlockPiston uses data1 as the direction and data2 as extend/retract. The block type field is a cross-check; the client only plays the event if the local block matches.
Why clients touch it
Zero module hits in the 8-client corpus. The only non-vanilla reference is Rise 6.x's script API (NetworkAPI.java), which registers the packet class so Lua scripts can listen, not a shipped module. The reason is structural: S24 describes transient animations, and every piece of information it carries (chest open state, piston position) is already derivable from the block state or from S23 block changes, so ESP and chest modules read the world instead of the packet stream.
Exploit surface
S24 is entirely cosmetic and server-trusted, so there is no meaningful exploit surface. The 64-block broadcast radius is the only measurable property, and it is too coarse for tracking. A malicious server could spam S24 with garbage data bytes, but the vanilla handler bounds the damage to a single addBlockEvent call per packet, and the local-block cross-check drops mismatches, so there is no crash or desync primitive.
Server-Side Handling
WorldServer keeps a BlockEventData queue; each tick it drains entries and sends S24 via mcServer.getConfigurationManager().sendToAllNear(x, y, z, 64.0D, dimensionId, packet). The 64.0 range is hardcoded in the server handler, matching the client's sound-render distance for block events. No rate limiting, no validation of the action bytes.
Protocol Analysis
Wire format: BlockPos long, byte action ID, byte action parameter, VarInt block registry ID. The block type is read as a full Block object server-side via Block.getBlockById. The two bytes are raw event semantics decided by the block class, so the same byte values mean different things for a chest vs a piston.
Anti-Cheat Landscape
Not monitored. Block-action packets carry no player motion, timing or position claims, so anti-cheats ignore them entirely. The only conceivable use is a server-side sanity check that a piston event is accompanied by an actual piston block change, which no major anti-cheat implements for 1.8.9.
implementation Implementation Cases
A cosmetic block-event trigger (chests, pistons, note blocks) broadcast within 64 blocks. No module in the 8 clients consumes it; the only non-vanilla reference is Rise 6.x's scripting API registration. Every fact it carries is derivable from block state, which is why clients ignore it.
anticheat Anti-Cheat Checks
The block-action packet (chest open, piston, note block) has a single corpus hit: Artemis registers a GPacketPlayServerBlockAction wrapper in its packet library so the abstraction layer can route the clientbound packet. The wrapper is a read-stub: its read() body is empty, and no Artemis check consumes the packet. No anticheat flags S24 or derives state from it, because it carries transient animation data with no movement, timing or position claim.
Register the block-action packet in Artemis's packet abstraction so clientbound traffic of this type is recognized by the pipeline.
GPacketPlayServerBlockAction extends GPacket and is linked to the PacketPlayServerBlockAction interface via @PacketLink. The read() method is empty, so the wrapper decodes no fields; it exists purely so the packet has a typed class in the cc.ghast.packet wrapper tree. No check in the corpus reads its payload.
// ===== FILE: artemisac-artemis-minecraft-anticheat, ac.artemis.packet.spigot/src/main/java/cc/ghast/packet/wrapper/packet/play/server/GPacketPlayServerBlockAction.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.wrapper.server.PacketPlayServerBlockAction;
import cc.ghast.packet.buffer.ProtocolByteBuf;
import ac.artemis.packet.spigot.wrappers.GPacket;
import cc.ghast.packet.wrapper.packet.ReadableBuffer;
import java.util.UUID;
@PacketLink(PacketPlayServerBlockAction.class)
public class GPacketPlayServerBlockAction extends GPacket implements PacketPlayServerBlockAction, ReadableBuffer {
public GPacketPlayServerBlockAction(UUID player, ProtocolVersion version) {
super("PacketPlayOutBlockAction", player, version);
}
@Override
public void read(ProtocolByteBuf byteBuf) {
}
}
// NOTE (AI): The empty read() means Artemis never inspects block-action payloads; this file is the full extent of S24 handling in the corpus.Related Packets
Wiki Cross-Reference
Clientbound 0x24: BlockPos plus byte action ID, byte parameter and VarInt block type.
Same bytes mean different things per block: chest lid, piston direction, note pitch.
Broadcast to players within 64 blocks; client ignores it if local block type mismatches.
MCP 1.8.9 S24PacketBlockAction implements Packet
1.8.9 callers: WorldServer.sendQueuedBlockEvents sends new S24PacketBlockAction (line 1052): 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.