0x24 S24PacketBlockAction
Triggers a block action animation/event (chest open, piston extend, note block play, etc.).
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
MCP
NetHandlerPlayClient.handleBlockAction()Handler Interface
HND
INetHandlerPlayClientNotes
Block actions: chest open/close, piston extend/retract, note block note, door open, dispenser click, etc.
implementation Implementation Cases
ChestStealer
(Gugustus)
Detect chest open/close actions for auto-steal.