0x24 S24PacketBlockAction

Triggers a block action animation/event (chest open, piston extend, note block play, etc.).

Clientbound (Server → Client) · PLAY · net/minecraft/network/play/server/S24PacketBlockAction.java
worldblockanimation

Fields

FieldTypeDescription
posBlockPosBlock position
actionData1byteAction type ID
actionData2byteAction parameter
blockTypeBlockBlock type ID

Wire Encoding

FieldTypeNotes
Block PositionBlockPos (long)
Byte 1byteAction type
Byte 2byteAction param
Block TypeVarIntBlock ID

MCP References

MCPNetHandlerPlayClient.handleBlockAction()

Handler Interface

HNDINetHandlerPlayClient

Notes

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.

Vanilla hook: EventReceivePacket
← Back to all packets