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 |
I have a couple unrelated questions, but I figure they might as well go in the same post:
1. With Falling Sand entities, is it possible to make them de-spawn upon hitting the ground? Normally they create a new block of the same block ID wherever they fall, so that's proving to be a bit problematic. Would the Time tag need to be given a certain value to give this effect?
2. Is it at all possible to spawn Particles? The Wiki lists them as being a kind of entity, but I'm not seeing anything about them in the Chunk format section, so I'm not sure if they're usable or not.
@DPOHVAR
Ah okay, thanks a lot!
@Varijon
Yes, it is possible:
/nbt me Attributes[0].Base add 2 - add max hp
/nbt me Attributes[0].Base add -2 - decrease max hp
/nbt item display.Name add " (appended)" - append text to end of string
or
/nbt <list1> add <list2> - add all tags from list2 to end of list1
Quick question, is it possible to add or substract from an int, short or byte?
Because it would be great for increasing a players maximum health by 1 if they do something specific like finding a special sign, using a special item with otherdrops etc.
Just an example of a possible use, there might be more possible with this.
If not, no problem, this is by far one of my favourite plugins since it just gets nearly everything done lol.
@DPOHVAR
Thank you!!
I have tried it succefully!
But I found that NBTedit can't open .nbt file but NBTExplorer is OK.
@IMathe172I
http://dev.bukkit.org/bukkit-plugins/nbteditor/ like this?
No, thanks :D
You can use files as multi-clipboard
But I can create an module for VarScript plugin, that allows nbt templates in books as you say
@DoubleZ
/nbt $filename = some
for example:
/nbt $inv = me Inventory - save your inventory to file inv.nbt
/nbt me Inventory > $inv - same action
/nbt $myblock = block - save block to myblock.nbt
Also you can open/edit this file with NBTEdit
Would it be possible to make the clipboard accessible through a written book? This way, you could copy the data of a pig (with something similar to "/nbt * . copy"), then edit them in the book, and then paste the into a spawner. You could make an option that activates a "hardware-clipboard" (the written book). The book could also serve as a template and it would make an awesome plugin even better :) .
@MYXOMOPX
This is goooooood! I like it!
by the way, how did you created these .nbt file?
@DPOHVAR
i want to disable it because i have an rpg server that use powernbt to make the custom items, and there's a feature called "Upgrading" and, this feature have to disable the powernbt message, because i want to change it with "Upgrading succes!" or something
the upgrading system is like this, you hit the anvil with the scroll for enchanting the item first, and then hit the anvil again with the item you want to upgrade, and then i put some code (Script) that makes player execute command "/nbt item display.Name = "[1] Scimitar" (of course i give the player permission to use that command and then remove it when the comands done) (with some custom chances), and if the powernbt message still show up, it doesnt looks good i think xD
sorry for my bad english, idont speak english very well :D hope you understand and make some option to disable it! :D
is \ck another plugin? I tried it , but it just show MAGIC
@jack588
no.
UPD: Why do you want to disable it?
is it possible to disable the message like "[PowerNBT] new value set .... " ?
@sheshinjie
prepend "\ck" to text.
/nbt block Text4 = "\ckMAGIC"
you can use it with color modifiers:
/nbt block Text4 = "\ca\ckMAGIC"
i saw the youtube powernbt0.5 i found the sign Text4 show garbled before how do u made it ?
@jack588
You can edit file en.yml
Extract it from package and place to plugins/PowerNBT/lang folder
can i edit or disabling the message like "[PowerNBT] new value set .... "?
@DPOHVAR
In this video used MCEdit. http://www.youtube.com/watch?v=MM7t3lMjBvE
@SamuellSk
hmm.. I think that there are 3 minecarts in this image
first cart with leaves, that contains (as passenger) next cart with tree, and next one
You can spawn it in mobspawner, but I do not know how they will behave on the rails
@DPOHVAR
Thanks!
How to create minecart with blocks (see image)? I uses this tutorial http://dev.bukkit.org/bukkit-plugins/powernbt/?page=2#c220 i dont know with more blocks..