{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:ghast",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false
    },

    "component_groups": {
      "spawned_by_totem": {
        "minecraft:scale": {
          "value": 1.3
        },
        "minecraft:health": {
          "value": 30,
          "max": 30
        },
        "minecraft:fire_immune": {}
      }
    },

    "events": {
      "minecraft:entity_born": {
        "add": {
          "component_groups": [
            "spawned_by_totem"
          ]
        }
      }
    },

    "components": {
      "minecraft:experience_reward": {
        "on_death": "query.last_hit_by_player ? 5 + (query.equipment_count * Math.Random(1,3)) : 0"
      },
      "minecraft:breathable": {
        "total_supply": 15,
        "suffocate_time": 0
      },
      "minecraft:fire_immune": {
      },
      "minecraft:nameable": {
      },
      "minecraft:health": {
        "value": 10,
        "max": 10
      },
      "minecraft:collision_box": {
        "width": 4,
        "height": 4
      },
      "minecraft:movement": {
        "value": 0.03
      },
      "minecraft:navigation.float": {
        "can_path_over_water": true
      },
      "minecraft:behavior.float_wander": {
        "priority": 2,
        "must_reach": true
      },
      "minecraft:can_fly": {
      },
      "minecraft:loot": {
        "table": "loot_tables/entities/ghast.json"
      },
      "minecraft:shooter": {
        "def": "minecraft:fireball"
      },
      "minecraft:type_family": {
        "family": [ "ghast", "monster", "mob" ]
      },
      "minecraft:damage_sensor": {
        "triggers": {
          "cause": "fall",
          "deals_damage": false
        }
      },
      "minecraft:jump.static": {
      },
      "minecraft:despawn": {
        "despawn_from_distance": {}
      },
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:behavior.ranged_attack": {
        "priority": 1,
        "attack_radius": 64,
        "charge_shoot_trigger": 2,
        "charge_charged_trigger": 1
      },
      "minecraft:follow_range": {
        "value": 64,
        "max": 64
      },
      "minecraft:behavior.hurt_by_target": {
        "priority": 1,
        "entity_types": [
          {
            "filters": {
              "none_of": [
                { "test": "is_family", "subject": "other", "value": "totem" }
              ]
            }
          }
        ]
      },
      "minecraft:behavior.nearest_attackable_target": {
        "priority": 2,
        "entity_types": [
          {
            "filters": {
              "test": "is_family",
              "subject": "other",
              "value": "player"
            },
            "max_dist": 28
          }
        ],
        "must_see": true
      },
      "minecraft:physics": {
      },
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:conditional_bandwidth_optimization": {
      }
    }
  }
}