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 Jun 29, 2013I'm having problems with items storing data. When I add extra (anything not in vanilla minecraft) data to an item it disappears in creative mode after being moved and in survival mode kinda randomly. To make sure it wasn't plugins causing it I tested it on a server running only powerNBT and added a test string to some armor. Any idea whats happening?
-
View User Profile
-
Send Message
Posted Jun 27, 2013@Byamarro
you can edit scoreboard only if use MCPC+
1) create scoreboard with /scoreboard ...
2) /nbt scoreboard ... to view or edit
(I think that this feature is useless)
-
View User Profile
-
Send Message
Posted Jun 27, 2013How to edit scoreboards?
-
View User Profile
-
Send Message
Posted Jun 21, 2013@DPOHVAR
is there any way to disable the messages? if not could you at it?
-
View User Profile
-
Send Message
Posted Jun 9, 2013@DPOHVAR
Thank you! :) That's almost exactly what I needed!
-
View User Profile
-
Send Message
Posted Jun 8, 2013@AntonDIGGA
Hi
This plugin already has everything you need
You can save any tags to files, for example:
save your inventory:
me Inventory > $inventory_filesave some inventory:
*PlayerName Inventory > $inventory_fileload inventory:
me Inventory < $inventory_filesave item tags (name, enchants, skullowner, book pages, etc):
item > $my_item_tagsload item tags (you should keep item in your hand):
item < $my_item_tagssave player stats (inventory, hp, gamemode, etc):
*PlayerName > $playerfileYou can also save chest:
block Items > $chestand load it to your inv:
me Inventory < $chestenjoy ;-)
-
View User Profile
-
Send Message
Posted Jun 8, 2013Heyho! This plugin is simply awesome! I use it for my Server too ;)
Could you make simple /save and /load commands? I hold a Playerhead and make /save test1 and another player with nothing in his inventory makes /load test1 and he gets the Skull?
That would be INCREDIBLE! :D
-
View User Profile
-
Send Message
Posted Jun 7, 2013@DPOHVAR
Thank you SO much.
-
View User Profile
-
Send Message
Posted Jun 7, 2013@RenFowl
/nbt item author = "new author"ok?-
View User Profile
-
Send Message
Posted Jun 6, 2013What would one do if they wanted to go about changing the name of the Author of a book?
-
View User Profile
-
Send Message
Posted May 27, 2013@Snaipe_S
yes, you're right. You can add any NBT data to items, but not to entities, players, blocks, etc. Also, you can store any data to mobspawner
SpawnPotentials[].Properties.When using NBTContainerItem, you can change it or save it only 1 time. After saving the ItemStack does not exist.
And please use the NBTContainerChunk for readonly. It is now does not work properly and may cause crash.
-
View User Profile
-
Send Message
Posted May 27, 2013@Snaipe_S Nevermind, after further research, I saw that the player does not keep its compound, making it impossible to add data. It's a shame :/
-
View User Profile
-
Send Message
Posted May 27, 2013@DPOHVAR Hey DPOHVAR, I'm trying to use your API to insert custom tags in players and chunks, however, they do not seem to get saved. Any clue on how I could do that ? Furthermore, after a bit of research, it seems I cannot add any custom tag to a player, whilst it works fine for items.
-
View User Profile
-
Send Message
Posted May 21, 2013@michidk
1) use worldedit =)
2) spawn a falling block (id 92) with spawner
see tuto
{..}.Type: FallingSand
{..}.Properties.TileID: 92 int
{..}.Properties.DropItem: false
-
View User Profile
-
Send Message
Posted May 19, 2013how i can spawn a solid block.. for example a infinity cake
-
View User Profile
-
Send Message
Posted May 17, 2013@DPOHVAR
Yup it works now, updated your plugin twice.
Greetz, Kilian
-
View User Profile
-
Send Message
Posted May 13, 2013@kilianl111111
your bukkit version plz =)
to PM
UPD: all works fine.
latest 1.5.2
-
View User Profile
-
Send Message
Posted May 13, 2013Doesn't villager recipes changing work? Or is the tutorial on the page really outdated?
Can't get it to work.
Greetz, Kilian
-
View User Profile
-
Send Message
Posted May 10, 2013@GioboiMC
Hmm.. also try
{...}
buffer [0] = 0.5 double
buffer [1] = 0.8 double
buffer [2] = 0 double
{...}
This will throw the potions in the direction of the x
@GioboiMC
XP bolltes: use Type "ThrownExpBottle" instead of "ThrownPotion"
and skip "Potion" tag.
If you need to spawn XP orb, use Type: "XPOrb"
You can set custom amount of experience:
block SpawnPotentials[0].Properties.Value = 100 short-
View User Profile
-
Send Message
Posted May 10, 2013Also how do I do it for xp bottles?