twoolie / NBT

Python Parser/Writer for the NBT file format, and it's container the RegionFile.
MIT License
362 stars 74 forks source link

Example script: Item density per chunk (Anvil format compatible) #101

Open fakuivan opened 5 years ago

fakuivan commented 5 years ago

https://gist.github.com/fakuivan/33e681a4ae4892ff6dd3c77ae6eeda2e

mfld-fr commented 5 years ago

Hello @fakuivan. Your script uses some tags that do not exist anymore in the chunck section, in the latest Anvil format used by today's 1.13.x game version (Blocks and Add tags were replaced by Palette and BlockStates, plus a variable bit length index).

mfld-fr commented 5 years ago

The proposed script is now superseded by the 'block analysis' example as updated in #106, that now supports both McRegion and Anvil formats. You could close this issue.

macfreek commented 5 years ago

@mfld-fr Thanks for your contribution! @fakuivan Please check, and if this indeed fixes your issue, please close the issue.