Edit

Items Documentation - minecraft:enchantable

Determines what enchantments can be applied to the item. Not all enchantments will have an effect on all item components.

Note

The following enchantment slot types that can be set for the value of slot: sword, bow, pickaxe, armor_head, armor_torso, armor_legs, armor_feet.

Note

This item requires a format version of at least 1.20.30.

Item Enchantable Properties

Name Default Value Type Description
slot not set String Specifies which types of enchantments can be applied.
value not set Integer number Specifies the value of the enchantment (minimum of 0).

slot

Specifies which types of enchantments can be applied. For example, bow would allow this item to be enchanted as if it were a bow. Value must match a regular expression pattern of "none|all|g_armor|armor_head|armor_torso|armor_feet|armor_legs|sword|bow|spear|crossbow|melee_spear|g_tool|hoe|shears|flintsteel|shield|g_digging|axe|pickaxe|shovel|fishing_rod|carrot_stick|elytra|cosmetic_head".

Samples