{
  "condition": "minecraft:entity_properties",
  "entity": "this",
  "predicate": {
    "slots": {
      "weapon.mainhand": {
        "predicates": {
          "minecraft:enchantments": [
            {
              "enchantments": "minecraft:unbreaking",
              "levels": 2
            }
          ]
        }
      }
    }
  }
}
