nbt-js
nbt-js copied to clipboard
Write compressed nbt data
I can't find any informations about how to write compressed nbt data. I mean there is a parse-function for compressed nbt data, then there should be also a compressed write function or not?
EDIT: I just tried to extract and recompress some nbt-data using imaya's gzip.min.js but just received rubbish.
Steps to recreate:
1. Apply atob to the raw data (Needed because the data is base64 encrypted)
2. Parse the data with nbt.parse (I used imayas's gunzip.min.js to decompress it)
3. Export the nbt data with nbt.write
4. Use gzip to compress the data
5. Apply btoa to the exported data
Did you ever figure out how to get this working?