Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

Kits do not support item flags or attributes

Open Taybosquee opened this issue 8 years ago • 13 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

Taybosquee avatar Jan 31 '17 22:01 Taybosquee

#750

Kakifrucht avatar Feb 01 '17 02:02 Kakifrucht

The only reason I opened this as a separate issue was because of the additional flags and unbreakable bit.

Taybosquee avatar Feb 01 '17 19:02 Taybosquee

I believe itemflags are supported as of the latest builds.

mdcfe avatar Feb 04 '18 16:02 mdcfe

+1 (just wanna follow this ticket.)

MithrandirCraft avatar Jan 07 '19 13:01 MithrandirCraft

I just tested createkits with unbreakable tags, and it doesn't works. Test your things before closing threads.

Guarmanda avatar May 01 '19 09:05 Guarmanda

@Guarmanda This issue is still open. If you would like to contribute with a PR or any constructive feedback, let us know.

mdcfe avatar May 01 '19 20:05 mdcfe

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

iperrealistico avatar Jun 10 '19 13:06 iperrealistico

@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>}

mdcfe avatar Jun 11 '19 06:06 mdcfe

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 avatar May 17 '20 17:05 DanielRoberts21

@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

mdcfe avatar May 19 '20 09:05 mdcfe

Still not fixed after 3 years. Very nice

MateoNikolic avatar May 23 '20 20:05 MateoNikolic

Still not fixed after 3 years. Very nice

PR or shut up.

darbyjack avatar May 23 '20 20:05 darbyjack

@mdcfe r.e. this -

Users can manually add an entry with NBT to their kits, for example - stonesword 1 {<NBT>}

Is this still the case after the introduction of NBT 'components'? or has the syntax changed to more closely match vanilla?

Lordfirespeed avatar Aug 01 '25 14:08 Lordfirespeed