View NBT files within a terminal window.
I'm too lazy to provide download links, but luckily Golang makes compiling from source really easy.
- install Golang and set your GOPATH.
- (Optional) Add $GOPATH/bin to your system path
- Run
go get github.com/deanveloper/nbtnav
- The executable is now located at $GOPATH/bin/nbtnav. If you skipped step 2, either move or symlink this file to one of the directories in your PATH
Use nbtnav <file>
to view an nbt file! Easy as that.
Once you have run nbtnav <file>
, you will be given a command prompt.
The command names in NBTNav are inspired by those found in bash.
help
: Lists all commandscd <compound>
: Moves into an NBT Compoundls [compound]
: Lists all elements within the compound you are in, or the one that you supplytree [compound]
: Similar tols
, but does a deep search, showing the entire treecat <tag>
: Displays the value at a given tag- save [compress] [output] : Saves the current NBT tree to output.
compress
can be any ofgzip
,zlib
, ornone
(default).output
is the output file and defaults to the original file name. set <tag> <type> [value]
: Sets the tag to the give type and valueexit
: Exits NBTNav
- Sort NBT tags in the order they appear in (not a necessary feature, but could possibly be useful somehow)