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.
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.
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
.
Please report issues and feature requests to the issues section.