{
  "condition": "minecraft:entity_properties",
  "entity": "this",
  "predicate": {
    "type_specific": {
      "type": "player",
      "looking_at": {
        "type": "#mt:targets",
        "distance": {
          "absolute": {
            "min": 0,
            "max": 5
          }
        },
        "effects": {
          "minecraft:resistance": {}
        }
      }
    }
  }
}
