gdpc.nbt_tools

Utilities for working with Minecraft’s NBT and SNBT formats


nbtToSnbt(tag: TAG) → str

Recursively converts an NBT tag to an SNBT string

parseNbtFile(filePath: Path | str) → NBTFile

Create NBT object from stored NBT file.

saveNbtFile(filePath: Path | str, data: bytes | NBTFile) → None

Save string of bytes or NBTFile object to a file.