Kits do not support item flags or attributes
Taybosquee opened this issue ยท 12 comments
It is currently not possible to add some data to kit items such as flags and attributes. If you add this data to an item and then use "/createkit", the items spawned when using the kit simply lack the data.
Unsupported flags:
HIDE_ENCHANTS
HIDE_ATTRIBUTES
HIDE_UNBREAKABLE
HIDE_DESTROYS
HIDE_PLACED_ON
HIDE_POTION_EFFECTS
Unsupported attributes:
DAMAGE
MOVEMENT_SPEED
ATTACK_SPEED
KNOCKBACK_RESISTANCE
MAX_HEALTH
ARMOR
LUCK
Unsupported misc:
UNBREAKABLE
The only reason I opened this as a separate issue was because of the additional flags and unbreakable bit.
I believe itemflags are supported as of the latest builds.
I just tested createkits with unbreakable tags, and it doesn't works. Test your things before closing threads.
@Guarmanda This issue is still open. If you would like to contribute with a PR or any constructive feedback, let us know.
Issue still open, wanted to do a kit to give some Protection Stones (from the protection stones plugin) but the blocks that i get from the kit are not working because they lose a NBT tag
@Leonardo-Fiori EssentialsX doesn't support custom NBT data from plugins. If you need custom NBT in a kit, add a /give
command to the kit:
- /give {player} minecraft:dirt{<NBT>}
This is still an issue for me as an item I would like to give as a kit from my plugin has additional data in the form of a PersistentData tag and this data is not carried over. Would be nice to be able to have this as a feature of the kits.
@DanielRoberts21 There are a few options:
- Users can manually add an entry with NBT to their kits, for example
- stonesword 1 {<NBT>}
- Users can manually add
/minecraft:give
commands to kits following the vanilla NBT syntax - You can implement and register a custom
ItemResolver
in your plugin, which allows your plugin to add custom items to the EssentialsX item database (though this doesn't work with/createkit
yet - see #3216) - You can add a command to your plugin that gives the item to the player, which users can add to their kits to give specific items to specific players