{
    "format_version": "1.20.70",
    "minecraft:item": {
        "description": {
            "identifier": "hb_we:gold_t2_sword"
        },
        "components": {
            "minecraft:icon": {
                "textures": {
                    "default": "hb_we_gold_t2_sword"
                }
            },
            "minecraft:damage": {
                "value": 6
            },
            "minecraft:max_stack_size": {
                "value": 1
            },
            "minecraft:durability": {
                "max_durability": 73,
                "damage_chance": {
                    "min": 10,
                    "max": 50
                }
            },
            "minecraft:repairable": {
                "repair_items": [
                    {
                        "items": [
                            "minecraft:gold_ingot"
                        ],
                        "repair_amount": "query.remaining_durability / 4"
                    },
                    {
                        "items": [
                            "hb_we:gold_t2_sword"
                        ],
                        "repair_amount": "c.other->query.remaining_durability + 0.2 * c.other->query.max_durability"
                    }
                ]
            },
            "minecraft:enchantable": {
                "slot": "sword",
                "value": 10
            }
        }
    }
}