{
  "criteria": {
    "requirement": {
      "trigger": "minecraft:effects_changed",
      "conditions": {
        "player": [
          {
            "condition": "minecraft:entity_scores",
            "entity": "this",
            "scores": {
              "OverlyRealistic.Player.IsHealed": 1
            }
          },
          {
            "condition": "minecraft:inverted",
            "term": {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "effects": {
                  "minecraft:instant_health": {
                    "amplifier": 28
                  }
                }
              }
            }
          }
        ]
      }
    }
  },
  "rewards": {
    "function": "overly_realistic:general/healing/heal_reset"
  }
}
