PowerNBT

NBTTagList

[PowerNBT]

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)

PowerNBT 0.5

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

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

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:


GithubMavenJavadoc

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

  • Avatar of DPOHVAR DPOHVAR Aug 14, 2015 at 12:26 UTC - 0 likes

    @chillac99: Go

    You can change item name in your hand:

    /nbt item display.Name = "&4Destruptor"

    or give item:

    /nbt hand = {id:diamond_sword,Count:1,Damage:0,display:{Name:"&4Destruptor"}}

    Last edited Aug 17, 2015 by DPOHVAR
  • Avatar of chillac99 chillac99 Aug 14, 2015 at 08:46 UTC - 0 likes

    @DPOHVAR Hi! I really apreciate this plugin, is awesome :3 . But I need help : How can I make colored items name (like a sword with red name : "Destruptor") with your plugin ? I know that , in 1.7 , it works like "/give x diamond_sword 1 0 name:&4Destruptor" , but in 1.8 is not working. Please help me (if isn't possible with your plugin, can you show me another way?) Again, great work man. Have a nice day! :D

    Last edited Aug 14, 2015 by chillac99
  • Avatar of hotflow96 hotflow96 Aug 05, 2015 at 02:01 UTC - 0 likes

    @DPOHVAR: Go

    can custom ItemMeta solve it ?

  • Avatar of DPOHVAR DPOHVAR Aug 01, 2015 at 08:12 UTC - 0 likes

    @hotflow96: Go

    Bukkit doesn/t support saving custom nbt.
    In Forge, MCPC, Cauldon you can use tag 'forgeData' on entities

    Hacks:

    • You can save any nbt data into item tag but it will disappear when a player takes it in hands.
    • 'BlockEntityTag' in item tag can contains any nbt data. I'm not sure whether it will disappear
    • 'CustomName' of Container Block can contains any string (32767 bytes UTF-8)
    • tags 'Command' (string) and 'CommandStats' (strings) of CommandBlock
    • 'SpawnPotentials.Properties' of MobSpawners
    • You can save NBT data to custom file.
  • Avatar of hotflow96 hotflow96 Jul 31, 2015 at 22:12 UTC - 0 likes

    Nice code, Very appreciated! I'm working in NBT too, learned a lot from your code. Can you done with saving custom NBT tag in Bukkit?

  • Avatar of DPOHVAR DPOHVAR Jul 01, 2015 at 22:34 UTC - 0 likes

    @HardcoreFlans: Go

    Easy :)
    /nbt me Inventory[0].tag."Missiles 0" = 42 float

  • Avatar of HardcoreFlans HardcoreFlans Jul 01, 2015 at 19:47 UTC - 0 likes

    Hey,

    I really need your help! The plugin works fine but:

    I have a compound with a space in it ("Inventory[0].tag.Missiles 0") and thats obviously not editable with your plugin. Do you have a clue?

    Thanks!

  • Avatar of chrism32 chrism32 Apr 14, 2015 at 23:00 UTC - 0 likes

    @DPOHVAR: Go

    Here is a lot more of the code via hastebin. Please tell me if you need any more information. Also, it is a bit of a mess right now, sorry.

    NPCManager http://hastebin.com/osiyefadiw.avrasm

    DataNPCSpawn http://hastebin.com/inopafofad.java

    DataNPC http://hastebin.com/ukivijoyuq.java

    All of these data fields are pulled from a SQL database.

    Bukkit.getLogger().info(loc.toString());
    Bukkit.getLogger().info(npc.toString());
    

    These lines result in the following output:

    [17:53:04 INFO]: DataLocation [id=1, x=1147.0, y=100.0, z=2256.0, world=world, pitch=0, yaw=0]
    [17:53:04 INFO]: DataNPC [id=1, custom_name=Johoon, type=ZOMBIE, is_baby=false,
    is_villager=false, gear_hands=null, gear_boots=null, gear_legs=null, gear_body=null, gear_head=null, npc_drops=null, merchant_data=null, health=200, movement_speed=0.0, follow_range=0, knockback_resistance=0, attack_damage=0, invulnerable=true, no_ai=false, can_pick_up_items=false, silent=false, can_break_doors=false]
    

    EDIT: If you need to contact me my Skype is nomnombacon32

    Last edited Apr 14, 2015 by chrism32
  • Avatar of chrism32 chrism32 Apr 14, 2015 at 13:04 UTC - 0 likes

    @DPOHVAR: Go

    Later today I can get this all for you, I can even send the whole project if you need, but here is some information I have time for right now:

    Spigot git-Spigot-2f787bd-501372f 1.8.3

    PowerNBT API Version (using Maven) 0.8.4

    Last edited Apr 14, 2015 by chrism32
  • Avatar of DPOHVAR DPOHVAR Apr 14, 2015 at 08:39 UTC - 0 likes

    @chrism32: Go

    Hello

    Thanks for report,
    It seems like bug in PowerNBT API
    I will correct as soon as possible.

    Please give me more information:
    - PowerNBT version
    - Your server version (spigot?)
    - More detailed codeб so that I can to reproduce it

Facts

Date created
Nov 28, 2012
Categories
Last update
Jan 25, 2015
Development stage
Release
Language
  • enUS
  • ruRU
License
GNU General Public License version 3 (GPLv3)
Curse link
PowerNBT
Downloads
17,057
Recent files

Authors