{
  "fields": [
    {
      "id": "repair_items",
      "title": "repair_items",
      "description": "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.",
      "dataType": 2,
      "alternates": [
        {
          "id": "repair_items",
          "dataType": 16,
          "readOnly": true,
          "subForm": {
            "title": "Repair Items",
            "description": "Repair Items",
            "fields": [
              {
                "id": "items",
                "title": "items",
                "description": "Items that may be used to repair an item.",
                "dataType": 2,
                "alternates": [
                  {
                    "id": "items",
                    "dataType": 24
                  }
                ]
              },
              {
                "id": "repair_amount",
                "title": "repair_amount",
                "description": "How much the item is repaired.",
                "dataType": 24,
                "alternates": [
                  {
                    "id": "repair_amount",
                    "dataType": 14,
                    "readOnly": true,
                    "subForm": {
                      "title": "Repair Amount",
                      "description": "Repair Amount",
                      "fields": [
                        {
                          "id": "expression",
                          "title": "expression",
                          "description": "expression",
                          "dataType": 2
                        },
                        {
                          "id": "version",
                          "title": "version",
                          "description": "version",
                          "dataType": 0
                        }
                      ]
                    }
                  },
                  {
                    "id": "repair_amount",
                    "dataType": 3
                  }
                ]
              }
            ]
          }
        }
      ],
      "samples": {
        "/samples/custom_items/behavior_packs/custom_item/items/chestplate.json": [
          {
            "path": "/minecraft:item/components/minecraft:repairable/",
            "content": [
              {
                "items": [
                  "minecraft:stick"
                ],
                "repair_amount": "context.other->query.remaining_durability + 0.05 * context.other->query.max_durability"
              }
            ]
          }
        ],
        "/samples/custom_items/behavior_packs/custom_item/items/my_boots.json": [
          {
            "path": "/minecraft:item/components/minecraft:repairable/",
            "content": [
              {
                "items": [
                  "minecraft:stick"
                ],
                "repair_amount": "context.other->query.remaining_durability + 0.05 * context.other->query.max_durability"
              }
            ]
          }
        ],
        "/samples/custom_items/behavior_packs/custom_item/items/my_sword_chuck.json": [
          {
            "path": "/minecraft:item/components/minecraft:repairable/",
            "content": [
              {
                "items": [
                  "minecraft:diamond"
                ],
                "repair_amount": "query.max_durability * 0.25"
              }
            ]
          }
        ],
        "/samples/custom_items/behavior_packs/custom_item/items/my_sword_shoot.json": [
          {
            "path": "/minecraft:item/components/minecraft:repairable/",
            "content": [
              {
                "items": [
                  "minecraft:diamond"
                ],
                "repair_amount": "query.max_durability * 0.25"
              }
            ]
          }
        ]
      }
    }
  ],
  "description": "Defines the items that can be used to repair a defined item, and the amount of durability each item restores upon repair. 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 repaired.",
  "samples": {
    "sample": [
      {
        "path": "sample",
        "content": {
          "on_repaired": "minecraft:celebrate",
          "repair_items": [
            "anvil"
          ]
        }
      }
    ],
    "/samples/casual_creator/gray_wave/behavior_packs/mikeamm_gwve/items/axe_turret_kit.item.json": [
      {
        "path": "/minecraft:item/components/minecraft:repairable/",
        "content": {
          "repair_items": [
            {
              "items": [
                "iron_ingot"
              ],
              "repair_amount": 62
            }
          ]
        }
      }
    ],
    "/samples/casual_creator/gray_wave/behavior_packs/mikeamm_gwve/items/bow_turret_kit.item.json": [
      {
        "path": "/minecraft:item/components/minecraft:repairable/",
        "content": {
          "repair_items": [
            {
              "items": [
                "iron_ingot"
              ],
              "repair_amount": 62
            }
          ]
        }
      }
    ],
    "/samples/casual_creator/gray_wave/behavior_packs/mikeamm_gwve/items/crossbow_turret_kit.item.json": [
      {
        "path": "/minecraft:item/components/minecraft:repairable/",
        "content": {
          "repair_items": [
            {
              "items": [
                "iron_ingot"
              ],
              "repair_amount": 62
            }
          ]
        }
      }
    ],
    "/samples/casual_creator/gray_wave/behavior_packs/mikeamm_gwve/items/gray_wave_generator_kit.item.json": [
      {
        "path": "/minecraft:item/components/minecraft:repairable/",
        "content": {
          "repair_items": [
            {
              "items": [
                "iron_ingot"
              ],
              "repair_amount": 62
            }
          ]
        }
      }
    ],
    "/samples/casual_creator/gray_wave/behavior_packs/mikeamm_gwve/items/shbullet_turret_kit.item.json": [
      {
        "path": "/minecraft:item/components/minecraft:repairable/",
        "content": {
          "repair_items": [
            {
              "items": [
                "iron_ingot"
              ],
              "repair_amount": 62
            }
          ]
        }
      }
    ],
    "/samples/casual_creator/gray_wave/behavior_packs/mikeamm_gwve/items/smfireball_turret_kit.item.json": [
      {
        "path": "/minecraft:item/components/minecraft:repairable/",
        "content": {
          "repair_items": [
            {
              "items": [
                "iron_ingot"
              ],
              "repair_amount": 62
            }
          ]
        }
      }
    ],
    "/samples/custom_items/behavior_packs/custom_item/items/chestplate.json": [
      {
        "path": "/minecraft:item/components/minecraft:repairable/",
        "content": {
          "repair_items": [
            {
              "items": [
                "minecraft:stick"
              ],
              "repair_amount": "context.other->query.remaining_durability + 0.05 * context.other->query.max_durability"
            }
          ]
        }
      }
    ],
    "/samples/custom_items/behavior_packs/custom_item/items/my_boots.json": [
      {
        "path": "/minecraft:item/components/minecraft:repairable/",
        "content": {
          "repair_items": [
            {
              "items": [
                "minecraft:stick"
              ],
              "repair_amount": "context.other->query.remaining_durability + 0.05 * context.other->query.max_durability"
            }
          ]
        }
      }
    ],
    "/samples/custom_items/behavior_packs/custom_item/items/my_helm.json": [
      {
        "path": "/minecraft:item/components/minecraft:repairable/",
        "content": {
          "repair_items": [
            {
              "items": [
                "minecraft:stick"
              ],
              "repair_amount": "context.other->query.remaining_durability + 0.05 * context.other->query.max_durability"
            }
          ]
        }
      }
    ],
    "/samples/custom_items/behavior_packs/custom_item/items/my_leggings.json": [
      {
        "path": "/minecraft:item/components/minecraft:repairable/",
        "content": {
          "repair_items": [
            {
              "items": [
                "minecraft:stick"
              ],
              "repair_amount": "context.other->query.remaining_durability + 0.05 * context.other->query.max_durability"
            }
          ]
        }
      }
    ],
    "/samples/custom_items/behavior_packs/custom_item/items/my_sword_chuck.json": [
      {
        "path": "/minecraft:item/components/minecraft:repairable/",
        "content": {
          "repair_items": [
            {
              "items": [
                "minecraft:diamond"
              ],
              "repair_amount": "query.max_durability * 0.25"
            }
          ]
        }
      }
    ],
    "/samples/custom_items/behavior_packs/custom_item/items/my_sword_shoot.json": [
      {
        "path": "/minecraft:item/components/minecraft:repairable/",
        "content": {
          "repair_items": [
            {
              "items": [
                "minecraft:diamond"
              ],
              "repair_amount": "query.max_durability * 0.25"
            }
          ]
        }
      }
    ],
    "/samples/custom_items/behavior_packs/custom_item/items/my_sword_turtle.json": [
      {
        "path": "/minecraft:item/components/minecraft:repairable/",
        "content": {
          "repair_items": [
            {
              "items": [
                "minecraft:diamond"
              ],
              "repair_amount": "query.max_durability * 0.25"
            }
          ]
        }
      }
    ]
  },
  "title": "Repairable",
  "id": "minecraft:repairable"
}