CraftBook 3

CraftBook 3

139k Downloads

CB custom reciepes don`t want to save NBT stats

LadyCailinBot opened this issue · 11 comments

commented

CRAFTBOOK-2914 - Reported by Богдан.Шкляренко

http://i.imgur.com/c6zFR7d.jpg

Item Created using CommandBlock (or can be created by plugin or NTBEDIT)
http://minecraft.gamepedia.com/Tutorials/Command_NBT_Tags
Items can have health, knockback resistance, damage and movespeed attributes.

This attributes caanot be saved via CB custom crafting

commented

Comment by me4502

This is a bukkit limitation, there is nothing I can do about it yet.

commented

Comment by Богдан.Шкляренко

Hmmm :c Bukkit api can`t read this tags on items?

commented

Comment by me4502

Yeah, the bukkit API does not provide the ability to check or add attributes to items.

commented

Comment by Богдан.Шкляренко

wow :c Not good. Its a reason why anticheat blocking movespeed tag (because ac cant read it :C)

So i want some lore stats - i must use plugin like ItemLoreStats (because it`s not tag, just colored text in lore)?

commented

Comment by me4502

Currently, until bukkit supports attributes, yes.

commented

Comment by Богдан.Шкляренко

in 14w07a snapshot Minecraft can test item for NBT tags
/testfor @p {Inventory:[{Slot:6b,id:"minecraft:diamond_sword"}],SelectedItemSlot:6}
Hmmm.. good.

commented

Comment by Dark_Arc

Commands can already do things like that. The give command in Bukkit's new command system has the ability to add attributes to items. However, they haven't given plugin developers an API which would allow us to resolve this issue for you.

commented

Comment by Богдан.Шкляренко

http://dev.bukkit.org/bukkit-plugins/attributesapi/

commented

Comment by me4502

That doesn't support reading attributes, only setting.

And I don't really want to add extra dependencies to the plugin.

commented

Comment by Богдан.Шкляренко

NP, i found craft alternative - ShopKeepers :3
It`s magicly can saves items with NBT

commented

Comment by Kainzo

Guy, thats because it requires ProtocolLib - PLib has the ability to save that stuff :) Craftbook would need to depend on tis - Me4502 if Craftbook does, it can fallback on the libs to save NBT's - its been in for a long time now.