{
  "format_version": "1.8.0",
  "minecraft:entity": {
    "description": {
      "identifier": "legacy:blindness",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false,
      "scripts": {
        "animate": [
          {
            "fang": "query.is_sheared"
          }
        ]
      },
      "animations": {
        "fang": "controller.animation.summon_fang"
      }
    },
    "component_groups": {
      "blindness": {
        "minecraft:mob_effect": {
          "effect_range": 20,
          "mob_effect": "blindness",
          "effect_time": 5,
          "entity_filter": {
            "any_of": [
              {
                "test": "is_family",
                "subject": "other",
                "value": "player"
              },
              {
                "test": "is_family",
                "subject": "other",
                "value": "villager"
              }
            ]
          }
        }
      },
      "blindness1": {
        "minecraft:mob_effect": {
          "effect_range": 20,
          "mob_effect": "blindness",
          "effect_time": 5,
          "entity_filter": {
            "any_of": [
              {
                "test": "is_family",
                "subject": "other",
                "value": "illager"
              },
              {
                "test": "is_family",
                "subject": "other",
                "value": "monster"
              },
              {
                "test": "is_family",
                "subject": "other",
                "value": "undead"
              }
            ]
          }
        }
      },
      "fang": {
        "minecraft:is_sheared": {}
      },
      "despawn": {
        "minecraft:despawn": {}
      }
    },
    "components": {
      "minecraft:type_family": {
        "family": [
          "inanimate"
        ]
      },
      "minecraft:timer": {
        "looping": false,
        "time": 2.1,
        "time_down_event": {
          "event": "minecraft:event_despawn"
        }
      },
      "minecraft:knockback_resistance": {
        "value": 100.0
      },
      "minecraft:collision_box": {
        "width": 0.2,
        "height": 0.2
      },
      "minecraft:physics": {},
      "minecraft:pushable": {
        "is_pushable": false,
        "is_pushable_by_piston": false
      },
      "minecraft:damage_sensor": [
        {
          "cause": "all",
          "deals_damage": false
        }
      ],
      "minecraft:conditional_bandwidth_optimization": {
        "default_values": {
          "max_optimized_distance": 80.0,
          "max_dropped_ticks": 10,
          "use_motion_prediction_hints": true
        }
      }
    },
    "events": {
      "minecraft:event_despawn": {
        "add": {
          "component_groups": [
            "despawn"
          ]
        }
      },
      "minecraft:entity_spawned": {
        "randomize": [
          {
            "weight": 100,
            "add": {
              "component_groups": [
                "blindness",
                "fang"
              ]
            }
          },
          {
            "weight": 50,
            "add": {
              "component_groups": [
                "blindness",
                "fang"
              ]
            }
          }
        ]
      },
      "minecraft:cast_villager": {
        "randomize": [
          {
            "weight": 100,
            "add": {
              "component_groups": [
                "blindness1",
                "fang"
              ]
            }
          },
          {
            "weight": 50,
            "add": {
              "component_groups": [
                "blindness1",
                "fang"
              ]
            }
          }
        ]
      }
    }
  }
}