ItemComponent - Enchantable (Expression) — SkBee
Addon: SkBee · Category: Expression · Since: 3.8.0
Syntax
[the] enchantable component of %itemstacks/itemtypes/slots%Description
If present, and applicable enchantments are available, items with the component can be enchanted in an enchanting table. Positive integer representing the item's enchantability. A higher value allows enchantments with a higher cost to be picked. See [**Enchantable Component**](https://minecraft.wiki/w/Data_component_format#enchantable) on McWiki for more details.
**Changers**: - `set` = Allows you to set the enchantability. - `reset` = Reset back to default state. - `delete` = Will delete any value (vanilla or not).
Examples
set enchantable component of player's tool to 10
delete enchantable component of player's tool
reset enchantable component of {_item}