{
  "format_version": "1.13.0",
  "minecraft:entity": {
    "description": {
      "identifier": "dungeon:boss_blaze",
      "runtime_identifier": "minecraft:blaze",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false,
      "animations": {
        "action_common": "controller.animation.boss_common_actions",
        "action_specific": "controller.animation.boss_blaze_actions",
        "burn_attack": "animation.fire_particles",
        "explode_attack": "animation.explode_sound"
      },
      "scripts": {
        "animate": [
          "action_common",
          "action_specific"
        ]
      }
    },
    "component_groups": {
      "dungeon:normal": {
        "minecraft:variant": {
          "value": 0
        },
        "minecraft:timer": {
          "looping": false,
          "time": [
            2,
            4
          ],
          "randomInterval": true,
          "time_down_event": {
            "event": "dungeon:special_action",
            "target": "self"
          }
        }
      },
      "dungeon:special_attack1": {
        "minecraft:variant": {
          "value": 1
        },
        "minecraft:area_attack": {
          "damage_range": 5,
          "damage_per_tick": 2,
          "cause": "contact",
          "entity_filter": {
            "any_of": [
              {
                "test": "is_family",
                "subject": "other",
                "value": "player"
              }
            ]
          }
        }
      },
      "dungeon:special_attack2": {
        "minecraft:variant": {
          "value": 2
        },
        "minecraft:behavior.ranged_attack": {
          "priority": 3,
          "attack_interval_min": 1,
          "attack_interval_max": 5,
          "charge_charged_trigger": 0.0,
          "charge_shoot_trigger": 1.0,
          "attack_radius": 64,
          "burst_shots": 8,
          "burst_interval": 0.2
        }
      },
      "dungeon:special_attack3": {
        "minecraft:variant": {
          "value": 3
        },
        "minecraft:behavior.knockback_roar": {
          "priority": 3,
          "attack_time": 2.0,
          "cooldown_time": 2.0,
          "duration": 3,
          "knockback_damage": 1,
          "knockback_range": 10,
          "knockback_strength": 10
        }
      },
      "dungeon:ability_timer": {
        "minecraft:timer": {
          "looping": false,
          "time": [
            4,
            4
          ],
          "randomInterval": false,
          "time_down_event": {
            "event": "dungeon:reset",
            "target": "self"
          }
        }
      }
    },
    "components": {
      "minecraft:timer": {
        "looping": false,
        "time": [
          4,
          8
        ],
        "randomInterval": true,
        "time_down_event": {
          "event": "dungeon:special_action",
          "target": "self"
        }
      },
      "minecraft:loot": {
        "table": "loot_tables/entities/epic.json"
      },
      "minecraft:collision_box": {
        "width": 0.5,
        "height": 1.8
      },
      "minecraft:attack": {
        "damage": 8
      },
      "minecraft:damage_sensor": {
        "triggers": [
          {
            "on_damage": {
              "filters": {
                "test": "has_damage",
                "subject": "self",
                "operator": "!=",
                "value": "attack"
              }
            },
            "deals_damage": false
          }
        ]
      },
      "minecraft:movement": {
        "value": 0.25
      },
      "minecraft:navigation.walk": {
        "can_path_over_water": true
      },
      "minecraft:can_fly": {
        "value": false
      },
      "minecraft:health": {
        "value": 500,
        "max": 500
      },
      "minecraft:follow_range": {
        "value": 48,
        "max": 48
      },
      "minecraft:movement.basic": {},
      "minecraft:fire_immune": true,
      "minecraft:knockback_resistance": {
        "value": 1.0
      },
      "minecraft:behavior.hurt_by_target": {
        "priority": 1
      },
      "minecraft:behavior.nearest_attackable_target": {
        "priority": 2,
        "must_see_forget_duration": 100.0,
        "entity_types": [
          {
            "filters": {
              "test": "is_family",
              "subject": "other",
              "value": "player"
            },
            "max_dist": 48
          }
        ],
        "must_see": false
      },
      "minecraft:behavior.melee_attack": {
        "priority": 4,
        "max_dist": 3,
        "speed_multiplier": 1,
        "track_target": true
      },
      "minecraft:shooter": {
        "type": "fireball",
        "def": "minecraft:fireball"
      },
      "minecraft:behavior.look_at_player": {
        "priority": 5,
        "look_distance": 30.0,
        "probability": 1
      },
      "minecraft:behavior.random_stroll": {
        "priority": 6,
        "speed_multiplier": 1.2
      },
      "minecraft:type_family": {
        "family": [
          "blaze",
          "monster",
          "mob"
        ]
      },
      "minecraft:physics": {},
      "minecraft:scale": {
        "value": 3
      },
      "minecraft:boss": {
        "name": "The Fiery Death",
        "hud_range": 30
      }
    },
    "events": {
      "dungeon:special_action": {
        "remove": {
          "component_groups": [
            "dungeon:normal"
          ]
        },
        "randomize": [
          {
            "add": {
              "component_groups": [
                "dungeon:special_attack1"
              ]
            }
          },
          {
            "add": {
              "component_groups": [
                "dungeon:special_attack2"
              ]
            }
          },
          {
            "add": {
              "component_groups": [
                "dungeon:special_attack3"
              ]
            }
          }
        ]
      },
      "dungeon:reset": {
        "remove": {
          "component_groups": [
            "dungeon:ability_timer",
            "dungeon:special_attack1",
            "dungeon:special_attack2",
            "dungeon:special_attack3"
          ]
        },
        "add": {
          "component_groups": [
            "dungeon:normal"
          ]
        }
      },
      "dungeon:start_timer": {
        "add": {
          "component_groups": [
            "dungeon:ability_timer"
          ]
        }
      }
    }
  }
}