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 |
@DPOHVAR
Thanks.. I've tried it and it's just raining potions up and down in a vertical line.. What am I doing wrong? xD
@GioboiMC
tutorial/mobspawner_potions/
Can you please make written tutorials on how to make custom potion spawners and other entity spawners like xp bottles and plain xp? Your video tutorials go by so quickly and are very confusing.. Looks like a cool plugin but I just don't understand how to use it properly.
@juicyton
Added video tutorial: Fireball in mobspawner
@My_Name_Was_Stolen
About bows:
at your peril (I have not tested it)
Place a bow in your first slot;
create list of compounds with size=5. (It is used only once):
block SpawnPotentials[0].Properties.Equipment[4] = compound
put bow to slot 0:
block SpawnPotentials[0].Properties.Equipment[0] = inv [0]
You can place enchanted bow or sword in some way.
And you can set armor by change index:
0: The item being held in the mob's hand.
1: Armor (Feet)
2: Armor (Legs)
3: Armor (Chest)
4: Armor (Head)
inv [0]
is similarly tome Inventory[0]
Abilities:
Just try. I think it would work
But it does not work with custom potions: Max time = 32767. I do not know why.
You can apply it to players:
*PlayerName ActiveEffects[] paste
I think there is no need to create a wiki for this plugin. All you need is here:
http://www.minecraftwiki.net/wiki/NBT_format
Thanks for log
I think the mistake is that tag Equipment contains only one element, but the server expect 5. But not yet tested, have no time.
buffer Equipment[4] = compound
buffer Equipment[0] = me Inventory[0] (Chain helm in first slot)
You can contact me by email or skype: dpohvar
@DPOHVAR
Howdy DPOHVAR, thanks so much for your help. Everything worked out well, with only a few issues. When I added the skeletons to the spawner in the Nether, they spawned without bow, in the melee form, how would I make it so that the skeletons that are spawning are also archers?
Also, the potion abilities given to mobs didn't seem to last forever, if I increased the value of the duration tag, would it last longer? According to this the INT tag can go up to 2,147,483,647. Would that work in my case?
Is there a way I can also add permanent potion effects to players?
In regards to your response to my previous question about adding custom mobs to spawners, I have documented my commands, and my server.log here I hope you can find my issue.
Have you considered keeping a wiki, or database of directions for doing certain actions?
Once again, I truly appreciate all your help. If there is some place you would rather I contact you for questions please let me know.
@My_Name_Was_Stolen
-Make skeleton spawners that are in the nether spawn ONLY skeletons (As opposed to wither skeletons)
Disable spawner:
block RequiredPlayerRange = 0
Create skeleton:
block SpawnPotentials[0].Type = "Skeleton"
block SpawnPotentials[0].Weight = 10
block SpawnPotentials[0].Properties.SkeletonType = false
false = white skeleton;
true = black skeleton;
Update the spawner:
block EntityId = this SpawnPotentials[0].Type
block SpawnData = this SpawnPotentials[0].Properties
Set enabled:
block RequiredPlayerRange = 16
Now you can edit SpawnPotentials[0].Properties.SkeletonType directry
-Give an item the enchanted "Glow" without actually enchanting the item
item ench[0].id = 10 short
-Edit the names of enchantments
can not
But you can set custom Name and Lore (see Item structure)
-Edit durability/max durability of items
set 100 damage to item in your first slot
inv [0].Damage = 100
Where 0 - index of item in your inventory (skipping empty slots)
1000 - damage of item (0 by default)
You can not set max durability.
Some way to change item:data in your inventory
-Make books that have been signed editable again
get signed book to first slot and
inv [0].id = 386
-Set permanent potion effects on mobs. (Specifically resistance)
compound copy
buffer Id = 11 byte
see thisbuffer Duration = 999 int
buffer Amplifier = 4 byte
The potion effect level. 0 is level 1.* ActiveEffects[] paste
now, select the mob
@My_Name_Was_Stolen
Please attach your log file or order of commands.
Do you have tried to remove a UUID tag from a living mob?
anyway, try to renew the spawner by following the instructions in the same section.
Whenever I follow the instructions here to add a custom mob to a spawner, I get a crash. I have tried removing the UUID tags. Any help?
Hey, this plugin is wonderful, but I'm having a difficult time doing some of the things I want to do. I'm not sure if it's even possible to do some of them, so I decided to ask. Is it possible to...
-Make skeleton spawners that are in the nether spawn ONLY skeletons (As opposed to wither skeletons)
-Give an item the enchanted "Glow" without actually enchanting the item
-Edit the names of enchantments
-Edit durability/max durability of items
-Make books that have been signed editable again
-Set permanent potion effects on mobs. (Specifically resistance)
Thanks!
-
Hi DPOHVAR,
Could you please make a tutorial on how to make mob spawners shoot out entities such as snowballs and witherskulls? I'm not very good with nbt and for example I can't find the SpawnPotentials tag.
@funAlways
UUIDLeast, UUIDMost.
You can set a flag in the config file to hide this tags. (see config.yml in jar package)
What is the tags that shouldn't be in a mob spawner (must be deleted in spawnpotentials)? What i know is only i must remove UUID tags, don't know anything else
@gameacid13
OK. it's my version: rubukkit.org
How to edit MaxHealth with PowerNBT:
%zombie "Bukkit.MaxHealth" = 100
(tag name in quotes)%zombie Health = 100
The author of this plugin: http://dev.bukkit.org/server-mods/health-bar/
says that powernbt doesn't change the health correctly. Apparently, it supposed to change mob.setMaxHealth(...)
Is this even a NBT option or is the other plugin's dev dumb?
More info here: http://dev.bukkit.org/server-mods/health-bar/#c303 (and the replys)
Why isn't this plugin more popular, oh my this is amazing.
how to do the command block color change?
EDIT: /nbt block Command = "/say &4&ljeremyzh is awesome"
@DPOHVAR
yay! on to working on my mini game!
@JeremyZh
yes
does this still work if i make a command block text red, save the world, and play it on single player/on another server without this plugin?