Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft
NBT API Plugin Wiki

NBT API Plugin Wiki & Guide

wiki.9minecraft.net/nbt-api-plugin/

NBT API Plugin is a versatile and essential plugin for Minecraft server administrators and developers. This plugin simplifies the manipulation of NBT (Named Binary Tag) data in Minecraft, making it easier to create and manage custom items, entities, and other in-game features that rely on NBT tags.

Guides

Step-by-step, in-game.

Frequently asked questions

How do I start using NBT API Plugin?
Load the plugin on your server, then begin by importing the NBT API classes into your project. The plugin provides utility methods to access NBT data from items and entities—start with the guides on reading and modifying NBT data to understand the basic workflow.
Can I use this plugin with my existing plugins?
Yes, NBT API Plugin is designed to work alongside other plugins without conflicts. It provides a stable API that other plugins can depend on, so you can safely add it to servers running multiple plugins.
What's the difference between NBT compounds and NBT lists?
Compounds are key-value pairs (like a map) that store related data together, while lists are ordered collections of the same data type. Use compounds for structured data like item enchantments, and lists for variable-length collections like inventory slots.
How do I add custom NBT tags to an item in my hand?
Get the item from the player's hand, access its NBT compound using the API, and use the set methods to add your custom tags with appropriate data types. See the 'Create a Custom Item with NBT Tags' guide for a complete example.

See all 10 NBT API questions ›