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 |
@MadFlop
It seems that you have a corrupted file player.dat
Or corrupted enchantments (string instead of a list)
Try to clear your inventory or remove player.dat
2013-04-07 18:43:02 [WARNING] Failed to handle packet for flop/127.0.0.1: java.lang.ClassCastException: net.minecraft.server.v1_5_R2.NBTTagString cannot be cast to net.minecraft.server.v1_5_R2.NBTTagList java.lang.ClassCastException: net.minecraft.server.v1_5_R2.NBTTagString cannot be cast to net.minecraft.server.v1_5_R2.NBTTagList at net.minecraft.server.v1_5_R2.ItemStack.getEnchantments(ItemStack.java:347) at net.minecraft.server.v1_5_R2.EnchantmentManager.a(SourceFile:96) at net.minecraft.server.v1_5_R2.EnchantmentManager.a(SourceFile:163) at net.minecraft.server.v1_5_R2.EntityHuman.attack(EntityHuman.java:832) at net.minecraft.server.v1_5_R2.PlayerConnection.a(PlayerConnection.java:1119) at net.minecraft.server.v1_5_R2.Packet7UseEntity.handle(SourceFile:36) at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:176) at net.minecraft.server.v1_5_R2.PlayerConnection.d(PlayerConnection.java:110) at net.minecraft.server.v1_5_R2.ServerConnection.b(SourceFile:35) at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:66) at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:580) at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:229) at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:469) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:401) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
@EpicTrance
for example:
I think it will work
Dont forget to remove UUID tags.
In that video only a mob riding a mob was done
Cant you make several mobs riding each other
@DPOHVAR
I did this and it didn't work :( the villagers just don't spawn
This is the best nbt edit plugin I've ever seen I hope it stays updating for a long time. :D
@DPOHVAR Right, seems like i was selecting wrong mob
Thanks, im going to try it
EDIT: i dont see any of these in the spawner nor my buffer or selection?
EDIT2: After a bit research, i found out that if the spawner use Pos tag, the ridden mob got spawned twice, and one of them is a ghost mob
Edit3: I removed the pos tag on the pig thats on a bat, and put the pos tag on the bat instead, and it dont spawn ghosts anymore
And also, i just realized all ghost mob is removed Except one (which i dont know why) after relog/moving world
Edit4: Somehow the ghost bat is gone..
What i meant is the block 36 that is able to transform (you can see this at Eronev chronicles: the flood[the whole map can be flooded with transforming water] and Hypixel Herobrine's return [the villager at angel shop is blocked by block 36]), i tried to place any tag needed but that dont work, however when spamming piston to get block 36 while trying to change the duration thingy it work
@Clawshot
CanPickupLoot wokrs fine!
/nbt id[Tab] CanPickupLoot = true
About spawners:
Remove all UUID tags before you append it to mobspawner:
Ill make a video tutorial here
Block 36:
You can create this block with WorldEdit
Im getting the hang of this not the custom spawners though....
And I really wish I could make stacked entities that were released in 1.5 mc
I seen video on youtube about Block 36 (moved piston or something), so i tried to create one but it dont work? (i put everything, i even copy pasted other block 36 in a custom map) Are block 36 can only be done using MCEdit?
EDIT
also i found 2 bug
I found a bug: If you set CanPickUpLoot = 1 the Mob cant pickup the items
v0.4.3.1 (Bugfixes)
@EpicTrance
You can remove /nbt command by removing last line in file plugin.yml
@EpicTrance
I will add the feature to disable command /nbt
@DPOHVAR
yes but /nbt is ovveriding another plugins command
@EpicTrance
/pnbt /powernbt commands already exists ;-)
Btw I'm doing exactly as the video says and stuff is not working
This plugin is really confusing compared to NBTEditor no offense
can you change the /nbt command to /pnbt cause I have 2 nbt editors\
I would appriciate it if you can thx :)
@EpicTrance
Thanks for report.
You can edit stacked mobs only in mobspawners. It is minecraft feature and works only with 1.5
I can add a fake feature to spawn mob, which writed in "Riding" (you will need to enable it in config.yml)
Btw the new verion 0.4.3 is still broken :\
2013-03-21 20:48:11 [INFO] [PowerNBT] Enabling PowerNBT v0.4.3 2013-03-21 20:48:11 [SEVERE] Error occurred while enabling PowerNBT v0.4.3 (Is it up to date?) java.lang.NullPointerException at me.dpohvar.powernbt.PowerNBT.onEnable(PowerNBT.java:100) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_5_R2.MinecraftServer.j(MinecraftServer.java:303) at net.minecraft.server.v1_5_R2.MinecraftServer.e(MinecraftServer.java:282) at net.minecraft.server.v1_5_R2.MinecraftServer.a(MinecraftServer.java:242) at net.minecraft.server.v1_5_R2.DedicatedServer.init(DedicatedServer.java:150) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:381) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
@DPOHVAR
I mean the new stacked mobs in 1.5 that can only be done through NBT editors and mcedit