1. Wiki
  2. /Items
  3. /minecraft:repairable

minecraft:repairable

Don't want to write this by hand? GodCraft sets minecraft:repairable for you with a switch.Get GodCraft

Overview

minecraft:repairable is an item component: it goes in the components object of a custom item. Lists which items can fix this one in an anvil and how much durability each repair gives back. Needs minecraft:durability.

Fields

FieldTypeDefaultDescription
repair_itemsRepair[]noneEntries with the repair items and an optional repair_amount (a number or Molang) of durability restored.

Example

Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):

BP/items/<name>.json
{
  "minecraft:repairable": {
    "repair_items": []
  }
}

Items: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more