{
  "format_version": "1.12.0",
  "minecraft:entity": {
    "description": {
      "identifier": "mutant:mutant_zombie_pigman",
      "runtime_identifier": "minecraft:zombie_pigman",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false,
      "scripts": {
        "animate": [
          { "particle": "query.is_stunned" }
        ]
      },
      "animations": {
        "particle": "controller.animation.chemical_mutating"
      }
    },
    "component_groups": {
      
      "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:zombiepig_minion",
          "spawn_event": "from_mzombiepig",
          "single_use": true,
          "num_to_spawn": 5,
          "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: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": 14
       },
       "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
          },
           {
            "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": 21
      },
      "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": {
         
         
       },
       "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": 25
        },
          "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_adult": {
      "minecraft:movement": {
        "value": 0.30
      },
          
      "minecraft:behavior.rise_to_liquid_level": {
        "priority": 0,
        "liquid_y_offset": 0.95,
        "rise_delta": 0.01,
        "sink_delta": 0.01
      },
      
             "minecraft:variant": {
          "value": 0
        }
      },

      "minecraft:mzombie_baby": {
        "minecraft:is_baby": {},
      "minecraft:movement": {
        "value": 0.32
      },
      "minecraft:behavior.rise_to_liquid_level": {
        "priority": 0,
        "liquid_y_offset": 0.8,
        "rise_delta": 0.01,
        "sink_delta": 0.01
      },
        "minecraft:scale": {
          "value": 0.5
        },
             "minecraft:variant": {
          "value": 0
        }
      }
    
    },


    "components": {
     
      "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: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,
        
        "sound_interval": {
          "range_min": 2.0,
          "range_max": 5.0
        },
        "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.95
      },
      
      "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": 350
      },
        "minecraft:lava_movement": {
          "value": 0.18
        },
        "minecraft:navigation.walk": {
          "can_path_over_lava": true,
          "avoid_water": true,
          "can_sink": false,
          "can_walk_in_lava": true
        },
        
      "minecraft:movement.basic": {
      },
      "minecraft:jump.static": {
      },
      "minecraft:can_climb": {
      },
  
      "minecraft:fire_immune": true,
      "minecraft:type_family": {
        "family": [ "mzombie_pigman", "zombie_pigman","mutantmonster","monster" ]
      },
      "minecraft:loot": {
        "table": "loot_tables/mutant_entities/mzombiepig.json"
      },
     


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

     "minecraft:behavior.move_towards_restriction": {
        "priority": 5
      },
      "minecraft:behavior.random_stroll": {
        "priority": 8,
        "speed_multiplier": 0.8
      },
    
      "minecraft:behavior.hurt_by_target": {
        "priority": 1,
        "entity_types": {
          "filters": {
            "test": "is_family",
            "subject": "other",
            "operator": "!=",
            "value": "zombie_pigman"
          },
          "max_dist": 64
        }
      },
      "minecraft:physics": {
      }
    },



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

            }
          }
        ]
      },
      
      

         
      "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"
          ]
        }
      }    
    }
  }
}
