{
  "format_version": "1.8.0",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:wither",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false
    },

    "components": {
      "minecraft:breathable": {
        "totalSupply": 15,
        "suffocateTime": 0
      },
      "minecraft:damage_sensor": [
        {
          "on_damage": {
            "filters": {
              "test": "is_family",
              "subject": "other",
              "value": "undead"
            }
          },
          "deals_damage": false
        }
      ],
      "minecraft:health": {
        "value": 600,
        "max": 600
      },
      "minecraft:collision_box": {
        "width": 1,
        "height": 3
      },
      "minecraft:fire_immune": true,
      "minecraft:loot": {
        "table": "loot_tables/entities/wither_boss.json"
      },
      "minecraft:nameable": {
      },
      "minecraft:movement": {
        "value": 0.25
      },
      "minecraft:navigation.walk": {
        "can_path_over_water": true,
        "avoid_water": true
      },
      "minecraft:movement.basic": {
        "max_turn":  180.0
      },
      "minecraft:jump.static": {
      },
      "minecraft:can_climb": {
      },
      "minecraft:can_fly": {
      },
      "minecraft:behavior.float": {
        "priority": 1
      },
      "minecraft:behavior.wither_random_attack_pos_goal": {
        "priority": 3
      },
      "minecraft:behavior.wither_target_highest_damage": {
        "priority": 1
      },
      "minecraft:behavior.hurt_by_target": {
        "priority": 2
      },
      "minecraft:behavior.nearest_attackable_target": {
        "priority": 3,
        "entity_types": [
          {
            "filters": { "test" :  "is_family", "subject" : "other", "value" :  "player"},
            "max_dist": 70
          },
          {
            "filters": {
               "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "operator": "!=",
                  "value": "undead"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "operator": "!=",
                  "value": "inanimate"
                }
              ]
            },
            "max_dist": 70
          }
        ],
        "must_see": true
      },
      "minecraft:behavior.random_stroll": {
        "priority": 5,
        "speed_multiplier": 1
      },
      "minecraft:behavior.look_at_target": {
        "priority": 5
      },
      "minecraft:behavior.look_at_player": {
        "priority": 6,
        "look_distance": 8
      },
      "minecraft:behavior.random_look_around": {
        "priority": 7
      },

      "minecraft:type_family": {
        "family": [ "wither", "skeleton", "monster", "undead" ]
      },
	    "minecraft:physics": {
      }
    },

    "events": {
      "minecraft:entity_spawned": {

      }
    }
  }
}