Skip to content

kdkasad/nbt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nbt

A command-line NBT (Named Binary Tag) parser

Description

This project is a command-line parser for Minecraft's NBT format. It converts the binary save data generated by Minecraft into human-readable text, called SNBT (Stringified NBT).

The parser is written in C99-compliant C with no external dependencies.

Building

Simply run make to build the program. The resulting binary will be called nbt.

Optimization

A build profile can be specified using the BUILD environment variable. The available options are listed below. The value defaults to release if none is specified.

Value Settings applied
release Code is optimized for binary size and all symbols are stripped.
debug Code is not optimized and debugging symbols are added.

The BUILD variable can be set as an environment variable or as an argument to make:

$ export BUILD=release
$ make
...

# or

$ make BUILD=release
...

Usage

Run nbt -h to print usage information for the program.

Minecraft saves its data in gzip-compressed NBT files. This program doesn't decompress this data, so you must do that beforehand. You can use the following pipeline on UNIX-like systems.

# Template
$ gzip -dc <compressed NBT file> | nbt [options]

# Example
$ gzip -dc level.dat | nbt

About

Command-line parser for Minecraft's NBT data format

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published