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 |
NBTeditor beta breaks this.
PowerNBT 0.6.2
fixed: commands for selecting entities, blocks and items
select container to variable:
/nbt %variableName select
/nbt * as %variableName
multiple selection by holding [Shift], example:
/nbt * Text1 = "Text in first line"
shift+click on sign 1,
...
shift+click on sign N,
click on last sign or execute /nbt cancel
if you have more than one selector '*', multiple selection use last selector. Example:
/nbt * Text1 > * Text2
click or shift+click on sign 1 - copy first line
shift+click on sign 2 - paste text to second line
...
click on last sign or execute /nbt cancel
select items in inventory:
in survival/adventure mode you can select items in your inventory by right-click
multi-selection also works by shift+rightclick
in creative mode you can select items by left-click and multi-selection does not work
@namazso OK
@DPOHVAR
Github doesn't contain modifications after 0.5.3.2. Can you update it please?
@Roissica
because yout don't want to change the id, but the damage. So the correct command would be
Hello i need a help i want change value to my villager for sell i use: /nbt id9999(Villager) Offers.Recipes[1].sell.id 95 but i want glasses orange, so ID 95:1 but when i but 95:1 that don't work please tell me, what i must type for this?
@rustyshakelford2 edit first item in your inventory:
/nbt me Inventory[0].Damage = 0
/nbt inv [0].Damage = 0
What command would edit a tool's durability? I want to use this to repair items.
@DPOHVAR
If only it was available...
PowerNBT v0.6.1 beta for bukkit 1.7
PowerNBT 0.5.4 not works with bukkit 1.7
Wait for the next version
This is an amazing, amazingly powerful plugin. Love it!
Хороший плагин спасибо.
Got attribute modifiers working on an item, but am curious how to do something like add a jump boost to a pair of boots or maybe night vision on a helm.
I've seen the jump boost boots before in a CTM map but have no idea how they added it.
@codydbgt
You may not properly use the API
Write me a pm
iv tried using the api and in game commands the api i can get player .dat nbt values but cant save them to disk same as in-game
ill do /nbt *codydbgt Dimension = 25 then do /nbt *codydbgt Dimension Output: is Dimension = 0
or vice versa
also tried with @ it actually does save but is then some how overwritten when the player logs back in
my goal is to implant the api in a login event and check what Dimension there in and if its not 0 or in my config then it will change it to 0 save then kick them this is needed to fix a multiverse issue where when you regen a world multiverse changes the dim value even thoe the name is the same
I can't edit potions.
@Frontrider
If you add a tag, which is not expected by the client, it may be crashed. Be careful!
You may use int instead of short
or compound instead of list
@Frontrider
you can append text line-by-line
/nbt item pages[0] = "First line\n"
/nbt item pages[0] += "Next line\n"
...
Book editing is not the best.I have a book to edit, but the text what it showes just ends right before the part what i want to edit
When i edit an item in someone elses inventory the item goes buggy and make that player to be kicked from the server.