[
  {
    "condition": "minecraft:entity_properties",
    "entity": "this",
    "predicate": {
      "equipment": {
        "chest": {
          "count": {
            "min": 1
          },
          "nbt": "{Enchantments:[{id:\"minecraft:mending\"}]}"
        }
      }
    }
  },
  {
    "condition": "minecraft:inverted",
    "term": {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "equipment": {
          "chest": {
            "nbt": "{Damage:0}"
          }
        }
      }
    }
  },
  {
    "condition": "minecraft:inverted",
    "term": {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "equipment": {
          "chest": {
            "nbt": "{nucleus:{}}"
          }
        }
      }
    }
  }
]