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 |
Byte - Red
Short - Yellow
Int(eger) - Blue
Long - Aqua?
Float - Pink
Double - Purple
String - Green
List - ???
Compound - ???
I dunno how to create Lists or Compounds.
What is that creature in your Monster Spawner?!?!?
Thanks DPO :)
EDIT: How do you get a Monster spawner? I have essentials and I type /give willybobsta monsterspawner and it gives me 64 but when i place it it uses the block that I replaced it with....
EDIT: Fixed, I just have to make sure there is any empty spot in my inventory hotbar thingy.
EDIT (again): Could you add a bit on the thing udner references which tells you what colour each thing (like how Short is yellow)
Thanks :P
@Folas1337
1) You wrote a wrong query.
/nbt i display.Name = string Test
Be careful!
2) Documentation about NBT format is here:
http://www.minecraftwiki.net/wiki/Chunk_format
http://www.minecraftwiki.net/wiki/NBT_format
Do you need anything else?
3) You can edit enchantments at any item
Only enchantment id and level is editable.
/nbt item ench[0].id = short 19 (knockback)
/nbt item ench[0].lvl = short 1000
Also, you can create custom potion effect.
for more about items, see http://www.minecraftwiki.net/wiki/Player.dat_Format#Item_Structure
Typed in "/nbt i display = string Test" and my client crashes when I start to get on the icon with my cursor :D
Edit1: Is there any more documentation anywhere or just the one on this page? If it's just this it's pretty useless as far as I can tell
Edit2: Is there a way to add enchantments to items that you normally couldn't with this plugin?
Editing mob spawner:
@MrHotsauce1337
You can change beacons effects by id:
/nbt block Primary = int 5
/nbt block Secondary = int 0
And edit existing effects in living entity's nbt:
/nbt me ActiveEffects[0].Duration = int 999999
create your own effects is not possible with this plugin
So I'm very new to this NBT thing but I do know that you can make custom potion effects and beacons. Can this be done with your plugin?
@willybobsta
1) Change player's health
/nbt *playername Health = short 1000
2) Set item name (item in hand):
/nbt item display.Name = string "new name"
/nbt item display.Lore[0] = string "second line"
/nbt item display.Lore[1] = string "third line"
... etc
You can use tab-completion to find needed tag.
Helpful info: http://www.minecraftwiki.net/wiki/Chunk_format
Multiple things, answer ASAP please. First, how would I go about change someone's health? /nbt *name ???????????????????????????????????
And second, How would I give weapons a custom name? You have to add 2 compounds in a row. How do you do it?
Perfect, bro!
I am DEFINITELY going to try this plugin!