Last active
October 20, 2021 18:48
-
-
Save wraithgar/a01b99ee7433a9c8a359069952f2147e to your computer and use it in GitHub Desktop.
Weird bedrock subchunk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version 9 subchunk with only one block? | |
09 01 04 | |
[] sub_chunk_version = 9 | |
[] num_storages = 1 | |
[] sub_chunk_index = 4 | |
00 00 | |
!! !! two empty bytes !! | |
nbt | |
0a 00 00 08 04 00 6e616d65 13006d696e6563726166743a73... (nbt continues) | |
[] type: compound | |
[ ] nameLength 0 | |
[] type: string | |
[ ] nameLength 4 | |
[ ] "name" | |
It appears that if there is only one block the runtime flag / runtime palette byte is 0, | |
followed by an empty byte (i.e. NO palette) and a single nbt representing the one block | |
in the chunk at 0, sub_chunk_index * 16, 0? | |
Here is the whole subChunk: | |
090104000a00000804006e616d6513006d696e6563726166743a73616e6473746f6e650a0600737461746573080f0073616e645f73746f6e655f74797065070064656661756c740003070076657273696f6e03d2100100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A normal subChunk version 9: | |
09 01 05 | |
[] sub_chunk_version = 9 | |
[] num_storages = 1 | |
[] sub_chunk_index = 5 | |
04 0040a5aa0040a5aa0050a9aa0050aaaa0050aaaa0050aaaa0050aaaa0095aaaa0095a... (storages continue) | |
[] palette lookup and flag | |
[... storages continue...] | |
offset to palette and nbt points here | |
palette and offset | |
04 00 00 00 = pallete size (4) | |
nbt | |
0a 00 00 08 04 00 6e616d65 13006d696e6563726166743a736... (nbt continues) | |
[] type: compound | |
[ ] nameLength 0 | |
[] type: string | |
[ ] nameLength 4 | |
[ ] "name" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This chunk has the following keyTypes present in the db (all numbers in decimal):
44 (version: 22)
45 (biomes and elevation)
47 (subchunks)
54 (finalized state: 2)
All the other subchunks have the same version and finalized state.