{
  "condition": "minecraft:any_of",
  "entity": "this",
  "predicate": {
    "equipment": {
      "head": {}
    }
  },
  "terms": [
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "equipment": {
          "mainhand": {
            "nbt": "{xpupgrade:tag}"
          }
        }
      }
    },
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "equipment": {
          "offhand": {
            "nbt": "{xpupgrade:tag}"
          }
        }
      }
    },
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "equipment": {
          "head": {
            "nbt": "{xpupgrade:tag}"
          }
        }
      }
    },
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "equipment": {
          "chest": {
            "nbt": "{xpupgrade:tag}"
          }
        }
      }
    },
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "equipment": {
          "legs": {
            "nbt": "{xpupgrade:tag}"
          }
        }
      }
    },
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "equipment": {
          "feet": {
            "nbt": "{xpupgrade:tag}"
          }
        }
      }
    }
  ]
}