PowerNBT
[PowerNBT]
PowerNBT moved to spigotmc.org
Powerful NBT editor for CraftBukkit 1.5 and later.
Simple NBT API (for developers).
Works with CraftBukkit, MCPC+, Cauldron, Spigot (fix to forge 1.4.7)
Features
- Browsing and editing NBT tags
- supports items, players, offline-players, entities, blocks, chunks, schematic files and all other nbt files
- save tags to file
- spawn entity with custom nbt tags
- parse mojangson string
- custom colors and unicode symbols
- supports tab-completion
- supports operations copy/paste/cut/swap
- supports variables
All commands
See: commands
Examples
- /
nbt me Inventory remove- clear inventory
- /
nbt me Inventory = *Bob EnderItems- get Bob's enderchest to yourself
- /
nbt @Eve remove- remove file Eve.dat (offline player)
- /
nbt block ExtraType = "Notch"- set skull owner
- /
nbt * Health = 1000- set 1000 health to mob, which you select
- /
nbt item ench copy- copy item enchantments to buffer
- /
nbt item ench paste- paste enchantments to other item
Permissions
- powernbt.use
Bugs
- 0.8.1-0.8.2:
On command /nbt chunk = ...
invisible players and entities in new chunk.
- If you found a bug, please report me in github:
https://github.com/DPOH-VAR/PowerNBT/issues
Changelog
Version 0.8.2 beta
- added: binary opetarions: ^= , &= , |= , useful to set binary flags
- added: operation: multiplication: *=
- added: operation: spawn entity
- added: value: numbers in binary format
- added: values in mojangson format
- added: object: hand
- added: object: schematic
- added: view mode: binary
- added: silent mode for command
- added: API: read chunk
- added: API: save chunk
- added: API: parse mojangson string
- added: API: spawn entity
- fixed: support cauldron 1.7.10
- bug: invisible players after change chunk data.
- bug: on update blocks after change chunk. cauldron 1.7.10
Version 0.8.1
- added: read/write chunks
Version 0.7.3.1
- fix: work with Cauldron 1.7.2
Tutorials
- How to edit tags
- How to use Tab-Completion
- How to edit mobs into spawners
- How to edit villagers
- How to create custom potions
- How to edit fireworks (RU)
API
See API for documentation and examples
Maven dependency (since 0.7.2)
API for version 0.7.2 and later
Warning
If you add a tag, which is not expected by the client, it may be crashed. Be careful!
Helpful links, about NBT format:
- http://www.minecraftwiki.net/wiki/NBT_format
- http://www.minecraftwiki.net/wiki/Player.dat_Format
- http://www.minecraftwiki.net/wiki/Chunk_format
| Github | Maven | Javadoc |
-
View User Profile
-
Send Message
Posted Jan 29, 2015@Noxcode
Terrain control uses compressed nbt files with tag "Data"
Use command

/nbt $$chest = block
And get file: plugins/PowerNBT/nbt/chest.nbtz
-
View User Profile
-
Send Message
Posted Jan 29, 2015hi, is it possible to export a chest block as a chest.nbt ?
In the wiki of Terrain Control they said it exists a plugin to do that, which redirect me on this plugin but I didn't see the feature here.
How can I do ?
Thank you in advance
-
View User Profile
-
Send Message
Posted Jan 26, 2015@DPOHVAR
I will try it out today! Thank you very much!
Edit: Works great!
-
View User Profile
-
Send Message
Posted Jan 25, 2015@LucidTheStick
PowerNBT v0.8.2 beta
Tested with:
bug on edit chunk: invisible players in all tested versions
Mojangson
PowerNBT can parse strings in mojangson format.
Restriction: mojangson value can not contain spaces that not enclosed in " "
/nbt item = {display:{Name:"Item Name",Lore:["Item lore"]}}
/nbt {a:12,b:14}
Binary numbers
Now you can input numbers in binary mode:
/nbt b00000010 int copy
Spawn entities
Spawn entity:
/nbt (object) (query) spawn [world]
/nbt (value) spawn [world]
Examples: /nbt {id:Pig,Pos[15d,100d,-32d]} spawn
/nbt id123(Skeleton) copy
/nbt buffer spawn
tags id and Pos are required
See full list of changes in changelog.
-
View User Profile
-
Send Message
Posted Jan 22, 2015@DPOHVAR
It broke a couple of plugins I use. I've been able to patch them but have had no luck with this one. It'd be great if you could as this will be the last Cauldron until something better comes along.
-
View User Profile
-
Send Message
Posted Jan 21, 2015@LucidTheStick
There are big problems with cauldron 1.7.10
At this moment, this version is not supported
I'll try to find a solution in the next update
@WavyWonderz
There are currently no online version of javadoc
You can generate it:
git clone https://github.com/DPOH-VAR/PowerNBT.gitcd PowerNBT
mvn site:jar
-
View User Profile
-
Send Message
Posted Jan 21, 2015Can you post a link to a generated java doc for use in the IDE?
-
View User Profile
-
Send Message
Posted Jan 21, 2015Hello, I too am having errors on the 1.7.10 build of Cauldron. I have attached the errors in server log. Any chance this is an easy fix? http://pastebin.com/iA7LNxEW
Thanks, Lucid
-
View User Profile
-
Send Message
Posted Jan 17, 2015PowerNBT 0.8.1 can edit chunks!
Examples:
/nbt chunk copycopy current chunk to buffer.
/nbt $file = chunk:10:12:worldsave chunk (10,12) in world to file.
/nbt chunk Entities removeRemove all entities from current chunk.
/nbt chunk:10:12:world = $fileload chunk (10,12) in world from file.
Editing chunk is much faster than if you put blocks.
Entities and players on edited chunk becomes invisible.
I don't know how to fix it =(
-
View User Profile
-
Send Message
Posted Jan 10, 2015@DPOHVAR
Ah thanks, I'll just use potion effects instead
-
View User Profile
-
Send Message
Posted Jan 10, 2015@KingAlbsy
This is a feature of minecraft server.
You can try to edit player.dat file
/nbt @PlayerName ...but I'm not sure it will help
Use scripting plugin that can change nbt of player when login on teleport
like varscript
-
View User Profile
-
Send Message
Posted Jan 10, 2015I'd been trying to use this to give players permanent effects, like extra movement speed. It works perfectly but when they relog or use portals they lose the NBT tag, but when I try it as op I keep it. I was wondering if there's a way to make the NBT tag permanently kept or something?
-
View User Profile
-
Send Message
Posted Jan 2, 2015@DPOHVAR
Thanks DPOHVAR for your answer
yeh thant what iwant do , i need just to reset only Modifiers or set value to defalut, or set amout to 0
-
View User Profile
-
Send Message
Posted Jan 1, 2015@mgone2010
Entity attributes is not removable
You can only change these values to defaults.
(net.minecraft.server magic)
This also applies to "ActiveEffects".
-
View User Profile
-
Send Message
Posted Jan 1, 2015@DPOHVAR
Hi Thnaks DPOHVAR for the example but this don't work or don't save that
Player player = event.getPlayer();
NBTManager manager = NBTManager.getInstance();
NBTCompound playerdata = manager.read(player);
NBTList atkey = playerdata.getList("Attributes");
if (atkey != null) {
for(Object sub in atkey) {
((NBTCompound) sub).remove("Modifiers"); this work and if i print the result that give somthing like this {Base=1.0, Name=generic.attackDamage}
((NBTCompound) sub).put("Modifiers", new NBTList()); this also work and if i print the result that give somthing like this {Base=1.0,Modifers[], Name=generic.attackDamage}
}
manager.write(player, playerdata);
but here northig work and the data is not write
}
Thank you
EDIT
i tested this to check
playerdata.clear();
manager.write(player, playerdata);
and it's remove everything (inventary...) except Attributes!!!!! :s
-
View User Profile
-
Send Message
Posted Dec 17, 2014@DPOHVAR
I just found that it works again with the latest version of spigot, and now the plugin works perfectly again...
Anyway ,thanks for your amazing plugin! :)
-
View User Profile
-
Send Message
Posted Dec 15, 2014@jessefjxm
PowerNBT 0.7.2 works fine on
CraftBukkit version git-Spigot-9a88a38-e2c4f20 (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)What is your full version?
-
View User Profile
-
Send Message
Posted Dec 14, 2014This plugin seems break in spigot 1.8...whenever I type /nbt, it saids "Could not initialize class me.dphvar.powernbt.nbt.NBTbase" and can't work. No error on console when enabling,disabling an typing the command:(
-
View User Profile
-
Send Message
Posted Nov 9, 2014How do we make it so that creative control doesn't affect the NBT saving? It keeps affecting the save files.
-
View User Profile
-
Send Message
Posted Oct 28, 2014@DPOHVAR:
No luck. I am on the 1.7.10 version of spigot (latest build) I don't know if that matters or not.
Thanks.