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 |
@DPOHVAR
the format is very complex to me :/ Is it too much to ask for a tutorial?
Formatting
Now being used in this way:
& => § (because it is used most often)
\c => § (it works too)
\& => &
\_ => space
and java special chars
API
API is available!
requires version 0.4.0
See API. Its easy to use
@DPOHVAR
Maybe a mod or ingame client would greatly help, because i dont know how to create new compounds, or make new lists ect. if you were to create a mod like Ingame NBTedit, that would make this plugin 100000x easier to use. also im constantly looking back at the website for the right commands (a bit of a hassel)
@mc_raftee
Great idea, but In-game NBTedit mod does not support bukkit, because its offline-editor and not open-source.
in this case I can't do anything. =(
Davidee (author) said that he will make the port to bukkit.
if possible, can you make this compatible with the In-game NBTedit mod?
edit: heres the link http://www.minecraftforum.net/topic/1558668-147forgesspsmp-in-game-nbtedit-edit-nbt-tags-without-leaving-your-game-updated/
@gameacid13
Of course! see for Offers.Recipes[] tag in Villagers http://www.minecraftwiki.net/wiki/Chunk_format#Mobs
Thanks for the help :)
another question, Villagers. Can add/modify there trades?
@DPOHVAR
Wow. This works like a charm! I'm so happy right now, thanks for your help! Keep up your awesome work :)
Mit freundlichen Grüssen :) (That was german :P)
@Enlogon
Try /nbt buffer id = 10 short
its required id that in range 0...51 but without special effect.
see http://www.minecraftwiki.net/wiki/Enchantment
UPD:
you can edit item directly! Its safely.
lvl is not required
just type /nbt item ench[].id = 10 short
@DPOHVAR
Thanks for your quick reply, I'll try this out later and one again, thanks for your work! :)
EDIT:
Whuups, Minecraft crashes when pointig at the item with the cursor (at inventory), have you got another idea?
@Enlogon
tag "ench" not be empty!
First, create a buffer:
/nbt compound copy
/nbt buffer id = 999 short (invalid id will not be displayed)
/nbt buffer lvl = 0 short
Then attach buffer to the item:
/nbt item ench[] paste
this is the only way to create fake enchanting effect
But in the future console can throw an exception when some try to copy item with Bukkit API (probably it is not dangerous, but item can not be copied)
I'm sorry, is there a way to like just add a tag without 'declare it?
I need an item to glow like it was enchanted, and normally you would just add the 'ench' tag, but I don't know how i can do this. If i set the value to like 1 byte or whatever, Minecraft crashes.
Thanks for your awesome work, this plugin is by far one of the most impressive ones I've ever seen!
(Sorry for my bad english :P)
@gameacid13
it is similar:
/nbt item CustomPotionEffects[] paste
@DPOHVAR
i mean't modifying a potion in your hand but thank you :)
this helps alot
@gameacid13
1) see http://www.minecraftwiki.net/wiki/Chunk_format#Mobs
/nbt compound copy
/nbt buffer Id = 10 byte(regenetation)
/nbt buffer Amplifier = 5 byte(level)
/nbt buffer Duration = 600 int
then
/nbt me ActiveEffects[0] = buffer
or
/nbt me ActiveEffects[0] paste
or
/nbt %mob ActiveEffects[] paste (add new effect)
Clear effects: /nbt me ActiveEffects remove
2) examples:
/nbt item display.color = red
/nbt item display.color = #FF0000 (very red :D )
/nbt item display.color = #FFFF00 (yellow)
oK, 2 things.
1. how can you change potion effects
2. how do you set armor color
i have checked and can't find an answer
@gameacid13
Client will be crashed:
(display.Name = 0 byte ; ench = "string" etc)
(Primary = 100500 ; effect with this id should exist)
Just be careful when editing tags.
Is there a chance of you breaking something so bad that if anyone on a server sees it, they crash?
Tag view
v 0.3.3
@Wolf495
no