SkillAgentSearch skills...

Snbt2nbt

Convert stringified NBT files (.snbt) to NBT files (.nbt) - Useful for converting and compressing Minecraft NBT

Install / Use

/learn @jonesdevelopment/Snbt2nbt
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<div align="center"> <!-- Introduction --> <p> <h1>snbt to nbt</h1> Simple library for converting and compressing stringified nbt (.snbt) files into .nbt files. <br> Used by <a href="https://github.com/jonesdevelopment/sonar">Sonar</a> for processing compressed NBT mappings for Minecraft packets </p> <!-- Badges & icons -->

<br> <br>

<!-- Quick navigation -->

Issues | Pull Requests | Discord | License

</div>

How to use

  1. Add the dependency to your project
  2. Prepare your .snbt file you would like to read/convert.

Example code

Convert SNBT to NBT

final Path snbt = new File("test.snbt").toPath();
final CompoundBinaryTag converted = SNBTConverter.from(snbt);

Save the converted SNBT to a NBT file

final Path snbt = new File("test.snbt").toPath();
final Path nbt = new File("test-output.nbt").toPath();
// snbt2nbt(Path,Path) uses GZIP compression by default
SNBTConverter.snbt2nbt(snbt, nbt);

Use a compressor (GZIP, ZLIB, NONE)

// ...
SNBTConverter.snbt2nbt(snbt, nbt, NBTCompressor.GZIP);

Read more about NBT

License

snbt2nbt is licensed under the GNU General Public License 3.0.

Related Skills

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated6mo ago
Forks0

Languages

Java

Security Score

82/100

Audited on Sep 30, 2025

No findings