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 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

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

    Hello DPOHVAR, thanks a lot for keeping this plugin working. I've been using the API and have ran into the following issue. If you have any ideas on what I'm doing wrong, please do tell. Thanks in advance.

    Hastebin link

    It'll probably be something very obvious that I'm missing. Again, thank you.

  • Avatar of DPOHVAR DPOHVAR Apr 04, 2015 at 09:53 UTC - 0 likes

    @captbunzo: Go

    Hi
    I have artifactory repository: http://dev.bukkit.org/bukkit-plugins/powernbt/pages/repository/
    But Jenkins is really good idea!

  • Avatar of captbunzo captbunzo Apr 04, 2015 at 05:33 UTC - 0 likes

    Hi DPOHVAR. Thanks for continuing to update this plugin. It is a thing of wonder. Perhaps do you have a Jenkins site that you use with your GitHub updates?

    BFAK:90589030,fd8ea6bda7c2420a4b219834247de5550e27eb3e1682a433cdee98398df307f8

  • Avatar of Varijon Varijon Feb 18, 2015 at 13:07 UTC - 0 likes

    Didn't expect that, the latest beta version even works with mods, that's amazing.
    Picture

    Editing/saving works properly too, I'm sure there's a huge demand for this as people constantly need nbteditors for pixelmon. (Am I the only one thinking their nbt is a mess?)

    Thanks for updating this great plugin.

    Last edited Feb 18, 2015 by Varijon

    Check out my Hawkeye Monitor tool!
    HawkEye Monitor Thread

  • Avatar of DPOHVAR DPOHVAR Feb 17, 2015 at 03:54 UTC - 0 likes

    @o0Julia0o: Go

    Change zombie health:
    /nbt id[Tab] HealF = 15.5
    Default zombie health is 20

    Set zombie health to maximum:
    /nbt id[Tab] HealF = this Attribues[0].base

    Change zombie maximum health:
    /nbt id[Tab] Attribues[0].base = 500

    select zombie as variable:
    /nbt %zomb select
    <then right-click on zombie>
    /nbt %zomb HealF = 1

    UPD:

    zombie base damage:
    /nbt %zomb Attributes[4].Base
    change base damage:
    /nbt %zomb Attributes[4].Base = 10
    zombie movement speed:
    /nbt %zomb Attributes[2].Base
    see: http://minecraft.gamepedia.com/Attribute

    Last edited Feb 17, 2015 by DPOHVAR
  • Avatar of o0Julia0o o0Julia0o Feb 17, 2015 at 03:33 UTC - 0 likes

    how can i change the health of a zombie?

    /nbt * Health = 1000

    and look at the zombie? What is the default-health? Can i change the damage, too?

  • Avatar of DPOHVAR DPOHVAR Jan 29, 2015 at 20:37 UTC - 0 likes

    @Noxcode: Go

    Terrain control uses compressed nbt files with tag "Data"

    Use command
    /nbt $$chest = block
    And get file: plugins/PowerNBT/nbt/chest.nbtz
    chest export

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
16,093
Recent files

Authors