PowerNBT

NBTTagList

[PowerNBT]

Powerful NBT editor for CraftBukkit 1.3.1 and later
Now API is available!
With this plugin you can:

  • Create custom mobspawners with stacked mobs
  • Edit Attributes
  • Custom potion effects and fireworks
  • Edit offline players
  • Rename items
  • Edit equipment of mobs
  • and more

PowerNBT 0.5

Features

  • Browsing and editing NBT tags
  • supports items, players, offline-players, entities, blocks, all nbt files
  • save tags to file
  • custom colors and unicode symbols
  • supports tab-completion
  • supports copy/paste/cut/swap
  • supports variables

Usage

View NBT tags

  • /nbt object [query]

View all the available tags from the object.
Object must be:
me - player
item,i - item in hand (only tagged items)
block,b - block at the line of sight
id123 - entity with id 123
buffer,c - copied tag
*name - other online player
query - string containing tags, sepatated by dot. Examples:
Inventory[1].id - id of second item in player inventory
display.Name - item's name.
pages[0] - first page of book
pages[] - new page
. - root
query may be omitted.

Edit NBT tags

  • /nbt object1 [query1] = value [type]

changes the value of the tag.
value - numeric value or text in quotes
For string, you can use special characters:
\n \b \t \" etc.
\c or & to place § (used for formatting codes)
\& to place '&'
\uXXXX to place any unicode symbol (where XXXX is hexadecimal char code)
type - may be byte, float, double, int, string, short, long, byte[], int[].
type is not required:
- if value is string
- if object already has a value

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

  • If you find a bug, please report me in the comments

Changelog

Version 0.5.3

  • fixed bug: unnecessary tags x,y,z when you copy/paste block
  • API: protected->public getter and setter for raw nbt tag

Version 0.5.2 beta

  • disabled "scoreboard" and "chunk"
  • works with 1.6.1

Version 0.5.1 beta

  • works with MCPC+
  • new object: "scoreboard" (experimental, only MCPC+)
  • new way to display tags

Tutorials

Todo

  • new nodes of permissions
  • bugfixes (bugs with escaping char '/' )
  • undo/redo commands
  • other way to make templates

API

API is now available!
it works with any version of Bukkit since 1.3.1
see API for documentation and examples

Warning

If you add a tag, which is not expected by the client, it may be crashed. Be careful!

Helpful links, about NBT format:

Source

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of goldstar25 goldstar25 Apr 18, 2014 at 19:51 UTC - 0 likes

    Чувак,на сколько я знаю ,ты русский.НАдеемся ты скоро обновишь плагн,ибо он шикарен.

  • Avatar of DPOHVAR DPOHVAR Apr 15, 2014 at 15:06 UTC - 1 like

    I will try to update the plugin soon.
    Working code for all versions already on github

  • Avatar of bobberto7 bobberto7 Apr 15, 2014 at 15:03 UTC - 0 likes

    @blablubbabc: Go

    I got the same error its a outdated version of powernbt so you need to downgrade bukkit or spigot.

    Potato

  • Avatar of DPOHVAR DPOHVAR Apr 14, 2014 at 08:06 UTC - 0 likes

    @blablubbabc: Go

    What is your version of bukkit and plugin?

  • Avatar of blablubbabc blablubbabc Apr 14, 2014 at 00:37 UTC - 0 likes

    Seems to be broken: _ExceptionInInitializerError: null' whenever I run the first item related command.

  • Avatar of Frontrider Frontrider Apr 10, 2014 at 06:33 UTC - 0 likes

    An extremly powerfull tool, basicly replaces a few tons of plugins.

  • Avatar of Zanderwarpx Zanderwarpx Apr 09, 2014 at 03:22 UTC - 0 likes

    This was the first plugin i tried out!

    This is also one of my favorites.

    I love to beta test plugins!

  • Avatar of TheKitsch TheKitsch Mar 03, 2014 at 16:41 UTC - 0 likes

    Can you add the ability to use scripts from paste bin?

    i;e /nbt pastebin 7RS20evc

    It would then run this pastebin script http://pastebin.com/7RS20evc

    Or make it so you can save the scripts too the server box and name them, so something like this would also work

    /nbt script scriptName.txt

  • Avatar of DPOHVAR DPOHVAR Feb 24, 2014 at 06:47 UTC - 0 likes

    @Adam_Nox: Go

    No. PowerNBT has only "hex" formatting filter.

    I can suggest you to use the VarScript plugin + Groovy + NBTTools module
    but it is very difficult for the average user
    /g>> ( nbt(me).Attributes[1].Base*100 as int ) + "%"
    [VarScript] 40%

    Last edited Feb 24, 2014 by DPOHVAR
  • Avatar of Adam_Nox Adam_Nox Feb 24, 2014 at 06:30 UTC - 0 likes

    Is there any way to format, or apply multiplication to values retrieved in queries, for display purposes only?

    One specific example, let's say I want to tell a player they have 40% knockback resist. The value that comes back when issuing the query is double base: 0.4. Is there a way to convert that to return just 40%, or as part of chat command response customize at all?

Facts

Date created
Nov 28, 2012
Categories
Last update
Dec 19, 2013
Development stage
Release
Language
  • enUS
  • ruRU
License
GNU General Public License version 3 (GPLv3)
Curse link
PowerNBT
Downloads
11,344
Recent files

Authors