-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't read mcstructure file (it is nbt file) #5
Comments
I think this is because Bedrock NBT uses little endian and the code currently assumes big endian at all time. I will look to see if I can detect or make some additions to the API for endianness. Thanks for the report. |
I've changed the API slightly so you can now do the following: var reader = NbtReader.fromFile(file.path);
reader.setEndianness = Endian.little; // Depends whether Java or Bedrock
reader.read(); The same can be done with NbtWriter. Detecting the endianness is nearly impossible and can't be done accurately with NBT files. You will need to "guess" based on what NBT file it is. However, I couldn't find a Thank you for your issue! |
Bedrock .mcstructure files structure https://gist.github.com/tryashtar/87ad9654305e5df686acab05cc4b6205
The text was updated successfully, but these errors were encountered: