NBT icon indicating copy to clipboard operation
NBT copied to clipboard

Python Parser/Writer for the NBT file format, and it's container the RegionFile.

Results 66 NBT issues
Sort by recently updated
recently updated
newest added

Using NBT 1.5.1 on MacOS 12.2.1 I have problems with creating NBT data. The main code is as follows: chunk_data = BytesIO() nbt_data = self.get_nbt() nbt_data.write_file(buffer=chunk_data) # ERROR LINE where...

I tried to use the block_finder example on a Mincraft 1.18.1 world. Upon doing so, this exception was thrown: ``` >python3 nbtTry.py . 1 1 10 water Preparing to scan...

Hey there, I've been stuck at what should be a simple thing to do for a while now, I can't manage to write a compound tag to a file. Following...

When I just want to copy data, I usually can do something like this block_entities = nbt.TAG_List(name="block_entitites", value=self.nbt_data["block_entities"]) except for the type "compound": heightmaps = nbt.TAG_Compound(name="Heightmaps", value=self.nbt_data["Heightmaps"]) where I get...

I'm trying to write a simple script that replace NBT tags in a world, i'm testing it with a brand new world with a simple "give" command in a command...

I know it has something to do with bit packing, but that's it. Can someone explain how to get block data from blockstates? An example from a litematic file: 1190112520884487200

I previously had the CaveBiomes datapack starting in 1.16 which at first replaced the bottom layer of bedrock with barriers to mark chunks it already scanned for rewriting, then in...

NBT uses MUTF-8, not UTF-8. Valid game-generated files will result in `UnicodeDecodeErrors `when using Twoolie's NBT. Minimal reproduction file with an embedded MUTF-8 `NULL`: [encoded.dat.gz](https://github.com/twoolie/NBT/files/5366926/encoded.dat.gz) I'd normally send you a...