Skip to content

MineJason/nbt

Repository files navigation

MineJason SNBT

MineJason SNBT is a library that provides essential support for dealing with String NBT in Minecraft: Java Edition.

This is not an extension module, but a base module that (eventually) will be required by MineJason.

Usage

This library is designed to be used straightforwardly.

  • SNbtCompound is a dictionary of any SNBT value, and compound itself is a SNBT value.
  • There are different kinds of supported SNBT values:
    • All SNBT values other than Compound, List and Arrays are record structures.
    • SNBT arrays and list are different kinds of collections of corresponding values.
    • They all implement ISNbtWritable interface.

To convert SNBT value instances (including SNBT compounds) to string representation, call ToSNbtString() on any value.

There are more complex usages. See the website.

Building

You will need .NET 8. Open your favourite IDE and build the solution, or use your favourite shell, navigate to the repository and enter dotnet build.

Issues

Please report issues and feature requests to the issues section.

About

SNBT-first library for processing Minecraft Named Binary Tags (NBT)

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages