nbt

Encode NBT data into network-ready bytes using the nbt! macro.

8|Updated Nov 29, 2025
One-click install
npx skills add https://github.com/andrewgazelka/rgb --skill nbt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nbt
Source: https://github.com/andrewgazelka/rgb/tree/main/.claude/skills/nbt
Command: npx skills add https://github.com/andrewgazelka/rgb --skill nbt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provide a friendly way to construct and encode NBT data for Minecraft protocol using the nbt! macro from mc_protocol, simplifying tag creation, compound nesting, and text components.

Core Features & Use Cases

  • Create simple and nested NBT compounds with a concise macro.
  • Build text components (chat, action bar, titles) using NBT data structures.
  • Serialize NBT data to network bytes for Minecraft packets and plugin data exchange.

Quick Start

Install the mc_protocol crate and use the nbt! macro to build a compound and emit its network bytes.

Frequently Asked Questions about nbt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I serialize NBT data for Minecraft protocol encoding?

To serialize NBT data for Minecraft protocol encoding, use the nbt! macro from mc_protocol to construct NbtCompound and NbtList structures. This simplifies tag creation and compound nesting, producing network-ready bytes for packets.

What is the best way to build Minecraft text components using NBT?

Building Minecraft text components using NBT requires structuring chat, action bar, or title data within NbtCompound structures. The nbt! macro provides a concise syntax to construct these nested text components for server plugins and tooling.

Can I use the nbt! macro to create nested NBT compounds for Minecraft packets?

Yes, you can use the nbt! macro to create nested NBT compounds for Minecraft packets. It simplifies compound nesting and payload data construction, allowing server plugins to generate valid NbtCompound hierarchies for network transmission.

Does this NBT serialization approach require specific data structures?

NBT serialization with this approach requires correct NBT structures like NbtCompound and NbtList to produce valid network bytes. You must install the mc_protocol crate and use the nbt! macro to ensure your payload data matches the expected format.

When do I need to manually encode NBT data for Minecraft plugin development?

You need to manually encode NBT data for Minecraft plugin development when building chat components, nested NBT structures, or payload data for Minecraft packets. The nbt! macro streamlines this process by mapping data directly to network-ready bytes.