minecraft:enchantable

The enchantable component specifies what enchantments can be applied to the item. Not all enchantments will have an effect on all item components.

Properties

PropertyTypeDefaultWhat it does
value requiredIntegermin 0—Specifies the value of the enchantment (minimum of 0).
slot requiredText—Specifies which types of enchantments can be applied. For example, `bow` would allow this item to be enchanted as if it were a bow.

Example from the game files

This is how vanilla copper_spear uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:enchantable": {
    "slot": "melee_spear",
    "value": 13
  }
}

Used by 7

Vanilla items with minecraft:enchantable in their definition:

copper_speardiamond_speargolden_speariron_spearnetherite_spearstone_spearwooden_spear

Set it without writing JSON

The item maker writes this component for you from a form and puts it in a ready-to-import .mcaddon.

Open the maker

Related components