The minecraft:enchantable
item component allows this item to be enchanted in an Enchanting Table.
This item component is usually combined with minecraft:forgeable and minecraft:repairable.
Note that the enchantments used for enchanting are defined differently than in vanilla.
In vanilla it uses item tags for enchantment targets (such as swords and helmets), whereas here they are enchantment tags for an item instead.
Name | Description | Type | Default Value |
---|---|---|---|
enchantability | Determines the amount and level of enchantments to apply to this item. | A positive integer | |
enchantments | The enchantments to allow. If not specified, it will allow every enchantment. Note that treasure enchantments are never allowed by an Enchanting Table, so adding them to the tag won't do anything. | An optional enchantment tag | |
transforms_into | The item to turn into once enchanted. | An optional item |
{ "enchantability": 14, "enchantments": "minecraft:pickaxe_enchanting" }