{
  "format_version": "1.12.0",
  "minecraft:entity": {
    "description": {
      "identifier": "mutant:mutant_piglin",
      "runtime_identifier": "minecraft:piglin",
      "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
        }
      },
      "interactable_piglin": {
        "minecraft:interact": {
              "on_interact": {
                "filters": {
                  "all_of": [
                    {
                      "test": "has_equipment",
                      "subject": "other",
                      "domain": "hand",
                      "value": "gold_ingot"
                    },
                    {
                      "test": "is_family",
                      "subject": "other",
                      "value": "player"
                    },
                    {
                      "test": "has_component",
                      "subject": "self",
                      "operator": "!=",
                      "value": "minecraft:is_baby"
                    }
                  ]
                }
              },
              "barter": true,
              "admire": true,
              "use_item": true,
              "cooldown_after_being_attacked": 20,
              "interact_text": "action.interact.barter"
        }
      },
         
      "stage_2_roar": {
       "minecraft:knockback_resistance": {
         "value": 1
       },
       "minecraft:spell_effects": {
 
        "add_effects": [
          {
            "effect": "resistance",
            "amplifier": 24,
            "visible": false,
            "ambient": false,
            "duration": 2
          },
          {
            "effect": "speed",
            "amplifier": 0,
            "visible": false,
            "ambient": false,
            "duration": 5
          },
          {
           "effect": "strength",
           "amplifier": 1,
           "visible": false,
           "ambient": false,
           "duration": 9
         }


         
        ]
      },
        
   
       "minecraft:movement": {
         "value": 0.0
       },
      
       "minecraft:mark_variant": {
         "value": 1
       },
     
       "minecraft:behavior.knockback_roar": {
         "priority": 1,
         "duration": 2.9,
         "attack_time": 0.05,
          "knockback_damage": 5,
          "knockback_strength": 4,
          "knockback_range": 8,
         "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:knockback_resistance": {
         "value": 1
       },
       "minecraft:spell_effects": {
 
        "add_effects": [
          {
            "effect": "resistance",
            "amplifier": 24,
            "visible": false,
            "ambient": false,
            "duration": 2
          },
          {
            "effect": "speed",
            "amplifier": 0,
            "visible": false,
            "ambient": false,
            "duration": 5
          },
          {
           "effect": "strength",
           "amplifier": 1,
           "visible": false,
           "ambient": false,
           "duration": 9
         }


         
        ]
      },
        
        
         "minecraft:movement": {
           "value": 0.0
         },
         
         "minecraft:mark_variant": {
          "value": 1
        },
      
        "minecraft:behavior.knockback_roar": {
          "priority": 1,
          "duration": 2.9,
          "attack_time": 0.05,
           "knockback_damage": 7,
           "knockback_strength": 2,
           "knockback_range": 12,
           "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:spell_effects": {
 
           "add_effects": [
             {
               "effect": "resistance",
               "amplifier": 4,
               "visible": false,
               "ambient": false,
               "duration": 9
             },
             {
               "effect": "speed",
               "amplifier": 0,
               "visible": false,
               "ambient": false,
               "duration": 5
             },
             {
              "effect": "strength",
              "amplifier": 1,
              "visible": false,
              "ambient": false,
              "duration": 9
            }
 
 
            
           ]
         },
         "minecraft:mark_variant": {
          "value": 2
        },
      
        "minecraft:behavior.knockback_roar": {
          "priority": 1,
          "duration":  2.3,
          "attack_time": 0.725,
        
           "knockback_damage": 12,
           "knockback_strength": 1,
           "knockback_range": 8,
           "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:spell_effects": {
  
         "add_effects": [
           {
             "effect": "resistance",
             "amplifier": 24,
             "visible": false,
             "ambient": false,
             "duration": 2
           },
           {
             "effect": "speed",
             "amplifier": 0,
             "visible": false,
             "ambient": false,
             "duration": 5
           },
           {
            "effect": "strength",
            "amplifier": 1,
            "visible": false,
            "ambient": false,
            "duration": 9
          }
 
 
          
         ]
       },
          "minecraft:timer": {
            "looping": false,
            "time": 1.4,
            "time_down_event": {
              "event": "minecraft:end_angry_roar"
            }
          },
         
          "minecraft:movement": {
            "value": 0.0
          },
          
          "minecraft:mark_variant": {
           "value": 1
         }
        },
 
       "ranged_mode": {
         "minecraft:is_charged": {},
         "minecraft:timer": {
           "looping": false,
             "time": [17, 19],
           "time_down_event": {
             "event": "minecraft:start_roar"
           }
         },
         "minecraft:variant": {
          "value": 0
        },
        "minecraft:mark_variant": {
          "value": 7
        },
        "minecraft:equipment": {
          "table": "loot_tables/mutant_entities/mpiglin_gear_ranged.json"
        },
        "minecraft:behavior.ranged_attack": {
          "priority": 8,
          "attack_interval_min": 0.25,
          "attack_interval_max": 0.5,
          "attack_radius": 32,
          "attack_radius_min": 3,
          "speed_multiplier": 1.0,
          "target_in_sight_time": 0.4
        },
       
        "minecraft:behavior.charge_held_item": {
          "priority": 3,
          "items": [
            "minecraft:arrow"
          ]
        }
                  },
                  
                  
                  
         
           "melee_mode": {
             "minecraft:timer": {
               "looping": false,
                 "time": [7, 9],
               "time_down_event": {
                 "event": "minecraft:start_roar"
               }
             },
             "minecraft:equipment": {
              "table": "loot_tables/entities/piglin_gear_melee.json"
            },
             "minecraft:variant": {
              "value": 1
            },
            "minecraft:mark_variant": {
              "value": 6
            },
             "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:mpiglin_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"
         },
         "filters": {
          "all_of": [
            {
              "test": "is_family",
              "subject": "other",
              "operator": "!=",
              "value": "piglin"
            },
            {
              "test": "has_component",
              "subject": "self",
              "operator": "!=",
              "value": "minecraft:attack_cooldown"
            }
          ]
        },
         "angry_sound": "angry",
         "sound_interval": {
           "range_min": 2.0,
           "range_max": 5.0
         }
       },
     
         "minecraft:target_nearby_sensor": {
           "inside_range": 3.0,
           "outside_range": 5.0,
           "on_inside_range": {
             "event": "switch_to_melee",
             "target": "self"
           },
           "on_outside_range": {
             "event": "switch_to_ranged",
             "target": "self"
           }
         
       },
         "minecraft:timer": {
           "looping": false,
       "time": [10, 12],
           "time_down_event": {
             "event": "minecraft:start_roar"
           }
         },
         "minecraft:on_target_acquired": {
         }
       },
 
       "minecraft:mpiglin_calm": {
     "minecraft:pushable": {
         "is_pushable": true,
         "is_pushable_by_piston": true
       },
 
       "minecraft:behavior.nearest_attackable_target": {
        "priority": 7,
        "within_radius": 16.0,
        "persist_time": 2.0,
        "entity_types": [
          {
            "filters": {
              "any_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "wither"
                }
              ]
            },
            "max_dist": 16
          },
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "self",
                  "value": "piglin_hunter"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "hoglin_huntable"
                },
                {
                  "test": "has_component",
                  "subject": "other",
                  "operator": "!=",
                  "value": "minecraft:is_baby"
                },
                {
                  "test": "has_component",
                  "subject": "self",
                  "operator": "!=",
                  "value": "minecraft:attack_cooldown"
                }
              ]
            },
            "max_dist": 16
          },
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "player"
                },
                {
                  "test": "has_equipment",
                  "subject": "other",
                  "domain": "head",
                  "operator": "!=",
                  "value": "golden_helmet"
                },
                {
                  "test": "has_equipment",
                  "subject": "other",
                  "domain": "torso",
                  "operator": "!=",
                  "value": "golden_chestplate"
                },
                {
                  "test": "has_equipment",
                  "subject": "other",
                  "domain": "leg",
                  "operator": "!=",
                  "value": "golden_leggings"
                },
                {
                  "test": "has_equipment",
                  "subject": "other",
                  "domain": "feet",
                  "operator": "!=",
                  "value": "golden_boots"
                }
              ]
            },
            "max_dist": 16
          },
          {
            "filters": {
              "any_of": [
                {
                  "test": "has_container_open",
                  "subject": "other",
                  "operator": "==",
                  "value": true
                }
              ]
            },
            "max_dist": 16
          }
        ],
        "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:shooter": {
          "type": "Arrow",
          "def": "mutant:arrow"
        },
       "minecraft:attack": {
         "damage": 10
       },
       "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
          },
        
          { 
            "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:health": {
          "value": 1,
          "max": 1,
          "min": 0
        },
         "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:attack": {
         "damage": 12
       },
       "minecraft:shooter": {
        "type": "Arrow",
        "def": "mutant:arrow"
      },
       "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
          },
        
          { 
            "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:health": {
          "value": 1,
          "max": 1,
          "min": 0
        },
       "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:shooter": {
          "type": "Arrow",
          "def": "mutant:boom_arrow"
        },
       "minecraft:attack": {
         "damage": 15
       },
         "minecraft:behavior.float": {
           "priority": 0
         },     
         "minecraft:knockback_resistance": {
           "value": 1
         },
         "minecraft:is_sheared": {
         },
         "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: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
          },
        
          { 
            "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:shooter": {
          "type": "Arrow",
          "def": "mutant:boom_arrow"
        },
       "minecraft:attack": {
         "damage": 15
       },
         "minecraft:spell_effects": {
 
           "add_effects": [
             {
               "effect": "resistance",
               "amplifier": 1,
               "visible": false,
               "ambient": false,
               "duration": 999999
             }
           ]
         }
 },
 "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_health",
               "amplifier": 1,
               "visible": false,
               "ambient": false,
               "duration": 10.0
             }
             
           ]
         },
         "minecraft:timer": {
           "looping": false,
           "time": 4.75,
           "time_down_event": {
             "event": "end_health"
           }
         }
         
       },
 
            
     
 
       "minecraft:mpiglin_adult": {
         
       "minecraft:movement": {
         "value": 0.30
       },
       
        
              "minecraft:variant": {
           "value": 0
         }
       },
   
       "minecraft:mpiglin_baby": {
         "minecraft:is_baby": {},
         
       "minecraft:movement": {
         "value": 0.32
       },
         "minecraft:scale": {
           "value": 0.5
         },
              "minecraft:variant": {
           "value": 0
         }
       }
     
     },
 
 
     "components": {
      "minecraft:celebrate_hunt": {
        "celebration_targets": {
          "all_of": [
            {
              "test": "is_family",
              "value": "wither"
            },
            {
              "test": "is_family",
              "value": "hoglin"
            }
          ]
        },
        "broadcast": true,
        "duration": 10,
        "celebrate_sound": "celebrate",
        "sound_interval": {
          "range_min": 1.0,
          "range_max": 3.0
        },
        "radius": 20
      },
    
       "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:hurt_on_condition": {
        "damage_conditions": [
          {
            "filters": {
              "test": "in_lava",
              "subject": "self",
              "operator": "==",
              "value": true
            },
            "cause": "lava",
            "damage_per_tick": 5
          }
        ]
      },
       "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": 400
      },
       "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": [ "mpiglin", "piglin","mutantmonster","monster" ]
      },
       "minecraft:loot": {
         "table": "loot_tables/mutant_entities/mpiglin.json"
       },
      
       "minecraft:inventory": {
        "inventory_size": 64
      },
 
       "minecraft:behavior.break_door": {
         "priority": 1
       },
    
       "minecraft:equip_item": {
      },
      "minecraft:behavior.move_towards_restriction": {
         "priority": 5
       },
       "minecraft:behavior.random_stroll": {
         "priority": 7,
         "speed_multiplier": 1.0
       },
     
       "minecraft:behavior.hurt_by_target": {
         "priority": 1,
         "entity_types": {
           "filters": {
             "test": "is_family",
             "subject": "other",
             "operator": "!=",
             "value": "piglin"
           },
           "max_dist": 64
         }
       },
       "minecraft:physics": {
       },
       "minecraft:behavior.equip_item": {
        "priority": 5
      },
      "minecraft:behavior.pickup_items": {
        "priority": 6,
        "max_dist": 10,
        "goal_radius": 2,
        "speed_multiplier": 0.8,
        "pickup_based_on_chance": false,
        "can_pickup_any_item": false,
        "cooldown_after_being_attacked": 20.0
      },
      "minecraft:behavior.barter": {
        "priority": 3
      },
      "minecraft:barter": {
        "barter_table": "loot_tables/mutant_entities/mpiglin_barter.json",
        "cooldown_after_being_attacked": 20
      },
       "minecraft:admire_item": {
        "duration": 6,
        "cooldown_after_being_attacked": 10
      },
       "minecraft:behavior.admire_item": {
        "priority": 2,
        "admire_item_sound": "admire",
        "sound_interval": {
          "range_min": 2.0,
          "range_max": 5.0
        },
        "on_admire_item_start": {
          "event": "admire_item_started_event",
          "target": "self"
        },
        "on_admire_item_stop": {
          "event": "admire_item_stopped_event",
          "target": "self"
        }
      },
       "minecraft:shareables": {
        "items": [
          {
            "item": "minecraft:golden_sword",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:golden_axe",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:golden_hoe",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:golden_pickaxe",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:golden_shovel",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:golden_rail",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:golden_helmet",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:golden_chestplate",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:golden_leggings",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:golden_boots",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:golden_apple",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:appleEnchanted",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:golden_carrot",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:gold_block",
            "priority": 2,
            "admire": true,
            "barter": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:gold_nugget",
            "priority": 2,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:gold_ore",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:nether_gold_ore",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:gilded_blackstone",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:horsearmorgold",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:crossbow",
            "priority": 2
          },
          {
            "item": "minecraft:porkchop",
            "consume_item": true,
            "priority": 3,
            "max_amount": 64
          },
          {
            "item": "minecraft:cooked_porkchop",
            "consume_item": true,
            "priority": 3,
            "max_amount": 64
          },
          {
            "item": "minecraft:netherite_helmet",
            "priority": 3
          },
          {
            "item": "minecraft:diamond_helmet",
            "priority": 4
          },
          {
            "item": "minecraft:iron_helmet",
            "priority": 5
          },
          {
            "item": "minecraft:chainmail_helmet",
            "priority": 6
          },
          {
            "item": "minecraft:leather_helmet",
            "priority": 7
          },
          {
            "item": "minecraft:skull:0",
            "want_amount": 1,
            "surplus_amount": 1,
            "priority": 8
          },
          {
            "item": "minecraft:skull:1",
            "want_amount": 1,
            "surplus_amount": 1,
            "priority": 8
          },
          {
            "item": "minecraft:carved_pumpkin",
            "want_amount": 1,
            "surplus_amount": 1,
            "priority": 8
          },
          {
            "item": "minecraft:netherite_chestplate",
            "priority": 3
          },
          {
            "item": "minecraft:diamond_chestplate",
            "priority": 4
          },
          {
            "item": "minecraft:iron_chestplate",
            "priority": 5
          },
          {
            "item": "minecraft:chainmail_chestplate",
            "priority": 6
          },
          {
            "item": "minecraft:leather_chestplate",
            "priority": 7
          },
          {
            "item": "minecraft:netherite_leggings",
            "priority": 3
          },
          {
            "item": "minecraft:diamond_leggings",
            "priority": 4
          },
          {
            "item": "minecraft:iron_leggings",
            "priority": 5
          },
          {
            "item": "minecraft:chainmail_leggings",
            "priority": 6
          },
          {
            "item": "minecraft:leather_leggings",
            "priority": 7
          },
          {
            "item": "minecraft:netherite_boots",
            "priority": 3
          },
          {
            "item": "minecraft:diamond_boots",
            "priority": 4
          },
          {
            "item": "minecraft:iron_boots",
            "priority": 5
          },
          {
            "item": "minecraft:chainmail_boots",
            "priority": 6
          },
          {
            "item": "minecraft:bell",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:clock",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:speckled_melon",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:light_weighted_pressure_plate",
            "priority": 2,
            "admire": true,
            "pickup_limit": 1,
            "stored_in_inventory": true
          },
          {
            "item": "minecraft:leather_boots",
            "priority": 7
          },
          {
            "item": "minecraft:netherite_sword",
            "priority": 3
          },
          {
            "item": "minecraft:diamond_sword",
            "priority": 4
          },
          {
            "item": "minecraft:iron_sword",
            "priority": 5
          },
          {
            "item": "minecraft:stone_sword",
            "priority": 6
          },
          {
            "item": "minecraft:wooden_sword",
            "priority": 7
          },
          {
            "item": "minecraft:gold_ingot",
            "priority": 1,
            "pickup_limit": 1,
            "admire": true,
            "barter": true
          }
        ]
      }
    },
 
 
     "events": {
      "minecraft:entity_transformed": {
        "sequence": [
    
          {
            "filters": {
              "test": "has_component",
              "subject": "other",
              "value": "minecraft:is_baby"
            },
            "add": {
              "component_groups": [
                "minecraft:mpiglin_baby",
                "interactable_piglin",
                "mutant_life_3",
                "chemical_roaring",
                "minecraft:mpiglin_calm"
              ]
            }
          },
     
          {
            "filters": {
              "test": "has_component",
              "subject": "other",
              "operator": "!=",
              "value": "minecraft:is_baby"
            },
            "add": {
              "component_groups": [
                "minecraft:mpiglin_adult",
                "interactable_piglin",
                "mutant_life_3",
                "chemical_roaring",
                "minecraft:mpiglin_calm"
              ]
            }
          }
        ]
      },
      "chemical_roar": {
        "remove": {
          "component_groups": [
            "chemical_roaring"
        
          ]
        }
      },
       "minecraft:entity_spawned": {
         "randomize": [
           {
             "weight": 29,
             "remove": {
             },
             "add": {
               "component_groups": [
                 "minecraft:mpiglin_adult",
                 "interactable_piglin",
                 "mutant_life_3",
                 "minecraft:mpiglin_calm"
               ]
             }
           },
           {
             "weight": 5,
             "remove": {
             },
             "add": {
               "component_groups": [
                 "minecraft:mpiglin_baby",
                 "interactable_piglin",
                 "mutant_life_3",
                 "minecraft:mpiglin_calm"
               ]
 
             }
           }
         ]
       },
       
       
       "admire_item_started_event": {
        "remove": {
          "component_groups": [
            "interactable_piglin"
          ]
        }
      },
      "admire_item_stopped_event": {
        "add": {
          "component_groups": [
            "interactable_piglin"
          ]
        }
      },
     
       "life_3": {
         "add": {
           "component_groups": [
            "heal",
             "stunned_life_3",
             "stunned_fire"
         
           ]
         },
         "remove": {
           "component_groups": [
             "mutant_life_3",
             "ranged_mode",
             "roaring",
             "minecraft:mpiglin_angry",
             "minecraft:mpiglin_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:mpiglin_angry",
             "stage_2_roar",
             "angry_roar",
             "roaring",
             "ranged_mode",
             "minecraft:mpiglin_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:mpiglin_angry"
           ]
        }
     },
     
       "minecraft:end_angry_roar": {
         "remove": {
           "component_groups": [
             "angry_roar"
           ]
        },
         "add": {
           "component_groups": [
             "minecraft:mpiglin_angry",
             "delay_angry"
           ]
        }
     },
     "switch_to_melee": {
       "add": {
         "component_groups": [
           "melee_mode"
           
       
         ]
       },
       "remove": {
         "component_groups": [
         "ranged_mode"
       ]
       }
     },
     "switch_to_ranged": {
       "add": {
         "component_groups": [
           "ranged_mode"
           
       
         ]
       },
       "remove": {
         "component_groups": [
         "melee_mode"
       ]
       }
     },
     
     "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",
             "ranged_mode",
             "minecraft:mpiglin_angry",
             "minecraft:mpiglin_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",
            "ranged_mode",
             "minecraft:mpiglin_angry",
             "minecraft:mpiglin_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:mpiglin_calm"
           ]
         },
         "add": {
           "component_groups": [
             "minecraft:mpiglin_angry"
           ]
         }
       },
       "minecraft:on_calm": {
         "remove": {
           "component_groups": [
             "minecraft:mpiglin_angry"
           ]
         },
         "add": {
           "component_groups": [
             "minecraft:mpiglin_calm"
           ]
         }
       },
       "minecraft:end_summon": {
         "add": {
           "component_groups": [
             "minecraft:mpiglin_angry"
         
           ]
         },
         "remove": {
           "component_groups": [
             "summoning",
             "roaring"
           ]
         }
       },
 
       "minecraft:start_roar": {
         "add": {
           "component_groups": [
             "roaring"
         
           ]
         },
         "remove": {
           "component_groups": [
             "minecraft:mpiglin_angry",
             "ranged_mode"
           ]
         }
       },
       
       "minecraft:start_smash": {
         "add": {
           "component_groups": [
             "smash_attack"
         
           ]
         },
         "remove": {
           "component_groups": [
             "minecraft:mpiglin_angry",
             "ranged_mode"
           ]
         }
       },
       
       
       
       "minecraft:end_roar": {
         "remove": {
           "component_groups": [
             "roaring", "smash_attack"
           ]
         },
           
           
         "add": {
           "component_groups": [
             "minecraft:mpiglin_angry"
           ]
         }
       },
     
 
     
       "minecraft:as_baby": {
         "add": {
           "component_groups": [
                 "minecraft:mpiglin_baby",
 "minecraft:mpiglin_name",
                 "mutant_life_3",
                 "minecraft:mpiglin_calm"
           ]
         }
       },
       "minecraft:as_adult": {
         "add": {
           "component_groups": [
                 "minecraft:mpiglin_adult",
 "minecraft:mpiglin_name",
                 "mutant_life_3",
                 "minecraft:mpiglin_calm"
           ]
         }
       }
       
        
       
     }
   }
 }