diff --git a/Java/Classic_Docs/0.0.13a/Level_Format.md b/Java/Classic_Docs/0.0.13a/Level_Format.md index dcf8708..7582d61 100644 --- a/Java/Classic_Docs/0.0.13a/Level_Format.md +++ b/Java/Classic_Docs/0.0.13a/Level_Format.md @@ -16,7 +16,8 @@ The level data is stored in **Big Endian** byte order. | Width | 2 | The width of the world (x direction) | | Height | 2 | The depth of the world. (z direction)[\[1\]](#1) | | Depth | 2 | The height of the world. (y direction)[\[1\]](#1) | -| Blocks | 4,194,304 (256×256×64) | All the blocks in the world. YZX order (Y increments first) | +| Blocks | ***Width***×***Height***×***Depth*** | All the blocks in the world. XZY order (X increments first)[\[2\]](#2) | ## Notes 1. Due to a bug in Minecraft Classic the `Height` and `Depth` values are swapped causing Height to be the Depth and Depth to be the Height. +2. The index can be calculated with `(y × Height + z) × Width + x` diff --git a/Java/Classic_Docs/rd-132211/Level_Format.md b/Java/Classic_Docs/rd-132211/Level_Format.md index f950c7f..e7bf0ea 100644 --- a/Java/Classic_Docs/rd-132211/Level_Format.md +++ b/Java/Classic_Docs/rd-132211/Level_Format.md @@ -8,4 +8,7 @@ The level data is stored in **Big Endian** byte order. | Name | Size (in bytes) | Description | |------|-----------------|-------------| -| Blocks | 4,194,304 (256×256×64) | All the blocks in the world. YZX order (Y increments first) | +| Blocks | 4,194,304 (256×256×64) | All the blocks in the world. XZY order (X increments first)[\[1\]](#1) | + +## Notes +1. The index can be calculated with `(y × 256 + z) × 256 + x`