{
  "format_version": "1.26.0",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:ghast",
      "is_experimental": false,
      "is_summonable": true,
      "is_spawnable": true,
      "spawn_category": "monster"
    },
    "components": {
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:behavior.float_wander": {
        "float_wander_has_move_control": false,
        "must_reach": true,
        "priority": 2,
        "use_home_position_restriction": false
      },
      "minecraft:behavior.hurt_by_target": {
        "priority": 1
      },
      "minecraft:behavior.nearest_attackable_target": {
        "set_persistent": true,
        "must_see": true,
        "entity_types": [
          {
            "filters": {
              "AND": [
                {
                  "test": "is_family",
                  "subject": 1,
                  "operator": 0,
                  "value": "player"
                }
              ]
            },
            "max_dist": 28
          }
        ],
        "priority": 2
      },
      "minecraft:behavior.ranged_attack": {
        "attack_radius": 64,
        "charge_charged_trigger": 1,
        "priority": 1,
        "set_persistent": true,
        "charge_shoot_trigger": 2
      },
      "minecraft:breathable": {
        "breathes_lava": false,
        "suffocate_time": 0,
        "total_supply": 15
      },
      "minecraft:can_fly": {},
      "minecraft:collision_box": {
        "height": 4,
        "width": 4
      },
      "minecraft:damage_sensor": {
        "triggers": {
          "cause": "fall",
          "deals_damage": "no"
        }
      },
      "minecraft:despawn": {
        "filters": [
          {
            "all_of": [
              {
                "test": "is_persistent",
                "value": false
              },
              {
                "operator": ">=",
                "test": "light_level",
                "value": 8
              },
              {
                "test": "is_daytime",
                "value": true
              },
              {
                "subject": "self",
                "test": "inactivity_timer",
                "value": 600
              },
              {
                "test": "random_chance",
                "value": 50
              },
              {
                "operator": ">",
                "test": "distance_to_nearest_player",
                "value": 54
              },
              {
                "test": "surface_mob",
                "value": true
              }
            ]
          }
        ]
      },
      "minecraft:experience_reward": {
        "on_death": {
          "expression": "query.last_hit_by_player ? 5 + (query.equipment_count * Math.Random(1,3)) : 0",
          "version": 0
        }
      },
      "minecraft:fire_immune": {},
      "minecraft:follow_range": {
        "max": 64,
        "value": 64
      },
      "minecraft:health": {
        "max": 10,
        "value": 10
      },
      "minecraft:jump.static": {},
      "minecraft:loot": {
        "table": "loot_tables/entities/ghast.json"
      },
      "minecraft:movement": {
        "value": 0.03
      },
      "minecraft:nameable": {},
      "minecraft:navigation.float": {
        "can_path_over_water": true,
        "using_door_annotation": true
      },
      "minecraft:physics": {},
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:shooter": {
        "def": "minecraft:fireball"
      },
      "minecraft:type_family": {
        "family": [
          "ghast",
          "monster",
          "mob"
        ]
      }
    },
    "events": null
  }
}
