0x21 S21PacketChunkData

Sends a chunk section (16x16x16 blocks) with compressed block data, light values, and biome info.

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

Fields

FieldTypeDescription
chunkXintChunk X coordinate
chunkZintChunk Z coordinate
groundUpContinuousbooleanTrue if this is a fresh chunk (sends biome + skylight)
bitmaskunsigned shortWhich 16-block sections are present (bit 0 = bottom section)
dataLengthVarIntSize of compressed data
databyte[]Zlib-compressed chunk data (block IDs + block light + sky light + biomes)

Wire Encoding

FieldTypeNotes
Chunk Xint
Chunk Zint
Ground-UpboolFull chunk vs partial update
Primary Bitmaskunsigned shortWhich sections are included
Data SizeVarIntCompressed data length
Databyte[]Compressed NBT-like block data

MCP References

MCPNetHandlerPlayClient.handleChunkData()

Handler Interface

HNDINetHandlerPlayClient

Notes

Each section in the bitmask contains: 4096 block IDs (2 bytes each), 2048 block light (4 bits per block), 2048 sky light (4 bits per block). For groundUp=true: 256 biome bytes at end. Data is zlib-compressed. XRay modules intercept this to replace block IDs or prevent chunk updates.

implementation Implementation Cases

XRay (Tenacity 6.0, Sigma 3.9)

XRay cancels chunk data and sends only desired blocks. Search tracks blocks in chunks. ChestESP reads chest positions.

Vanilla hook: EventReceivePacket
Search (Tenacity 6.0, Sigma 3.9)

XRay cancels chunk data and sends only desired blocks. Search tracks blocks in chunks. ChestESP reads chest positions.

Vanilla hook: EventReceivePacket
ChestESP (Tenacity 6.0, Sigma 3.9)

XRay cancels chunk data and sends only desired blocks. Search tracks blocks in chunks. ChestESP reads chest positions.

Vanilla hook: EventReceivePacket
AntiChunkBan (Tenacity 6.0, Sigma 3.9)

XRay cancels chunk data and sends only desired blocks. Search tracks blocks in chunks. ChestESP reads chest positions.

Vanilla hook: EventReceivePacket
← Back to all packets