{
  "minecraft:entity": {
    "format_version": "1.2.0",

    "component_groups": {
      "minecraft:lightning_immune": {
        "minecraft:damage_sensor": [
          {
            "on_damage": { "filters": { "other_with_families": "lightning" } },
            "deals_damage": false
          }
        ]
      }
    },

    "components": {
      "minecraft:identifier": {
        "id": "minecraft:skeleton"
      },
      "minecraft:collision_box": {
        "width": 0.6,
        "height": 1.95
      },
      "minecraft:type_family": {
        "family": [ "skeleton", "undead", "monster" ]
      },
      "minecraft:breathable": {
        "totalSupply": 15,
        "suffocateTime": 0
      },

      "minecraft:burns_in_daylight": {
      },

      "minecraft:health": {
        "value": 20,
        "max": 20
      },
      "minecraft:loot": {
        "table": "loot_tables/entities/skeleton.json"
      },
      "minecraft:movement": {
        "value": 0.25
      },
      "minecraft:navigation.walk": {
        "can_float": true
      },
      "minecraft:movement.basic": {        
      },
      "minecraft:jump.static": {
      },
      "minecraft:can_climb": {
      },
      "minecraft:shooter": {
        "type": "Arrow",
        "def": "minecraft:arrow"
      },
      "minecraft:nameable": {
      },
      "minecraft:equipment": {
        "table": "loot_tables/entities/skeleton_gear.json"
      },
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:behavior.restrict_sun": {
        "priority": 1
      },
      "minecraft:behavior.hurt_by_target": {
        "priority": 1
      },
      "minecraft:behavior.nearest_attackable_target": {
        "priority": 2,
		"entity_types": [
          {
            "filters": { "test" :  "is_family", "subject" : "other", "value" :  "pig"},
            "max_dist": 25
          }
        ],
        "must_see": false
      },
      "minecraft:behavior.flee_sun": {
        "priority": 2,
        "speed_multiplier": 1
      },
      "minecraft:behavior.avoid_mob_type": {
        "priority": 4,
        "entity_types":[
          {
            "filters": { "test" :  "is_family", "subject" : "other", "value" :  "wolf"},
            "max_dist": 6,
            "walk_speed_multiplier": 1.2,
            "sprint_speed_multiplier": 1.2
          }
        ]
      },
      "minecraft:behavior.ranged_attack": {
        "attack_interval_min": 1,
        "attack_interval_max": 3,
        "attack_radius": 50
      },

      "minecraft:behavior.random_stroll": {
        "priority": 5,
        "speed_multiplier": 1
      },
      "minecraft:behavior.look_at_player": {
        "priority": 6,
        "look_distance": 8
      },
      "minecraft:behavior.random_look_around": {
        "priority": 6
      },
	    "minecraft:physics": {
      }
    },

    "events": {
      "minecraft:entity_spawned": {

      },

      "minecraft:spring_trap": {
        "add": { "component_groups": [ "minecraft:lightning_immune" ] }
      }
    }
  }
}