{
  "format_version": "1.12.0",
  "minecraft:entity": {
    "description": {
      "identifier": "mutant:mutant_husk",
      "runtime_identifier": "minecraft:husk",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false
    },



    "component_groups": {
     
    
      
      "chemical_roaring": {
      
        "minecraft:knockback_resistance": {
          "value": 1
        },
      
      "minecraft:pushable": {
        "is_pushable": false,
        "is_pushable_by_piston": true
      },
     
  
   
        "minecraft:mark_variant": {
          "value": 1
        },
      
        "minecraft:behavior.knockback_roar": {
          "priority": 1,
          "duration": 3.5,
          
          "attack_time": 4,
          "knockback_damage": 1,
          "knockback_strength": 1,
          "knockback_range": 10,
          "knockback_filters": {
            "test": "is_family",
            "subject": "other",
            "operator": "!=",
            "value": "mutantmonster"
          },
          "on_roar_end": {
            "event": "chemical_roar"
          },
          "damage_filters": {
            "test": "is_family",
            "subject": "other",     
            "value": "player"
          },
          "cooldown_time": 30
        }
      },
      
        
      "stage_2_roar": {
       "minecraft:knockback_resistance": {
         "value": 1
       },
      
       
       "minecraft:movement": {
         "value": 0.0
       },
       
       "minecraft:mark_variant": {
         "value": 2
       },
      
    
       "minecraft:behavior.knockback_roar": {
         "priority": 1,
         "duration":  2.3,
         "play_sounds": "ignite",
         "attack_time": 0.725,
         "knockback_damage": 18,
         "knockback_strength": 4,
         "knockback_range": 3,
         "knockback_filters": {
           "test": "is_family",
           "subject": "other",
           "operator": "!=",
           "value": "mutantmonster"
         },
         "on_roar_end": {
           "event": "minecraft:end_stage_2_roar"
         },
         "damage_filters": {
          "test": "is_family",
          "subject": "other",     
          "value": "player"
        },
          "cooldown_time": 30
        }
      },
           
       "angry_roar": {
        "minecraft:is_sheared": {
        },
        "minecraft:knockback_resistance": {
          "value": 1
        },
      
          
          "minecraft:movement": {
            "value": 0.0
          },
          
          "minecraft:mark_variant": {
            "value": 2
          },
        
          "minecraft:behavior.knockback_roar": {
            "priority": 1,
            "duration":  2.3,
            "attack_time": 0.725,
            "knockback_damage": 20,
            "knockback_strength": 4,
            "knockback_range": 3,
            "knockback_filters": {
              "test": "is_family",
              "subject": "other",
              "operator": "!=",
              "value": "mutantmonster"
            },
            "on_roar_end": {
              "event": "minecraft:end_angry_roar"
            },
            "damage_filters": {
              "test": "is_family",
              "subject": "other",     
              "value": "player"
            },
            "cooldown_time": 30
          }
        },
  
  
  
        "roaring": {
           
          "minecraft:knockback_resistance": {
            "value": 1
          },
        
        "minecraft:pushable": {
          "is_pushable": false,
          "is_pushable_by_piston": true
        },
       
      
      
       "minecraft:spawn_entity": [
         {
           "min_wait_time": 1,
           "max_wait_time": 1,
           "spawn_entity": "mutant:husk_minion",
           "spawn_event": "from_mutant_zombie",
           "single_use": true,
           "num_to_spawn": 6,
           "should_leash": false
         }
       ],
      
          
       "minecraft:spell_effects": {

        "add_effects": [
          {
            "effect": "resistance",
            "amplifier": 4,
            "visible": false,
            "ambient": false,
            "duration": 9
          },
          {
            "effect": "slowness",
            "amplifier": 2,
            "visible": false,
            "ambient": false,
            "duration": 9
          }


         
        ]
      },
      "minecraft:mark_variant": {
        "value": 1
      },
    
      "minecraft:behavior.knockback_roar": {
        "priority": 1,
        "duration": 2.9,
        
        "attack_time": 0.55,
        "knockback_damage": 6,
        "knockback_strength": 4,
        "knockback_range": 7,
        "knockback_filters": {
          "test": "is_family",
          "subject": "other",
          "operator": "!=",
          "value": "mutantmonster"
        },
        "on_roar_end": {
          "event": "minecraft:end_roar"
        },
        "damage_filters": {
          "test": "is_family",
          "subject": "other",     
          "value": "player"
        },
        "cooldown_time": 30
      }
    },
    "smash_attack": {
      "minecraft:knockback_resistance": {
        "value": 1
      },
      
    "minecraft:pushable": {
      "is_pushable": false,
      "is_pushable_by_piston": true
    },
   
   
      "minecraft:spell_effects": {

        "add_effects": [
          {
            "effect": "resistance",
            "amplifier": 4,
            "visible": false,
            "ambient": false,
            "duration": 9
          },
          {
            "effect": "strength",
            "amplifier": 2,
            "visible": false,
            "ambient": false,
            "duration": 9
          }


         
        ]
      },
      "minecraft:mark_variant": {
        "value": 2
      },
    
      "minecraft:behavior.knockback_roar": {
        "priority": 1,
        "duration":  2.3,
        "play_sounds": "ignite",
        "attack_time": 0.725,
        "knockback_damage": 18,
        "knockback_strength": 4,
        "knockback_range": 3,
        "knockback_filters": {
          "test": "is_family",
          "subject": "other",
          "operator": "!=",
          "value": "mutantmonster"
        },
        "on_roar_end": {
          "event": "minecraft:end_roar"
        },
        "damage_filters": {
          "test": "is_family",
          "subject": "other",     
          "value": "player"
        },
        "cooldown_time": 30
      }
    },

    
    "minecraft:mzombie_angry": {
      
  "minecraft:pushable": {
      "is_pushable": true,
      "is_pushable_by_piston": true
    },

    "minecraft:movement": {
      "value": 0.30
    },
    "minecraft:angry": {
      "duration": 85,
      "broadcast_anger": true,
      "broadcast_range": 60,
      "calm_event": {
        "event": "minecraft:on_calm",
        "target": "self"
      }
    },
    "minecraft:timer": {
      "looping": false,
  "time": [13, 17],
      "time_down_event": {
        "event": "minecraft:start_roar"
      }
    },
      "minecraft:on_target_acquired": {
      }
    },

    "minecraft:mzombie_calm": {
  "minecraft:pushable": {
      "is_pushable": true,
      "is_pushable_by_piston": true
    },

      "minecraft:behavior.nearest_attackable_target": {
        "priority": 4,

        "reselect_targets": true,
        "entity_types": [
          {
            "filters": {
              "any_of": [
                { "test" :  "is_family", "subject" : "other", "value" :  "villager"},
                { "test" :  "is_family", "subject" : "other", "value" :  "player"},
                { "test" :  "is_family", "subject" : "other", "value" :  "irongolem"},
                { "test" :  "is_family", "subject" : "other", "value" :  "snowgolem"},
                { "test" :  "is_family", "subject" : "other", "value" :  "turtle"}
              ] 
            },
            "max_dist": 19
          },
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "baby_turtle"
                },
                {
                  "test": "in_water",
                  "subject": "other",
                  "operator": "!=",
                  "value": true
                }
              ]
            },
            "max_dist": 19
          }

        ],
        "must_see": true
      },
      "minecraft:on_target_acquired": {
        "event": "minecraft:become_angry",
        "target": "self"
      }
    
  },
  
    "mutant_life_3": {
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:knockback_resistance": {
        "value": 1
      },
      "minecraft:behavior.look_at_player": {
        "priority": 8,
        "look_distance": 6.0,
        "probability": 0.02
      },
      "minecraft:behavior.random_look_around": {
        "priority": 9
      },
      "minecraft:behavior.delayed_attack": {
        "priority": 4,
        "reach_multiplier": 1.57,
        "speed_multiplier": 1.4,
        "attack_duration": 0.45,
        "hit_delay_pct": 0.0,
        "track_target": true,
        "sound_event": "attack.strong"
      },
     
    "minecraft:attack": {
      "damage": 15,
      "effect_name": "hunger",
      "effect_duration": 60
    },
    "minecraft:health": {
      "value": 150,
      "max": 150,
      "min": 0
    },

    "minecraft:damage_sensor": [
      {
        "on_damage": {
          "filters": {
            "all_of": [
              {"test": "has_damage", "value": "fatal"},
              { "test" : "is_family", "subject" : "other", "value" : "mcreeperblowup"}
            ]
          },
          "event": "explosion_death"
        },
        "deals_damage": false
      },
      {
        "on_damage": {
          "filters": { "test": "has_component", "value": "minecraft:behavior.knockback_roar" }
        },
        "deals_damage": false
      },
      {
        "on_damage": {
          "filters": { "test": "has_component", "value": "minecraft:is_sheared" }
        },
        "deals_damage": false
      },
      { 
        "cause": "fall",
        "deals_damage": false
    },
    {
      "on_damage": {
        "filters": {
          "all_of": [
          { "test": "has_component", "operator": "!=", "value": "minecraft:behavior.knockback_roar" },
          { "test": "is_block", "subject" : "block", "operator" : "!=", "value": "minecraft:cactus" },
          { "test": "is_block", "subject" : "block", "operator" : "!=", "value": "minecraft:sweet_berry_bush" },
          {"test": "has_damage", "value": "fatal"}
        ]
      },
          "event": "life_3"
        },
        "deals_damage": false
      }
    ]
  },
    "stunned_life_3": {
  
      "minecraft:damage_sensor": [
        {
        
          "deals_damage": false
        
        }
      ], 
    "minecraft:movement": {
      "value": 0.0
    },
      "minecraft:is_stunned": {
      },
      "minecraft:timer": {
        "looping": false,
        "time": 6.5,
        "time_down_event": {
          "event": "start_life_2"
        }
      }
    },
    
    "mutant_life_2": {
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:knockback_resistance": {
        "value": 1
      },
      "minecraft:mark_variant": {
        "value": 0
      },
      "minecraft:behavior.look_at_player": {
        "priority": 8,
        "look_distance": 6.0,
        "probability": 0.02
      },
      "minecraft:behavior.random_look_around": {
        "priority": 9
      },
      "minecraft:behavior.delayed_attack": {
        "priority": 4,
        "reach_multiplier": 1.57,
        "speed_multiplier": 1.4,
        "attack_duration": 0.45,
        "hit_delay_pct": 0.0,
        "track_target": true,
        "sound_event": "attack.strong"
      },
    "minecraft:attack": {
      "damage": 18,
      "effect_name": "hunger",
      "effect_duration": 60
    },
    "minecraft:health": {
      "value": 150,
      "max": 150,
      "min": 0
    },
      "minecraft:damage_sensor": [
     
        {
          "on_damage": {
            "filters": {
              "all_of": [
                {"test": "has_damage", "value": "fatal"},
                { "test" : "is_family", "subject" : "other", "value" : "mcreeperblowup"}
              ]
            },
            "event": "explosion_death"
          },
          "deals_damage": false
        },
        {
          "on_damage": {
            "filters": { "test": "has_component", "value": "minecraft:behavior.knockback_roar" }
          },
          "deals_damage": false
        },
        {
          "on_damage": {
            "filters": { "test": "has_component", "value": "minecraft:is_sheared" }
          },
          "deals_damage": false
        },
        { 
          "cause": "fall",
          "deals_damage": false
      },
      {
        "on_damage": {
          "filters": {
            "all_of": [
            { "test": "has_component", "operator": "!=", "value": "minecraft:behavior.knockback_roar" },
            { "test": "is_block", "subject" : "block", "operator" : "!=", "value": "minecraft:cactus" },
            { "test": "is_block", "subject" : "block", "operator" : "!=", "value": "minecraft:sweet_berry_bush" },
            {"test": "has_damage", "value": "fatal"}
          ]
        },
            "event": "life_2"
          },
          "deals_damage": false
        }
      ]
    }, 
     "stunned_fire": {
      "minecraft:environment_sensor": {
        
          "filters": {
            "test": "in_lava", "subject": "self", "operator": "==", "value": true
          },
          "event": "mutant_on_fire"
        
      },
     
      "minecraft:interact": {
      
          "on_interact": {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "player"
                },
                {
                  "test": "has_equipment",
                  "domain": "hand",
                  "subject": "other",
                  "value": "flint_and_steel"
                },
                {
                  "test": "has_component",
                  "operator": "!=",
                  "value": "minecraft:explode"
                }
              ]
            },
            "event": "mutant_on_fire",
            "target": "self"
          },
          "hurt_item": 1,
          "swing": true,
          "play_sounds": "ignite",
          "interact_text": "action.interact.creeper"
        }
      
    },
    "stunned_life_2": {
    
    "minecraft:movement": {
      "value": 0.0
    },
      "minecraft:damage_sensor": [
        {
        
          "deals_damage": false
        
        }
      ],
      "minecraft:is_stunned": {
      },
      "minecraft:timer": {
        "looping": false,
        "time": 6.5,
        "time_down_event": {
          "event": "start_last_life"
        }
      }
    },

    
   

   
    
    "mutant_last_life": {
      "minecraft:behavior.float": {
        "priority": 0
      },     
      "minecraft:knockback_resistance": {
        "value": 1
      },
     
      "minecraft:mark_variant": {
        "value": 4
      },
      "minecraft:behavior.look_at_player": {
        "priority": 8,
        "look_distance": 6.0,
        "probability": 0.02
      },
      "minecraft:behavior.random_look_around": {
        "priority": 9
      },
      "minecraft:behavior.delayed_attack": {
        "priority": 4,
        "reach_multiplier": 1.57,
        "speed_multiplier": 1.4,
        "attack_duration": 0.45,
        "hit_delay_pct": 0.0,
        "track_target": true,
        "sound_event": "attack.strong"
      },
      "minecraft:health": {
        "value": 150,
        "max": 150,
        "min": 0
      },
    "minecraft:behavior.random_stroll": {
      "priority": 6,
      "speed_multiplier": 1
    },


      "minecraft:damage_sensor": [
      
        {
          "on_damage": {
            "filters": {
              "all_of": [
                {"test": "has_damage", "value": "fatal"},
                { "test" : "is_family", "subject" : "other", "value" : "mcreeperblowup"}
              ]
            },
            "event": "explosion_death"
          },
          "deals_damage": false
        },
        {
          "on_damage": {
            
            "filters": { "test": "has_component", "value": "minecraft:behavior.knockback_roar" }
          },
          "deals_damage": false
        },
        {
          "on_damage": {
            "filters": { "test": "has_component", "value": "minecraft:is_sheared" }
          },
          "deals_damage": false
        },
        { 
          "cause": "fall",
          "deals_damage": false
      },
      {
        "on_damage": {
          "filters": {
            "all_of": [
            { "test": "has_component", "operator": "!=", "value": "minecraft:behavior.knockback_roar" },
            { "test": "is_block", "subject" : "block", "operator" : "!=", "value": "minecraft:cactus" },
            { "test": "is_block", "subject" : "block", "operator" : "!=", "value": "minecraft:sweet_berry_bush" },
            {"test": "has_damage", "value": "fatal"}
          ]
        },
            "event": "last_life"
          },
          "deals_damage": false
        }
      ]
    },
    "stunned_life_death": {
   
    "minecraft:health": {
      "value": 150,
      "max": 150,
      "min": 0
    },
    "minecraft:damage_sensor": [
      {
      
        "deals_damage": false
      
      }
    ],
    "minecraft:movement": {
      "value": 0.0
    },
    
      "minecraft:is_stunned": {
      },
      "minecraft:timer": {
        "looping": false,
        "time": 1,
        "time_down_event": {
          "event": "start_last_life"
        }
      }
    },
    "on_fire": {
     
      "minecraft:is_shaking": {
      },
      "minecraft:burns_in_daylight": {
      },
      "minecraft:attack_cooldown": {
        "attack_cooldown_time": [ 4.0, 4.0 ],
        "attack_cooldown_complete_event": {
          "event": "start_death",
          "target": "self"
        }
      },
    
      "minecraft:mark_variant": {
        "value": 3
      }
 
    
     
    },
    "on_fire_explosion": {
      
      "minecraft:is_shaking": {
      },
      "minecraft:burns_in_daylight": {
      },
      "minecraft:attack_cooldown": {
        "attack_cooldown_time": [ 1.0, 1.0 ],
        "attack_cooldown_complete_event": {
          "event": "start_death",
          "target": "self"
        }
      },
      "minecraft:mark_variant": {
        "value": 3
      }
 
    
     
    },
    "stunned_death": {
      "minecraft:burns_in_daylight": {
      },
      "minecraft:is_shaking": {
      },
      "minecraft:mark_variant": {
        "value": 3
      },
 
      "minecraft:is_stunned": {
      },
      "minecraft:timer": {
        "looping": false,
        "time": 1,
        "time_down_event": {
          "event": "start_death"
        }
      }
    },
  
    "anger": {

    "minecraft:attack": {
      "damage": 22,
      "effect_name": "hunger",
      "effect_duration": 60
    },
      "minecraft:spell_effects": {

        "add_effects": [
          {
            "effect": "resistance",
            "amplifier": 1,
            "visible": false,
            "ambient": false,
            "duration": 999999
          }
        ]
      },
        "minecraft:is_charged": {
        }
},
    "death": {
      "minecraft:health": {
        "value": 0,
        "max": 0,
        "min": 0
      },
      "minecraft:mark_variant": {
        "value": 3
      },
     
  
      "minecraft:scale": {
        "value": 0.001
      },
      "minecraft:spell_effects": {

        "add_effects": [
       
          {
            "effect": "invisibility",
            "amplifier": 10,
            "visible": false,
            "ambient": false,
            "duration": 999999
          }
        ]
      }
    },
      
    "heal_2": {
      "minecraft:spell_effects": {

        "add_effects": [
          {
            "effect": "resistance",
            "amplifier": 150,
            "visible": false,
            "ambient": false,
            "duration": 10.0
          }
         

          
        ]
      },
      "minecraft:timer": {
        "looping": false,
        "time": 5.0,
        "time_down_event": {
          "event": "end_health"
        }
      }
      
    },
      
      
    "heal": {
      "minecraft:spell_effects": {

        "add_effects": [
          {
            "effect": "resistance",
            "amplifier": 150,
            "visible": false,
            "ambient": false,
            "duration": 10.0
          },
         
          {
            "effect": "instant_damage",
            "amplifier": 1,
            "visible": false,
            "ambient": false,
            "duration": 10.0
          }
          
        ]
      },
      "minecraft:timer": {
        "looping": false,
        "time": 4.75,
        "time_down_event": {
          "event": "end_health"
        }
      }
      
    },


      "minecraft:mzombie_name": {
      "minecraft:nameable": {
        "default_trigger": {
          "event": "minecraft:stop_tmhusky",
          "target": "self"
        },
        "name_actions": [
          {
            "name_filter": "TMHusky",
            "on_named": {
              "event": "minecraft:start_tmhusky",
              "target": "self"
            }
          }
        ]
      }
    },
    
    
    


      "minecraft:mzombie_tmhusky": {
      
      
             "minecraft:variant": {
          "value": 1
        }
      },


      
      
      "minecraft:mzombie_normal": {
      
      
             "minecraft:variant": {
          "value": 0
        }
      },


      
      



      "minecraft:mzombie_adult": {
      "minecraft:movement": {
        "value": 0.30
      },
      

        "minecraft:scale": {
          "value": 1.0625
        },
             "minecraft:variant": {
          "value": 0
        }
      },

      "minecraft:mzombie_baby": {
        "minecraft:is_baby": {},
      "minecraft:movement": {
        "value": 0.32
      },
        "minecraft:scale": {
          "value": 0.53125
        },
             "minecraft:variant": {
          "value": 0
        }
      }
    
    },
    
    "components": {
      "minecraft:breathable": {
        "totalSupply": 15,
        "suffocateTime": -1,
        "breathesWater": true
      },
      "minecraft:ravager_blocked": {
        "knockback_strength": 1.0,
        "reaction_choices": [
          {
            "weight": 2,
            "value": {
              "event": "minecraft:start_smash",
              "target": "self"
            }
          },
          {
            "weight": 1,
            "value": {
              "event": "minecraft:start_roar",
              "target": "self"
            }
          },
          {
           
            "weight": 6
          }
        ]
      },
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:water_movement": {
        "drag_factor": 0.98
      },
      "minecraft:break_blocks": {
        "breakable_blocks": [

          "bamboo_sapling",
          "beetroot",
          "brown_mushroom",
          "carrots",
          "carved_pumpkin",
          "chorus_flower",
          "chorus_plant",
          "lit_pumpkin",
          "melon_stem",
          "potatoes",
          "pumpkin",
          "pumpkin_stem",
          "red_flower",
          "red_mushroom",
          "reeds",
          "sapling",
          "sweet_berry_bush",
          "vine",
          "waterlily",
          "yellow_flower",
          "bamboo",
          "wheat",
          "oak_stairs",
          "spruce_stairs",
          "dark_oak_stairs",
          "birch_stairs",
          "acacia_stairs",
          "carved_pumpkin",
          "leaves",
          "leaves2",
          "lit_pumpkin",
          "melon_block",
          "spruce_door",
          "oak_door",
          "birch_door",
          "acacia_door",
          "ice",
          "dark_oak_door",
          "turtle_egg",
          "wood_planks",
          "fence",
          "redstone_wire",
          "glass",
          "glass_pane",
          "slab",
          "wool",
          "bed",
          "planks",
          "ladder",
          "scaffolding",
          "trapdoor",
          "acacia_trapdoor",
          "planks_jungle",
          "cactus"
        ]
      },
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
    
    
    
      "minecraft:behavior.avoid_mob_type": {
        "priority": 3,
        
     
        "entity_types": [
          {
            "filters": { 
                "any_of": [
                  { "test" : "is_family", "subject" : "other", "value" : "mcreeperblowup"}
                ]
            },
            "max_dist": 36,
          "must_see": false,
            "walk_speed_multiplier": 1.75,
            "sprint_speed_multiplier": 1.75
          }
        ]
      },


       "minecraft:collision_box": {
        "width": 1.25,
        "height": 2.75
      },
      
      "minecraft:damage_sensor": {
        "triggers": {
          "cause": "fall",
          "deals_damage": false
        }
      },
      "minecraft:knockback_resistance": {
        "value": 1
      },
		
      "minecraft:nameable": {
      },
      "minecraft:follow_range": {
        "value": 56,
        "max": 56
      },
      "minecraft:experience_reward": {
        "on_death": 250
      },
      "minecraft:navigation.walk": {
        "is_amphibious": true,
        "can_pass_doors": true,
        "can_open_doors": true,
        "avoid_water": false,
        "avoid_portals": true
      },
      "minecraft:movement.basic": {
      },
      "minecraft:jump.static": {
      },
      "minecraft:can_climb": {
      },
  
  
      "minecraft:type_family": {
        "family": [ "mhusk", "husk","zombie" ,"mutantmonster","monster" ]
      },
      "minecraft:loot": {
        "table": "loot_tables/mutant_entities/mzombie.json"
      },
     



      "minecraft:behavior.break_door": {
        "priority": 1
      },
   

     "minecraft:behavior.move_towards_restriction": {
        "priority": 5
      },
      "minecraft:behavior.random_stroll": {
        "priority": 7,
        "speed_multiplier": 1.0
      },
      "minecraft:behavior.look_at_player": {
        "priority": 8,
        "look_distance": 6.0,
        "probability": 0.02
      },
      "minecraft:behavior.random_look_around": {
        "priority": 9
      },
      "minecraft:behavior.hurt_by_target": {
        "priority": 1,
        "entity_types": {
          "filters": {
            "test": "is_family",
            "subject": "other",
            "operator": "!=",
            "value": "husk"
          },
          "max_dist": 64
        }
      },
      "minecraft:physics": {
      }
    },





    "events": {

      "minecraft:entity_transformed": {
        "sequence": [
    
          {
            "filters": {
              "test": "has_component",
              "subject": "other",
              "value": "minecraft:is_baby"
            },
            "add": {
              "component_groups": [
                "minecraft:mzombie_baby",
                "minecraft:mzombie_name",
                "mutant_life_3",
                "chemical_roaring",
                "minecraft:mzombie_calm"
              ]
            }
          },
     
          {
            "filters": {
              "test": "has_component",
              "subject": "other",
              "operator": "!=",
              "value": "minecraft:is_baby"
            },
            "add": {
              "component_groups": [
                "minecraft:mzombie_adult",
                "minecraft:mzombie_name",
                "mutant_life_3",
                "chemical_roaring",
                "minecraft:mzombie_calm"
              ]
            }
          }
        ]
      },
      "chemical_roar": {
        "remove": {
          "component_groups": [
            "chemical_roaring"
        
          ]
        }
      },

      "minecraft:entity_spawned": {
        "randomize": [
          {
            "weight": 19,
            "remove": {
            },
            "add": {
              "component_groups": [
                "minecraft:mzombie_adult",
"minecraft:mzombie_name",
                "mutant_life_3",
                "minecraft:mzombie_calm"
              ]
            }
          },
          {
            "weight": 5,
            "remove": {
            },
            "add": {
              "component_groups": [
                "minecraft:mzombie_baby",
"minecraft:mzombie_name",
                "mutant_life_3",
                "minecraft:mzombie_calm"
              ]

            }
          }
        ]
      },


      "minecraft:start_tmhusky": {

        "add": {
          "component_groups": [
            "minecraft:mzombie_tmhusky"
          ]
        }
      },

      "minecraft:stop_tmhusky": {
        "add": {
          "component_groups": [
            "minecraft:mzombie_normal"
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:mzombie_tmhusky"
          ]
        }
      },

      "life_3": {
        "add": {
          "component_groups": [
           "heal",
            "stunned_life_3",
            "stunned_fire"
        
          ]
        },
        "remove": {
          "component_groups": [
            "mutant_life_3",
         
            "roaring",
            "minecraft:mzombie_angry",
            "minecraft:mzombie_calm"
          ]
        }
      },
      
      "start_life_2": {
        "remove": {
          "component_groups": [
            "stunned_life_3",
        
            "stunned_fire",
            "on_fire"
        
        
          ]
        },
        "add": {
          "component_groups": [
            "mutant_life_2",
            "stage_2_roar"
          ]
        }
      },

      "life_2": {
        "add": {
          "component_groups": [
           "heal",
            "stunned_life_2",
            
            "stunned_fire"
        
        
          ]
        },
        "remove": {
          "component_groups": [
            "mutant_life_2",
            "minecraft:mzombie_angry",
            "stage_2_roar",
            "angry_roar",
            "roaring",
            "minecraft:mzombie_calm"
          ]
        }
      },
      
      "start_last_life": {
        "remove": {
          "component_groups": [
            "stunned_life_2",
            "stage_2_roar",          
            "stunned_fire",
            "on_fire"
        
        
          ]
        },
        "add": {
          "component_groups": [
            "mutant_last_life",
            "angry_roar",
            "anger"
          ]
        }
      },

      "minecraft:end_stage_2_roar": {
        "remove": {
          "component_groups": [
            "stage_2_roar"
          ]
       },
        "add": {
          "component_groups": [
            "minecraft:mzombie_angry"
          ]
       }
    },
    
      "minecraft:end_angry_roar": {
        "remove": {
          "component_groups": [
            "angry_roar"
          ]
       },
        "add": {
          "component_groups": [
            "minecraft:mzombie_angry",
            "delay_angry"
          ]
       }
    },

    
    "mutant_on_fire": {
      "add": {
        "component_groups": [
          "on_fire"
          
      
        ]
      },
      "remove": {
        "component_groups": [
        "stunned_fire"
      ]
      }
    },

      "last_life": {
        "add": {
          "component_groups": [
           "heal_2",
           "on_fire",
            "stunned_life_death",
            "stunned_death"
        
          ]
        },
        "remove": {
          "component_groups": [
            "mutant_life_3",
            "stunned_life_3",
               "angry_roar",
               "roaring",
            "mutant_life_2",
            "stunned_life_2",
            "stage_2_roar",
            "mutant_last_life",
            "minecraft:mzombie_angry",
            "minecraft:mzombie_calm"
            
          ]
        }
      },
      "explosion_death": {
        "add": {
          "component_groups": [
            "heal_2",
           "on_fire_explosion",
            "stunned_life_death",
            "stunned_death"
        
        
          ]
        },
             "remove": {
          "component_groups": [
            "mutant_life_3",
            "stunned_life_3",
            "roaring",
            "mutant_life_2",
            "stunned_life_2",
            
            "mutant_last_life",
            
            "heal",
           "heal_2",
            
            "minecraft:mzombie_angry",
            "minecraft:mzombie_calm"
            
          ]
        }
      },

      "start_death": {
        "add": {
          "component_groups": [
            "death"
        
          ]
        },
        "remove": {
          "component_groups": [
            "anger",
            "angry_roar",
            "stage_2_roar",
            "mutant_life_3",
            "stunned_life_3",
            "roaring",
            "mutant_life_2",
            "stunned_life_2",
            
            "mutant_last_life"
        
          ]
        }
      },


      "end_health": {
        "remove": {
          "component_groups": [
            "heal",
           "heal_2"
          ]
        }
      },



      "minecraft:become_angry": {
        "remove": {
          "component_groups": [
            "minecraft:mzombie_calm"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:mzombie_angry"
          ]
        }
      },
      "minecraft:on_calm": {
        "remove": {
          "component_groups": [
            "minecraft:mzombie_angry"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:mzombie_calm"
          ]
        }
      },
      "minecraft:end_summon": {
        "add": {
          "component_groups": [
            "minecraft:mzombie_angry"
        
          ]
        },
        "remove": {
          "component_groups": [
            "summoning",
            "roaring"
          ]
        }
      },

      "minecraft:start_roar": {
        "add": {
          "component_groups": [
            "roaring"
        
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:mzombie_angry"
          ]
        }
      },
      
      "minecraft:start_smash": {
        "add": {
          "component_groups": [
            "smash_attack"
        
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:mzombie_angry"
          ]
        }
      },
      
      
      
      "minecraft:end_roar": {
        "remove": {
          "component_groups": [
            "roaring", "smash_attack"
          ]
        },
          
          
        "add": {
          "component_groups": [
            "minecraft:mzombie_angry"
          ]
        }
      },
      
      "minecraft:as_baby": {
        "add": {
          "component_groups": [
                "minecraft:mzombie_baby",
"minecraft:mzombie_name",
                "mutant_life_3",
                "minecraft:mzombie_calm"
          ]
        }
      },
      "minecraft:as_adult": {
        "add": {
          "component_groups": [
                "minecraft:mzombie_adult",
"minecraft:mzombie_name",
                "mutant_life_3",
                "minecraft:mzombie_calm"
          ]
        }
      }, 
      "minecraft:start_transforming": {
        "add": {
          "component_groups": [
            "minecraft:start_drowned_transformation"
          ]
        },
        "remove": {
          "component_groups": [ "minecraft:look_to_start_drowned_transformation" ]
        }
      },
      "minecraft:stop_transforming": {
        "add": {
          "component_groups": [
            "minecraft:look_to_start_drowned_transformation"
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:start_drowned_transformation"
          ]
        }
      },
      "minecraft:convert_to_drowned": {
        "sequence": [
          {
            "filters": {
              "test": "has_component",
              "operator": "!=",
              "value": "minecraft:is_baby"
            },
            "add": {
              "component_groups": [ "minecraft:convert_to_drowned" ]
            },
            "remove": {
              "component_groups": [ "minecraft:start_drowned_transformation" ]
            }
          },
          {
            "filters": {
              "test": "has_component",
              "value": "minecraft:is_baby"
            },
            "add": {
              "component_groups": [ "minecraft:convert_to_baby_drowned" ]
            },
            "remove": {
              "component_groups": [ "minecraft:start_drowned_transformation" ]
            }
          }
        ]
      }
      
       
      
    }
  }
}