{
  "format_version": "1.13.0",
  "minecraft:entity": {
    "description": {
      "identifier": "dungeon:boss_zombie",
      "runtime_identifier": "minecraft:zombie",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false,
      "animations": {
        "action_common": "controller.animation.boss_common_actions",
        "action_specific": "controller.animation.boss_zombie_actions",
        "grow": "animation.grow",
        "grow2": "animation.grow2"
      },
      "scripts": {
        "pre_animation": [
          "variable.growth = 0;"
        ],
        "animate": [
          "action_common",
          "action_specific"
        ]
      }
    },
    "component_groups": {
      "dungeon:normal": {
        "minecraft:variant": {
          "value": 0
        },
        "minecraft:timer": {
          "looping": false,
          "time": [
            1,
            5
          ],
          "randomInterval": true,
          "time_down_event": {
            "event": "dungeon:special_action",
            "target": "self"
          }
        }
      },

      "dungeon:size15": {
        "minecraft:scale": {
          "value": 1.25
        },
        "minecraft:attack": {
          "damage": 5
        }
      },
      "dungeon:size2": {
        "minecraft:scale": {
          "value": 1.5
        },
        "minecraft:attack": {
          "damage": 6
        }
      },
      "dungeon:size25": {
        "minecraft:scale": {
          "value": 1.75
        },
        "minecraft:attack": {
          "damage": 7
        }
      },
      "dungeon:size3": {
        "minecraft:scale": {
          "value": 2
        },
        "minecraft:attack": {
          "damage": 8
        }
      },
      "dungeon:size35": {
        "minecraft:scale": {
          "value": 2.5
        },
        "minecraft:attack": {
          "damage": 9
        }
      },
      "dungeon:size4": {
        "minecraft:scale": {
          "value": 3
        },
        "minecraft:attack": {
          "damage": 10
        }
      },
      "dungeon:special_attack1": {
        "minecraft:variant": {
          "value": 1
        },
        "minecraft:spawn_entity": {
          "min_wait_time": 1,
          "max_wait_time": 3,
          "spawn_sound": "plop",
          "spawn_entity": "zombie",
          "spawn_event": "minecraft:as_baby"
        },
        "minecraft:damage_sensor": {
          "triggers": [
            {
              "on_damage": {
                "filters": {
                  "test": "has_damage",
                  "subject": "self",
                  "value": "attack"
                }
              },
              "deals_damage": false
            }
          ]
        }
      },
      "dungeon:special_attack2": {
        "minecraft:variant": {
          "value": 2
        },
        "minecraft:behavior.summon_entity": {
          "priority": 2,
  
          "summon_choices": [
            {
              "min_activation_range": 0.0,
              "max_activation_range": 32.0,
              "cooldown_time": 3.0,
              "weight": 3,
              "cast_duration": 2.0,
              "particle_color": "#62d64259",
              "start_sound_event": "cast.spell",
              "sequence": [
                {
                  "shape": "circle",
                  "target": "self",
                  "base_delay": 0.5,
                  "delay_per_summon": 0.25,
                  "num_entities_spawned": 8,
                  "entity_type": "minecraft:husk",
                  "size": 2,
                  "entity_lifespan": 4
                }
              ]
            }
          ]
        }
      },
      "dungeon:special_attack3": {
        "minecraft:variant": {
          "value": 3
        },
        "minecraft:mob_effect": {
          "effect_range": 10,
          "effect_time": 3,
          "mob_effect": "poison"
        }
      },
      "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": [
          2,
          4
        ],
        "randomInterval": true,
        "time_down_event": {
          "event": "dungeon:special_action",
          "target": "self"
        }
      },
      "minecraft:physics": {},
      "minecraft:type_family": {
        "family": [
          "zombie",
          "undead",
          "monster",
          "mob"
        ]
      },
      "minecraft:collision_box": {
        "width": 0.6,
        "height": 1.9
      },
      "minecraft:movement.basic": {},
      "minecraft:health": {
        "value": 500,
        "max": 500
      },
      "minecraft:attack": {
        "damage": 5
      },
      "minecraft:navigation.walk": {
        "is_amphibious": true,
        "can_pass_doors": true,
        "can_walk": true,
        "can_break_doors": true
      },
      "minecraft:damage_sensor": {
        "triggers": [
          {
            "on_damage": {
              "filters": {
                "test": "has_damage",
                "subject": "self",
                "value": "fall"
              }
            },
            "deals_damage": false
          }
        ]
      },
      "minecraft:movement": {
        "value": 0.1
      },
      "minecraft:fire_immune": true,
      "minecraft:knockback_resistance": {
        "value": 100,
        "max": 100
      },
      "minecraft:loot": {
        "table": "loot_tables/entities/epic.json"
      },
      "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": 3,
        "max_dist": 3,
        "speed_multiplier": 1,
        "track_target": true
      },
      "minecraft:behavior.look_at_player": {
        "priority": 5,
        "look_distance": 32,
        "probability": 1
      },
      "minecraft:scale": {
        "value": 1
      },
      "minecraft:boss": {
        "name": "The Undead Horror",
        "hud_range": 30
      }
    },
    "events": {
      "dungeon:grow15": {
        "add": {
          "component_groups": [
            "dungeon:size15"
          ]
        }
      },
      "dungeon:grow2": {
        "remove": {
          "component_groups": [
            "dungeon:size15"
          ]
        },
        "add": {
          "component_groups": [
            "dungeon:size2"
          ]
        }
      },
      "dungeon:grow25": {
        "remove": {
          "component_groups": [
            "dungeon:size2"
          ]
        },
        "add": {
          "component_groups": [
            "dungeon:size25"
          ]
        }
      },
      "dungeon:grow3": {
        "remove": {
          "component_groups": [
            "dungeon:size25"
          ]
        },
        "add": {
          "component_groups": [
            "dungeon:size3"
          ]
        }
      },
      "dungeon:grow35": {
        "remove": {
          "component_groups": [
            "dungeon:size3"
          ]
        },
        "add": {
          "component_groups": [
            "dungeon:size35"
          ]
        }
      },
      "dungeon:grow4": {
        "remove": {
          "component_groups": [
            "dungeon:size35"
          ]
        },
        "add": {
          "component_groups": [
            "dungeon:size4"
          ]
        }
      },
      "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",
            "dungeon:start_grow"
          ]
        },
        "add": {
          "component_groups": [
            "dungeon:normal"
          ]
        }
      },
      "dungeon:start_timer": {
        "add": {
          "component_groups": [
            "dungeon:ability_timer"
          ]
        }
      }
    }
  }
}