Skip to content
/ jNBT Public

A Java library for interacting with Minecraft NBT files

License

Notifications You must be signed in to change notification settings

paul-eff/jNBT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jNBT v0.1

A Java library for interacting with Minecraft NBT files.

Currently supports

  • Read operation
  • Java Minecraft NBT files (raw & gzip)

WIP

  • Edit and write operations
  • Java Minecraft NBT files (zlib DEFLATE)
  • Support for JSON (import & export)

Future

  • Bedrock Minecraft NBT files
  • GUI

Usage

  • Obviously download the jar
  • Add it as a dependency to your project (dependent on your IDE)
  • Take a look into the Example.java file or try something like:
// Parse and output NBT file
NBTReader reader = new NBTReader(new File("./path/to/NBT/file.dat"));

try {
    System.out.println(reader.read());
} catch (IOException e) {
    throw new RuntimeException(e);
}

Sources

Disclaimer

Please always make a backup of your files before using this tool. Whilst it was thoroughly tested, there is always the chance that a bug might occur!

If you need support for a specific version or a custom feature, please leave me a message or issue :)!

Remark

Minecraft is a registered trademark of Mojang AB.