punched_with_full_set.json
{
  "criteria": {
    "damage": {
      "trigger": "minecraft:player_hurt_entity",
      "conditions": {
        "player": [
          {
            "condition": "all_of",
            "terms": [
              {
                "condition": "inverted",
                "term": {
                  "condition": "entity_properties",
                  "entity": "this",
                  "predicate": {
                    "slots": {
                      "armor.*": {
                        "items": [
                          "minecraft:netherite_helmet",
                          "minecraft:netherite_chestplate",
                          "minecraft:netherite_leggings",
                          "minecraft:netherite_boots"
                        ]
                      }
                    }
                  }
                }
              },
              {
                "condition": "entity_properties",
                "entity": "this",
                "predicate": {
                  "equipment": {
                    "mainhand": {
                      "count": 0
                    },
                    "head": {
                      "predicates": {
                        "enchantments": [
                          {
                            "enchantments": [
                              "thorns"
                            ],
                            "levels": {
                              "min": 3
                            }
                          }
                        ]
                      }
                    },
                    "chest": {
                      "predicates": {
                        "enchantments": [
                          {
                            "enchantments": [
                              "thorns"
                            ],
                            "levels": {
                              "min": 3
                            }
                          }
                        ]
                      }
                    },
                    "legs": {
                      "predicates": {
                        "enchantments": [
                          {
                            "enchantments": [
                              "thorns"
                            ],
                            "levels": {
                              "min": 3
                            }
                          }
                        ]
                      }
                    },
                    "feet": {
                      "predicates": {
                        "enchantments": [
                          {
                            "enchantments": [
                              "thorns"
                            ],
                            "levels": {
                              "min": 3
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            ]
          }
        ],
        "damage": {
          "blocked": false,
          "type": {
            "tags": [
              {
                "id": "minecraft:is_player_attack",
                "expected": true
              }
            ],
            "is_direct": true
          }
        }
      }
    }
  },
  "rewards": {
    "function": "armor_re:thorns/release"
  }
}