Skip to content

Legacy Block Extra Data (4) Format

Byte Order

LegacyBlockExtraData is stored in Little Endian byte order.

Parsing The LegacyBlockExtraData

NameSize (in bytes)Description
Extra Block Count4The number of extra blocks in this chunk

Now loop the next section Extra Block Count times until you have parsed all extra blocks.

NameSize (in bytes)Description
Block Location Index4The extra block location within this chunk represented as the index into the blockId array[1]
Block ID1The extra blocks Id
Block Data1The extra blocks data value

Notes

  1. If used with Subchunks (Subchunk Versions 0, 2 - 7) the Block Location Index stores the coordintes relative to the subchunk instead with the first byte containing the Y value in the right 4 bits, and the second byte containing the X value in the left 4 bits, and the Z value in the right 4 bits. The last 2 bytes are unused in this case. the index can then be calculated with X × 16 × 16 + Z × 16 + Y.

Contributors

The avatar of contributor named as BJTMastermind BJTMastermind

Changelog

Contributors



Documentation page was setup by DexrnZacAttack.