Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/minecraft_lib/nbt/mod.ts

A collection of modules that can be used to build Minecraft servers, clients, utilities and other tools.
Latest
import * as minecraftLib from "https://deno.land/x/minecraft_lib@0.1.0/nbt/mod.ts";

An implementation of Minecraft's named binary tag (NBT) format.

Functions

Checks if two tags are equal in value.

Parses a stringified named binary tag.

Converts a named binary tag to the stringified representation.

Converts tags to a simpler representation using plain objects and arrays, unwrapping the inner tag value where possible.

Constructs tags by inferring the tag type from the value and wrapping it in a tag class. Object and array types are converted recursively.