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 23, 2014 at 12:50 UTC - 0 likes

    @DPOHVAR: Go

    Чувакк,ты забыл загрузить его )

  • Avatar of DPOHVAR DPOHVAR Apr 23, 2014 at 11:26 UTC - 1 like

    PowerNBT v0.7.1 beta

    Tested with:

    craftbukkit 1.4.5-R1.0error on tile entity update packet
    mcpc-plus-legacy-1.4.7-R1.1fine
    craftbukkit 1.6.4-R1.0fine
    mcpc-plus-1.7.2-R0.4-forge1033-B50fine
    craftbukkit 1.7.9-R1.0-SNAPSHOTfine
    • search offline player file by UUID
      old version:
      /nbt gz:world/playerdata/0a12e6c1-babe-cafe-d01d-c0ffeedeadc7.dat
      this version:
      /nbt @PlayerName
    • added tag ForgeData for entities
      You can store you can store any data to compound "ForgeData"
      /nbt id123(Cow) ForgeData.isSuperCow = true
    • Class mapping
      Forge 1.4.7 require class mapping
      You need to add
      classmap: classmap.yml
      to PowerNBT config plugins/PowerNBT/config.yml
      and create file
      plugins/PowerNBT/classmap.yml with this content:
       1
       2
       3
       4
       5
       6
       7
       8
       9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      21
      22
      ItemStack: ur
      EntityPlayer: iq
      EntityHuman: qx
      EntityLiving: md
      Entity: lq
      WorldServer: in
      TileEntity: any
      Packet: ef
      NetworkElement: iv
      NBTCompressedStreamTools: ca
      NBTBase: cd
      NBTTagByte: bp
      NBTTagShort: cb
      NBTTagInt: bx
      NBTTagLong: bz
      NBTTagFloat: bv
      NBTTagDouble: bt
      NBTTagByteArray: bo
      NBTTagString: cc
      NBTTagList: by
      NBTTagCompound: bq
      NBTTagIntArray: bw
      

    @TheKitsch: Go

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

    Install plugins:
    PowerNBT + VarScript + lib:Groovy + VarScript:PowerNBTExt
    And now you can write scripts like this:

    me.getItemInHand().nbt {
        it.display = [
            Name: "Example",
            Lore: ["-l","-o","-r","-e"] 
        ]
        it.someNumber = 42 as short
    }
    

    or this:

    me.addNbt(
        HealF: 10 as float,
        ForgeData:[myString: "value"] 
    )
    

    and it possible to load scripts from pastebin.

    @goldstar25: Go

    Обновил :) Пользуйся на здоровье!

    @blablubbabc: Go

    ExceptionInInitializerError: null'

    Please check version 0.7.1
    first command:
    /nbt debug on
    and then use your commands
    If an error occurs, I would like to see the log file. Please attach it to the pastebin.com

  • 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

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,428
Recent files

Authors