Name | enchantments |
Object | ItemTag |
Input | MapTag |
Related Tags | <ItemTag.enchantment_map> Returns a map of enchantments on the item. (...)
|
Description | Sets the item's enchantments as a map of EnchantmentTags or enchantment names to level.
For example: - inventory adjust slot:hand enchantments:sharpness=1 Does not remove existing enchantments, for that use ItemTag.remove_enchantments |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemEnchantments.java#L239 |