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 |
-
View User Profile
-
Send Message
Posted Oct 27, 2015Newest versions of PowerNBT on https://www.spigotmc.org/resources/powernbt.9098/
-
View User Profile
-
Send Message
Posted Oct 27, 2015I'm using the plugin with kCauldron (needed to work on Tekkit Legends servers).
I get this error whenever I run /nbt
Just restarted the server and got this:
-
View User Profile
-
Send Message
Posted Sep 29, 2015@thtTNT
1) I recommend you to use the latest version of PowerNBT
2) Don't forget to import PowerNBT classes:
-
View User Profile
-
Send Message
Posted Sep 29, 2015Sorry for my poor English.But i have a probleam.I add the config into the "pom.xml" like this. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>net.tygzs</groupId> <artifactId>MineRPG</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> </properties> <repositories> <repository> <id>spigot-repo</id> <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url> </repository> <repository> <id>varscript.ru-releases</id> <name>varscript.ru-releases</name> <url>http://varscript.ru/artifactory/release</url> </repository> <repository> <id>varscript.ru-snapshots</id> <name>varscript.ru-snapshots</name> <url>http://varscript.ru/artifactory/snapshots</url> </repository> </repositories> <dependencies> <dependency> <groupId>org.spigotmc</groupId> <artifactId>spigot-api</artifactId> <version>1.8.8-R0.1-SNAPSHOT</version> <scope>provided</scope> </dependency> <dependency> <groupId>me.dpohvar.powernbt</groupId> <artifactId>PowerNBT</artifactId> <version>0.8.1</version> </dependency> </dependencies> </project> But i can not use the metod "PowerNBT.getapi()",Does anyone can help me?
-
View User Profile
-
Send Message
Posted Aug 14, 2015@chillac99
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"}}-
View User Profile
-
Send Message
Posted Aug 14, 2015@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
-
View User Profile
-
Send Message
Posted Aug 4, 2015@DPOHVAR
can custom ItemMeta solve it ?
-
View User Profile
-
Send Message
Posted Aug 1, 2015@hotflow96
Bukkit doesn/t support saving custom nbt.
In Forge, MCPC, Cauldon you can use tag 'forgeData' on entities
Hacks:
-
View User Profile
-
Send Message
Posted Jul 31, 2015Nice 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?
-
View User Profile
-
Send Message
Posted Jul 1, 2015@HardcoreFlans
Easy :)
/nbt me Inventory[0].tag."Missiles 0" = 42 float-
View User Profile
-
Send Message
Posted Jul 1, 2015Hey,
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!
-
View User Profile
-
Send Message
Posted Apr 14, 2015@DPOHVAR
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.
These lines result in the following output:
EDIT: If you need to contact me my Skype is nomnombacon32
-
View User Profile
-
Send Message
Posted Apr 14, 2015@DPOHVAR
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
-
View User Profile
-
Send Message
Posted Apr 14, 2015@chrism32
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
-
View User Profile
-
Send Message
Posted Apr 13, 2015Hello 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.
-
View User Profile
-
Send Message
Posted Apr 4, 2015@captbunzo
Hi
I have artifactory repository: http://dev.bukkit.org/bukkit-plugins/powernbt/pages/repository/
But Jenkins is really good idea!
-
View User Profile
-
Send Message
Posted Apr 3, 2015Hi 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?
-
View User Profile
-
Send Message
Posted Feb 18, 2015Didn'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.
-
View User Profile
-
Send Message
Posted Feb 16, 2015@o0Julia0o
Change zombie health:
/nbt id[Tab] HealF = 15.5Default zombie health is 20
Set zombie health to maximum:
/nbt id[Tab] HealF = this Attribues[0].baseChange zombie maximum health:
/nbt id[Tab] Attribues[0].base = 500select zombie as variable:
/nbt %zomb select<then right-click on zombie>
/nbt %zomb HealF = 1UPD:
zombie base damage:
/nbt %zomb Attributes[4].Basechange base damage:
/nbt %zomb Attributes[4].Base = 10zombie movement speed:
/nbt %zomb Attributes[2].Basesee: http://minecraft.gamepedia.com/Attribute
-
View User Profile
-
Send Message
Posted Feb 16, 2015how 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?