(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
SpigotMC Status
Getting started
Import the API using Maven, then check out the basic usage or code examples like working with Skulls.
bStats
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:
- 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).
- Make sure you have the compatible loader or environment installed for Bukkit, Folia, Paper, Purpur, Spigot.
- Move the downloaded NBT-API file into your Minecraft
.minecraft/pluginsfolder and launch the game.
All Versions
+ Add Version| Name | Game version | Platforms | Published | Downloads | Actions |
|---|---|---|---|---|---|
|
R
2.16.1
|
2mo ago | 3 | |||
|
R
2.16.0
|
2mo ago | 1 | |||
|
R
2.15.7
|
2mo ago | 1 | |||
|
R
2.15.6
|
2mo ago | 1 | |||
|
R
2.15.5
|
2mo ago | 1 | |||
|
R
2.15.4
|
2mo ago | 1 | |||
|
R
2.15.3
|
2mo ago | 1 | |||
|
R
2.15.2
|
2mo ago | 1 | |||
|
R
2.15.1
|
2mo ago | 1 | |||
|
R
2.15.0
|
2mo ago | 1 | |||
|
R
2.14.1
|
2mo ago | 1 | |||
|
R
2.14.0
|
2mo ago | 1 | |||
|
R
2.13.2
|
2mo ago | 1 | |||
|
R
2.13.1
|
2mo ago | 1 | |||
|
R
2.13.0
|
2mo ago | 1 | |||
|
R
2.12.4
|
2mo ago | 1 | |||
|
R
2.12.3
|
2mo ago | 1 | |||
|
R
2.12.2
|
2mo ago | 1 | |||
|
R
2.12.1
|
2mo ago | 1 | |||
|
R
2.12.0
|
2mo ago | 1 | |||
| 2mo ago | 1 | ||||
|
R
2.11.3
|
2mo ago | 1 | |||
|
R
2.11.2
|
2mo ago | 1 | |||
|
R
2.11.1
|
2mo ago | 1 | |||
|
R
2.11.0
|
2mo ago | 1 | |||
|
R
2.10.0
|
2mo ago | 1 |
- Add Minecraft 26.3 item stack compatibility by @NriotHrreion in https://github.com/tr7zw/Item-NBT-API/pull/360
- Bump org.apache.maven.plugins:maven-compiler-plugin from 3.15.0 to 3.16.0 by @dependabot[bot] in https://github.com/tr7zw/Item-NBT-API/pull/359
## New Contributors
- @NriotHrreion made their first contribution in https://github.com/tr7zw/Item-NBT-API/pull/360
- Full Changelog**: https://github.com/tr7zw/Item-NBT-API/compare/2.16.0...2.16.1
- Add 26.2 as supported (already worked, but now without complaining)
- Migrate NBTBlock & NBTChunk to NBT by @SoSeDiK in https://github.com/tr7zw/Item-NBT-API/pull/353
- Fix 'GET_LIST' and 'OWN_TYPE' to their 'LEGACY' sufixed name on Forge at 1.7.10 by @EverNife in https://github.com/tr7zw/Item-NBT-API/pull/356
- Update readme badges by @SoSeDiK in https://github.com/tr7zw/Item-NBT-API/pull/354
## Dev notes
- Consider updating to the new `
NBT.readAndGetChunkPDC/NBT.readChunkPDCetc. methods as a replacement for theNBTChunk/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.
- Full Changelog**: https://github.com/tr7zw/Item-NBT-API/compare/2.15.7...2.16.0
- 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
- Full Changelog**: https://github.com/tr7zw/Item-NBT-API/compare/2.15.6...2.15.7
- Add 26.1 as fully supported (last build did work without changes)
- Fix DataVersion not changing when upgrading Item nbt
- Bump org.bstats:bstats-bukkit from 3.1.0 to 3.2.1 by @dependabot[bot] in https://github.com/tr7zw/Item-NBT-API/pull/347
- Bump org.apache.maven.plugins:maven-compiler-plugin from 3.14.1 to 3.15.0 by @dependabot[bot] in https://github.com/tr7zw/Item-NBT-API/pull/344
- Bump org.codehaus.mojo:license-maven-plugin from 2.7.0 to 2.7.1 by @dependabot[bot] in https://github.com/tr7zw/Item-NBT-API/pull/341
- Bump org.apache.maven.plugins:maven-shade-plugin from 3.6.1 to 3.6.2 by @dependabot[bot] in https://github.com/tr7zw/Item-NBT-API/pull/348
- Full Changelog**: https://github.com/tr7zw/Item-NBT-API/compare/2.15.5...2.15.6
- Fixed that the API reports that it doesn't know about 1.21.11
- Full Changelog**: https://github.com/tr7zw/Item-NBT-API/compare/2.15.4...2.15.5
- Add 1.21.11 support for Spigot/Paper
- Bump org.apache.maven.plugins:maven-source-plugin from 3.3.1 to 3.4.0 by @dependabot[bot] in https://github.com/tr7zw/Item-NBT-API/pull/339
- Full Changelog**: https://github.com/tr7zw/Item-NBT-API/compare/2.15.3...2.15.4
- Add 1.21.9/1.12.10 spigot/paper support
- Fix gameprofile writing/reading in 1.20.5+
- Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.11.3 to 3.12.0 by @dependabot[bot] in https://github.com/tr7zw/Item-NBT-API/pull/338
- Bump org.apache.maven.plugins:maven-compiler-plugin from 3.14.0 to 3.14.1 by @dependabot[bot] in https://github.com/tr7zw/Item-NBT-API/pull/337
- Bump org.codehaus.mojo:license-maven-plugin from 2.6.0 to 2.7.0 by @dependabot[bot] in https://github.com/tr7zw/Item-NBT-API/pull/336
- Bump org.apache.maven.plugins:maven-shade-plugin from 3.6.0 to 3.6.1 by @dependabot[bot] in https://github.com/tr7zw/Item-NBT-API/pull/335
- Full Changelog**: https://github.com/tr7zw/Item-NBT-API/compare/2.15.2...2.15.3
- 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
- Full Changelog**: https://github.com/tr7zw/Item-NBT-API/compare/2.15.1...2.15.2
- Added 1.21.6/1.21.7 support
- Reworked bStats shading/Updated bStats version
- Fixed errors with slightly malformed parent (paper-)plugin.yml
- Better Mojmap support for fields
- Added new bStats graphs: https://bstats.org/plugin/bukkit/ItemNBTAPI/1058
- [1.21.6] support Entity and BlockEntity by @patyhank in https://github.com/tr7zw/Item-NBT-API/pull/326
- Bump org.codehaus.mojo:license-maven-plugin from 2.5.0 to 2.6.0 by @dependabot in https://github.com/tr7zw/Item-NBT-API/pull/325
- Mark 1.21.7 as supported by @patyhank in https://github.com/tr7zw/Item-NBT-API/pull/328
## New Contributors
- @patyhank made their first contribution in https://github.com/tr7zw/Item-NBT-API/pull/326
- Full Changelog**: https://github.com/tr7zw/Item-NBT-API/compare/2.15.0...2.15.1
- Add 1.21.5 support (Spigot/Paper/forks)
- Updated Wiki pages a lot
- Add DataVersion for itemstack conversions by @SoSeDiK in https://github.com/tr7zw/Item-NBT-API/pull/319
- Fixed list#remove(Object) removing every instance of the Object, not just the first one. #293
- Add a method to extract difference between two compounds by @SoSeDiK in https://github.com/tr7zw/Item-NBT-API/pull/321
- Update "Reading world data" wiki example by @SoSeDiK in https://github.com/tr7zw/Item-NBT-API/pull/320
- Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.11.1 to 3.11.2 by @dependabot in https://github.com/tr7zw/Item-NBT-API/pull/312
- Add EvenMoreFish to Plugins.md by @FireML in https://github.com/tr7zw/Item-NBT-API/pull/311
- Bump org.codehaus.mojo:license-maven-plugin from 2.4.0 to 2.5.0 by @dependabot in https://github.com/tr7zw/Item-NBT-API/pull/309
- Update wiki by @SoSeDiK in https://github.com/tr7zw/Item-NBT-API/pull/313
- Bump org.apache.maven.plugins:maven-compiler-plugin from 3.13.0 to 3.14.0 by @dependabot in https://github.com/tr7zw/Item-NBT-API/pull/316
## New Contributors
- @FireML made their first contribution in https://github.com/tr7zw/Item-NBT-API/pull/311
- Full Changelog**: https://github.com/tr7zw/Item-NBT-API/compare/2.14.1...2.15.0
- Add 1.21.4 support
- Add new experimental NBTJsonUtil#itemStackToJson method to use for 1.20.3+ Chat Hover Components
- Update wiki by @SoSeDiK in https://github.com/tr7zw/Item-NBT-API/pull/308
- Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.10.1 to 3.11.1 by @dependabot in https://github.com/tr7zw/Item-NBT-API/pull/306
- Full Changelog**: https://github.com/tr7zw/Item-NBT-API/compare/2.14.0...2.14.1
- 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
- Full Changelog**: https://github.com/tr7zw/Item-NBT-API/compare/2.13.2...2.14.0
- Add 1.21.1 support
- Small wiki changes by @SoSeDiK in https://github.com/tr7zw/Item-NBT-API/pull/287
- Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.7.0 to 3.8.0 by @dependabot in https://github.com/tr7zw/Item-NBT-API/pull/290
- Prevent chunk loading during tile entity tests by @SoSeDiK in https://github.com/tr7zw/Item-NBT-API/pull/288
- Full Changelog**: https://github.com/tr7zw/Item-NBT-API/compare/2.13.1...2.13.2
- 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.
- Full Changelog**: https://github.com/tr7zw/Item-NBT-API/compare/2.13.0...2.13.1
- 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
- Full Changelog**: https://github.com/tr7zw/Item-NBT-API/compare/2.12.4...2.13.0
