03-13-2012, 05:56 PM
Each chunk needs:
- 1 byte per each block to define the block type (dirt / grass / stone etc.)
- 0.5 byte per each block to define metadata (wool color, torch direction, planted sapling type)
- 0.5 byte per each block for skylight (how brightly lit the block is by the daylight)
- 0.5 byte per each block for blocklight (how brightly lit the block is by torches, lava etc. - at night)
This means 2.5 bytes per block. A chunk has 16 * 16 * 256 blocks. Hence the total size.
- 1 byte per each block to define the block type (dirt / grass / stone etc.)
- 0.5 byte per each block to define metadata (wool color, torch direction, planted sapling type)
- 0.5 byte per each block for skylight (how brightly lit the block is by the daylight)
- 0.5 byte per each block for blocklight (how brightly lit the block is by torches, lava etc. - at night)
This means 2.5 bytes per block. A chunk has 16 * 16 * 256 blocks. Hence the total size.