Open ads103 opened 2 years ago
They made some changes to the tags in 1.18. For an overview please see: https://minecraft.fandom.com/wiki/Chunk_format
Same issue here. Unfortunately i'm way to incompetent to fix this myself. Are there any updates coming soon? I'd love to use this library since it looks pretty solid.
The NBT library is pretty solid when it comes to parsing the region files and NBT data, but less so when it comes to interpreting it (the functionality in chunk.py). You may even argue that the library would be better with the chunk part removed. That's not done for compatibility reasons.
My recommendation is to use replace (in the above code) world.get_chunk(chunkx, chunkz)
with world.get_nbt(chunkx, chunkz)
and use that in any way you want. See the example files for some inspiration.
I tried to use the block_finder example on a Mincraft 1.18.1 world. Upon doing so, this exception was thrown: