All Mods Resource Packs Data Packs Shaders Modpacks Plugins
NBT-API

NBT-API

by tr7zw • Downloads: 5 • Followers: 0
Description
Gallery
Changelog
Versions

(Item-)NBT-API

Add custom NBT tags to Items/Tiles/Entities without NMS! Modify NBT and store it Files, other NBT or as String in yaml/json/SQL/Redis. Server Owner/Developer Wiki

Build/Maven Status

Build Status

SpigotMC Status

VersionRatingRatingbStats ServersbStats Players

Getting started

Import the API using Maven, then check out the basic usage or code examples like working with Skulls.

Shockbyte

bStats

bStats Stats

How to Install NBT-API (Plugin)

NBT-API by tr7zw is verified for Bukkit, Folia, Paper, Purpur, Spigot across Minecraft versions 1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2, 1.12, 1.12.1 (latest release: 2.16.1, file size: 262 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2, 1.12, 1.12.1) and platform (Bukkit, Folia, Paper, Purpur, Spigot).
  2. Make sure you have the compatible loader or environment installed for Bukkit, Folia, Paper, Purpur, Spigot.
  3. Move the downloaded NBT-API file into your Minecraft .minecraft/plugins folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3 26.2 26.1.x +14
Bukkit Folia Paper Purpur Spigot
2mo ago 3
26.2 26.1.x 1.21.x +13
Bukkit Folia Paper Purpur Spigot
2mo ago 1
26.2 26.1.x 1.21.x +13
Bukkit Folia Paper Purpur Spigot
2mo ago 1
26.1 1.21.x 1.20.x +12
Bukkit Folia Paper Purpur Spigot
2mo ago 1
1.21.x 1.20.x 1.19.x +11
Bukkit Folia Paper Purpur Spigot
2mo ago 1
1.21.x 1.20.x 1.19.x +11
Bukkit Folia Paper Purpur Spigot
2mo ago 1
1.21.x 1.20.x 1.19.x +11
Bukkit Folia Paper Purpur Spigot
2mo ago 1
1.21.x 1.20.x 1.19.x +11
Bukkit Folia Paper Purpur Spigot
2mo ago 1
1.21.x 1.20.x 1.19.x +11
Bukkit Folia Paper Purpur Spigot
2mo ago 1
1.21.x 1.20.x 1.19.x +11
Bukkit Paper Purpur Spigot
2mo ago 1
1.21.x 1.20.x 1.19.x +11
Bukkit Folia Paper Purpur Spigot
2mo ago 1
1.21.x 1.20.x 1.19.x +11
Bukkit Folia Paper Purpur Spigot
2mo ago 1
1.21.x 1.20.x 1.19.x +11
Bukkit Folia Paper Purpur Spigot
2mo ago 1
1.21 1.20.x 1.19.x +11
Bukkit Folia Paper Purpur Spigot
2mo ago 1
1.21 1.20.x 1.19.x +11
Bukkit Folia Paper Purpur Spigot
2mo ago 1
1.20.x 1.19.x 1.18.x +10
Bukkit Folia Paper Purpur Spigot
2mo ago 1
1.20.x 1.19.x 1.18.x +10
Bukkit Folia Paper Purpur Spigot
2mo ago 1
1.20.x 1.19.x 1.18.x +10
Bukkit Folia Paper Purpur Spigot
2mo ago 1
1.20.x 1.19.x 1.18.x +10
Bukkit Folia Paper Purpur Spigot
2mo ago 1
1.20.x 1.19.x 1.18.x +10
Bukkit Folia Paper Purpur Spigot
2mo ago 1
1.20.x 1.19.x 1.18.x +10
Bukkit Folia Paper Purpur Spigot
2mo ago 1
1.20.x 1.19.x 1.18.x +10
Bukkit Paper Purpur Spigot
2mo ago 1
1.19.x 1.18.2 1.17.1 +9
Bukkit Paper Purpur Spigot
2mo ago 1
1.19.x 1.18.2 1.17.1 +9
Bukkit Paper Purpur Spigot
2mo ago 1
1.19.x 1.18.2 1.17.1 +9
Bukkit Paper Purpur Spigot
2mo ago 1
1.19.x 1.18.x 1.17.x +10
Bukkit Paper Purpur Spigot
2mo ago 1
[2.16.1] 2.16.1 by tr7zw on Oct 12, 2026
Download
## What's Changed

## New Contributors

[2.16.0] 2.16.0 by tr7zw on Oct 12, 2026
Download
## What's Changed

## Dev notes
  • Consider updating to the new `NBT.readAndGetChunkPDC/NBT.readChunkPDC etc. methods as a replacement for the NBTChunk/NBTBlock` classes. The new methods will be faster for reading, and not leave behind empty tags.
  • Reminder that 1.7.10 is not officially supported anymore, including Forge hybrids. Use at your own risk/use PRs to resolve issues
  • When shading, just because the MinecraftVersion is UNKNOWN doesn't mean the NBTAPI isn't working, just that this version hasn't been tested against that Minecraft version. So don't refuse the plugin loading just because of that.

[2.15.7] 2.15.7 by tr7zw on Oct 12, 2026
Download
## What's Changed
  • Added any 26.1.x build as supported, assuming that Mojang/Spigot/Paper don't introduce breaking changes in patch releases
  • Added support for Papers 26.1.1+ new versioning format

[2.15.6] 2.15.6 by tr7zw on Oct 12, 2026
Download
## What's Changed


[2.15.5] 2.15.5 by tr7zw on Oct 12, 2026
Download
## What's Changed
  • Fixed that the API reports that it doesn't know about 1.21.11

[2.15.4] 2.15.4 by tr7zw on Oct 12, 2026
Download
## What's Changed


[2.15.3] 2.15.3 by tr7zw on Oct 12, 2026
Download
## What's Changed


[2.15.2] 2.15.2 by tr7zw on Oct 12, 2026
Download
## What's Changed
  • Mark 1.21.8 as compatible (it was before too, this just removes the warning in the log)
  • Fix 1.21.5 on spigot having CODEC errors
  • Fixed variables for the DataFixerUtil to use revisions
  • Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.11.2 to 3.11.3 by @dependabot[bot] in https://github.com/tr7zw/Item-NBT-API/pull/333


[2.15.1] 2.15.1 by tr7zw on Oct 12, 2026
Download
## What's Changed

## New Contributors
Thank you so much for the contributions to the update, I wouldn't have been able to finish it in time.

[2.15.0] 2.15.0 by tr7zw on Oct 12, 2026
Download
## What's Changed

## New Contributors

[2.14.1] 2.14.1 by tr7zw on Oct 12, 2026
Download
## What's Changed

[2.14.0] 2.14.0 by tr7zw on Oct 12, 2026
Download
## What's Changed
  • Add 1.21.3 support (and 1.21.2, but you shouldn't be using this version)
  • Hide NBTFile/NBTContainer fully behind NBT (methods are now deprecated, pointing to the equivalent NBT replacement)
  • Add missing addCompound(ReadableNBT comp) to ReadWriteNBTCompoundList
  • Fix edge-case in writing out Bukkit items without data
  • Try to auto-detect pre 1.20.3 item nbt also via the "Count" tag for updating
  • Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.8.0 to 3.10.0 by @dependabot in https://github.com/tr7zw/Item-NBT-API/pull/297
  • Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.10.0 to 3.10.1 by @dependabot in https://github.com/tr7zw/Item-NBT-API/pull/300


[2.13.2] 2.13.2 by tr7zw on Oct 12, 2026
Download
## What's Changed


[2.13.1] 2.13.1 by tr7zw on Oct 12, 2026
Download
## What's Changed
  • Fix Paper 1.21
  • Fix resolveCompound in ReadWriteNBT not returning ReadWriteNBT
  • Add a missing `@Nullable` flag to resolveCompound
  • Removed old incorrect mappings on newer versions
  • General code cleanup
  • Fix datafixer now knowing the 1.21 version id
  • Update wiki by @SoSeDiK in https://github.com/tr7zw/Item-NBT-API/pull/282

If you have questions about how to migrate your code away from NBTItem or how to support 1.20.5+ with the new ItemStack logic, check out the updated wiki! SoSeDiK did an amazing job updating the wiki, including many updated examples. Also, feel free to PR your plugin to the Plugin list on the wiki.

[2.13.0] 2.13.0 by tr7zw on Oct 12, 2026
Download
## What's Changed
  • Update to 1.21
  • Deprecated lots of old methods/constructors. Please migrate to the NBT class for faster and abstracted alternatives
  • Added new NBT.modifyComponents API for 1.20.5+ to modify vanilla components
  • Removed nbt-injector(you really shouldn't be using this) and nbt-data-api(never finished). This removed a lot of bloat from the jar
  • Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.6.3 to 3.7.0 by @dependabot in https://github.com/tr7zw/Item-NBT-API/pull/279
  • Bump org.apache.maven.plugins:maven-shade-plugin from 3.5.3 to 3.6.0 by @dependabot in https://github.com/tr7zw/Item-NBT-API/pull/278


NBT-API Icon
Download NBT-API
Select game version
Select platform