{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "hoh_bht:boss_ghast",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false,
      "animations": {
        "boss_shooting": "controller.animation.hoh_bht.boss.shooting",
        "start_shooting": "animation.hoh_bht.boss.shooting"
      },
      "scripts": {
        "animate": [
          "boss_shooting"
        ]
      }
    },
    "component_groups": {
      "hoh_bht_start_shooting": {
        "minecraft:variant": {
          "value": 1
        }
      },
      "hoh_bht_stop:shooting": {
        "minecraft:variant": {
          "value": 0
        }
      }
    },
    "components": {
      "minecraft:boss": {
        "hud_range": 64,
        "name": "entity.hoh_bht:boss_ghast.name",
        "should_darken_sky": false
      },
      "minecraft:is_hidden_when_invisible": {},
      "minecraft:experience_reward": {
        "on_death": "query.last_hit_by_player ? 5 + (query.equipment_count * Math.Random(1,3)) : 0"
      },
      "minecraft:persistent": {},
      "minecraft:breathable": {
        "total_supply": 15,
        "suffocate_time": 0
      },
      "minecraft:fire_immune": {},
      "minecraft:nameable": {},
      "minecraft:health": {
        "value": 50,
        "max": 50
      },
      "minecraft:collision_box": {
        "width": 4.02,
        "height": 4
      },
      "minecraft:movement": {
        "value": 0.035
      },
      "minecraft:navigation.float": {
        "can_path_over_water": true
      },
      "minecraft:behavior.float_wander": {
        "priority": 2,
        "must_reach": true
      },
      "minecraft:skin_id": {
        "value": 1
      },
      "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:behavior.float": {
        "priority": 0
      },
      "minecraft:behavior.ranged_attack": {
        "priority": 1,
        "attack_radius": 74,
        "charge_shoot_trigger": 2,
        "charge_charged_trigger": 0,
        "burst_shots": 3,
        "burst_interval": 0.3
      },
      "minecraft:follow_range": {
        "value": 64,
        "max": 64
      },
      "minecraft:behavior.hurt_by_target": {
        "priority": 1
      },
      "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": {}
    },
    "events": {
      "hoh_bht.stop.shooting": {
        "remove": {
          "component_groups": [
            "hoh_bht_start_shooting"
          ]
        },
        "add": {
          "component_groups": [
            "hoh_bht_stop:shooting"
          ]
        }
      },
      "hoh_bht.start.shooting": {
        "remove": {
          "component_groups": [
            "hoh_bht_stop:shooting"
          ]
        },
        "add": {
          "component_groups": [
            "hoh_bht_start_shooting"
          ]
        }
      }
    }
  }
}