Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item "AttributeModifiers" not save bug #18

Open
kgamecarter opened this issue Aug 27, 2013 · 4 comments
Open

Item "AttributeModifiers" not save bug #18

kgamecarter opened this issue Aug 27, 2013 · 4 comments

Comments

@kgamecarter
Copy link

MultiInv can't record special data like below picture.

http://i.imgur.com/fqHOKQ3.png

http://i.imgur.com/fUpVg1W.png

like -200 Attack Damage.

When MultiInv load this item to inventory.

The special data will disapear.

This is my player.dat you can look NBT node of this item.

http://www.mediafire.com/?dhevn6i2wmgiuvk

@kgamecarter
Copy link
Author

Some other reference data.

http://imgur.com/a/Mh3fa

@kgamecarter
Copy link
Author

I hope MultiInv can support ALL ITEMS include custom items which using NBTTag.

Like this plugin http://dev.bukkit.org/bukkit-plugins/toggleinventory/

@Tux2
Copy link
Collaborator

Tux2 commented Sep 9, 2013

I'll take a look at it and see if there is an API for it in bukkit. If not I'll be waiting on that.

@kgamecarter
Copy link
Author

But some other plugin use custom NBTTag for saving extra information in items. example:MobCatcher.

I think record NBTTag is the best solution.

It is simple to record NBTTag. Just serialize the root of item's NBTTag.

No more than 10 line code.

Serialize all of inventory Sample Code:
https://github.com/yukinoraru/ToggleInventory/blob/master/src/main/java/com/github/yukinoraru/ToggleInventory/ItemSerialization.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants