minecraft:repairable

The repairable item component specifies which items can be used to repair this item, along with how much durability is gained.

Properties

PropertyTypeDefaultWhat it does
repair_itemsList of list of text or object or object[]List of repair item entries. Each entry needs to define a list of strings for `items` that can be used for the repair and an optional `repair_amount` for how much durability is gained.

Example from the game files

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

{
  "minecraft:repairable": {
    "repair_items": [
      {
        "items": [
          "minecraft:stone_spear"
        ],
        "repair_amount": "context.other->query.remaining_durability"
      },
      {
        "items": [
          {
            "tags": "q.all_tags('minecraft:stone_tool_materials')"
          }
        ],
        "repair_amount": "query.max_durability * 0.25"
      }
    ]
  }
}

Used by 7

Vanilla items with minecraft:repairable 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