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)
- 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
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
On command /nbt chunk = ...
invisible players and entities in new chunk.
- If you found a bug, please report me in github:
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
- added: read/write chunks
- fix: work with Cauldron 1.7.2
- 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)
See API for documentation and examples
Maven dependency (since 0.7.2)
API for version 0.7.2 and later
If you add a tag, which is not expected by the client, it may be crashed. Be careful!
Helpful links, about NBT format:
Thanks @DPOHVAR: I will give it a shot. And thanks for the quick response.
I am trying to use the API to clear NBT data in the player.dat file (online) in a OnPlayerJoin event.
Essentially I am trying to clear any Modifiers in the Attributes Keys of the NBT file. I have tried a few things but this is where I am at:
Any assistance would be greatly appreciated.
by default this command displays only the first 10 elements of array or compound.
/nbt %z . full- display all elements in compound.
/nbt %z . 10-20- display elements from 10 to 20
/nbt %z . 50- display first 50 elements
/nbt %z . 5,hex- display first 5 elements in hex mode
.» is required and used as an empty selector)
Plugin using the restriction on length of the displayed data
This also applies to text values.
Hi there, i used this plugin some months ago and now im using it again
When i tried to show the content of a variable (/nbt %z) with a lot of elements it, it only says compound: x elements, but it doesn't show it all (for example, it says %z have 32 elements but only 10 of them is shown, I can edit it normally, though), are there any way to make this plugin shows all nbt element (and its value)?
It used to show all elements and value to me.
New versions of the bukkkit unpredictably change their API.
If I made a patch for 1.7.9, it will no longer work on 1.7.10
I want to partially rewrite plugin on groovy.
This will simplify patches in the future.
I attempted to update PowerNBT for personal use but there's so much work put into this and so much code to go over that I haven't even been able to figure out yet how it even works in the first place lol
any estimate for an update?
How do you save tags to file? I can't find the command anywhere.
Edit: Nvm, it's "/nbt $<filename> = <object>"
Waw, you wrote it all from scratch? :o
If so nice job!
The Bukkit API should like Forge support NBT editing imo though.. :/
Not working with 1.7.10, Would highly appreciate an update soon :D Thanks
you can not change the player position in a single step
/nbt list copy- store empty list to buffer
/nbt buffer  = double- set X value to buffer
/nbt buffer  = double- set Y value to buffer
/nbt buffer  = double- set Z value to buffer
/nbt * Pos paste- change player location to buffer value
/nbt * Pos copy- store player location to buffer
/nbt buffer  +=- add 500 to Y value in buffer
/nbt * Pos paste- move player up to 500 blocks
Player can not be teleported in a short distance by changing Pos
How would one go about using this to change a players location. I don't understand how you would edit the list of double tags for the Pos tag.
cauldron-1.7.2-1.1126.04.34-server works fine
Try to check with commands:
/nbt debug on
/nbt itemwith item that has tags (for example: book and quill with text)
craftbukkit-1.7.10-R0.1-20140713.051447-4 - fine
cauldron-1.7.10-1.1179.03.109-server - init error
As soon as I find the cause of the error, I will publish the snapshot in maven repo.
any dev versions for 1.7.10 I could use for testing? it doesn't need to be stable, I just don't want to remove all the PowerNBT code while I test something else on 1.7.10
With 0.7.3.1 and cauldron-1.7.2-1.1147.04.84-server i'm seeing /nbt item act like i've nothing in my hand. Any suggestions on what I might be affecting it?
Check that player has tag "Race" in forgeData.
I hope this helps
If not, It would be much more useful if you show a stack trace of exception. And full source code of file (to find the line number). To PM
I'm a litle inexperienced with java though so I'm having trouble using the api-
as a test I'm using a command, when the command is entered it returns an answer based on the nbt tag, which is an integer. my code:
this causes an unhandled exception error, any idea where I went wrong?
PowerNBT 0.7.3.1 now can work with cauldron
Tested with cauldron-1.7.2-1.1126.04.34-server
MCPC + no longer exists (((
Try to find in archives: google:mcpc-plus-1.7.2
I will add support cauldron in the next snapshot
It takes a few days
I'm using cauldron, MCPC+ was renamed to cauldron for the 1.7.2 version, and none of the 1.7.2 versions work for powerNBT 0.7.1 or above. all return the same error, http://pastebin.com/yWbSdgtr
do you know where I can find the right MCPC+? I checked the jenkins but only found cauldron for 1.7.2