{
  "criteria": {
    "attack_entity": {
      "trigger": "minecraft:player_hurt_entity",
      "conditions": {
        "entity": [
          {
            "condition": "minecraft:inverted",
            "term": {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "nbt": "{Tags:[\"OverlyRealistic.Block.IsCustomBlock\"]}"
              }
            }
          }
        ]
      }
    }
  },
  "requirements": [
    [
      "attack_entity"
    ]
  ],
  "rewards": {
    "function": "overly_realistic:players/operations/player_attack_entity"
  }
}