{
  "criteria": {
    "requirement": {
      "trigger": "minecraft:entity_hurt_player",
      "conditions": {
        "player": [
          {
            "condition": "minecraft:any_of",
            "terms": [
              {
                "condition": "minecraft:entity_properties",
                "entity": "this",
                "predicate": {
                  "equipment": {
                    "mainhand": {
                      "components": {
                        "minecraft:custom_data": {
                          "meteorshield": "tag"
                        }
                      }
                    }
                  }
                }
              },
              {
                "condition": "minecraft:all_of",
                "terms": [
                  {
                    "condition": "minecraft:entity_properties",
                    "entity": "this",
                    "predicate": {
                      "equipment": {
                        "offhand": {
                          "components": {
                            "minecraft:custom_data": {
                              "meteorshield": "tag"
                            }
                          }
                        }
                      }
                    }
                  },
                  {
                    "condition": "minecraft:inverted",
                    "term": {
                      "condition": "minecraft:entity_properties",
                      "entity": "this",
                      "predicate": {
                        "equipment": {
                          "mainhand": {
                            "components": {
                              "minecraft:custom_data": {
                                "meteorshield": "tag"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                ]
              }
            ]
          }
        ],
        "damage": {
          "blocked": true
        }
      }
    }
  },
  "rewards": {
    "function": "survivalplus:tools/gethit/meteorshield"
  }
}