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 |
@SamuellSk
Just see http://www.minecraftwiki.net/wiki/Chunk_format#Dynamic_Tiles
you need to set:
block SpawnPotentials[0].Type = "FallingSand"
block SpawnPotentials[0].Properties.TileID = block_id int
block SpawnPotentials[0].Properties.TileEntityData = block_data byte
Pos and Motion as in this tuto
@DPOHVAR
Thanks and spawners with blocks ?
@SamuellSk
-> Create custom potions
-> Mobspawner with custom thrown potions
How to create spawner with potion ?
@sheshinjie
Yes, you need to set AttributeModifiers to item
attribute geteric.attackDamage
howto set attributes: http://dev.bukkit.org/bukkit-plugins/powernbt/?comment=218
Hi , Can powernbt change the weapon damage? thanks
@DoubleZ
Yes, see this comment
Hi, dose bukkit 1.6.2-R0.1 support item Modifiers?
I found I can't show any weapon modifier.
@DPOHVAR
Thanks
@kjbigs282
see http://www.minecraftwiki.net/wiki/Chunk_format
all fields in MinecartSpawner are similar to MobSpawner
therefore you can spawn MinecartSpawner at MinecartSpawner at MinecartSpawner at ... but not recursive.
How would you go about making a minecart into a spawner minecart?
@CommodoreAlpha
of course xD
/nbt id
[tab](EntityHorse) ChestedHorse = true
Is it possible to add a chest onto horses (not mules) via this plugin? If so, would anyone be willing to show me how?
@awesomestmason
You need to add ActiveEffects to mob/player
/nbt compound copy
/nbt buffer Id = 8 byte
/nbt buffer Duration = 32767 int
/nbt buffer Amplifier = 8 byte
/nbt me ActiveEffects[] paste
<wait for 5-10 sec>
You can not delete ActiveEffects tag
The only way to remove active effect:
/nbt me ActiveEffects[0].Duration = 0
@DPOHVAR Is it possible to do what you did with the speed, but instead boost your jumping? Also are there any resources available where I might find a list of things similar to "generic.movementSpeed". Thanks
EDIT: I found a list of them, and it seems to not be possible to change the jump height. Unless you know of a way...
i Recently tried the updated version, tried /nbt %m select, selected minecart, But when i /nbt %m after setting CustomDisplayTile = true, it only display few items it says 20 compound thing and when i count there is only something like 10 objects, but i can use tab completion to the missing object (i tried to write "DisplayT" and tab, there is DisplayTile even though it is missing) any idea why some are not shown?
@ryan_the_leach
/nbt id
[tab](MinecartRideable) as %cart
/nbt %cart CustomDisplayTile = true
/nbt %cart DisplayTile = 45 int
/nbt %cart DisplayOffset = 12 int
Anyone know how to add brand new tags to an object?
Trying to add the CustomDisplayBlocks onto minecarts
http://www.minecraftwiki.net/wiki/Chunk_format#Vehicles
@Roflzack
I've got it!
works in survival mode only!!
/nbt compound copy
/nbt buffer AttributeName = "generic.movementSpeed"
/nbt buffer Name = "Super-speed!"
/nbt buffer Amount = 2 double
/nbt buffer Operation = 1 int
/nbt buffer UUIDMost = 1234 long
/nbt buffer UUIDLeast = 4321 long
/nbt item AttributeModifiers[0] paste
UUIDMost and UUIDLeast - random non-zero numbers.
All attributes are reset if you are in CREATIVE mode (bukkit bug or feature?)
Ugh I am really confused about how to add attributes to items? Can you make items give you potion effects while you hold them? How bout a sword that makes you faster while holding it?
After doing some research I now know that there is a pitifully small amount of attributes out there :( I thought I knew enough to start editing my sword but I just keep crashing! How do I make a sword give me more health when I hold it? Without crashing part way through editing it? I tried doing it in a chest?