Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How do I parse back a roundtrip-json file to nbt file? #1

Closed
LoSunny opened this issue Feb 8, 2021 · 2 comments
Closed

How do I parse back a roundtrip-json file to nbt file? #1

LoSunny opened this issue Feb 8, 2021 · 2 comments
Labels
question Further information is requested

Comments

@LoSunny
Copy link

LoSunny commented Feb 8, 2021

As titled

@unascribed unascribed added the question Further information is requested label Feb 21, 2021
@unascribed
Copy link
Owner

unascribed commented Feb 21, 2021

Sorry, I missed this somehow.

I intend to add a limited scripting system to unbted, which would include a parameter that runs a command.

When I had to do this recently, this was how I did it:

echo -e 'save -Nf -c=gzip --big-endian signs.schem\nexit\n' | java -jar ~/unbted/build/libs/unbted-1.1.jar --verbose foo.json

Replace "signs.schem" with the filename you wish to save to, and "foo.json" with your input unbted JSON.

@unascribed
Copy link
Owner

unascribed commented Jan 17, 2023

In 1.2, this is now done like so:

unbted -N -c=gzip input.json output.dat

Nearly 2 years later. Better late than never?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants