{
  "format_version": "1.12.0",
  "minecraft:entity": {
    "description": {
      "identifier": "mutant:mutant_wither_skeleton",
      "runtime_identifier": "minecraft:wither_skeleton",
      "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": 5.2,
          
          "attack_time": 10,
          "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
        }
      },
         
     
          
      "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": 4.1, 
          "attack_time": 0.05,
           "knockback_damage": 12,
           "knockback_strength": 3,
           "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": 1
        },
      
        "minecraft:behavior.knockback_roar": {
          "priority": 1,
          "duration": 4.1, 
          "attack_time": 0.05,
           "knockback_damage": 8,
           "knockback_strength": 2,
           "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
        }
      },
 
 
       
       "minecraft:mskeleton_angry": {
         
     "minecraft:pushable": {
         "is_pushable": true,
         "is_pushable_by_piston": true
       },
 
       "minecraft:movement": {
         "value": 0.30
       },
      
       "minecraft:angry": {
         "duration": 85,
         "broadcast_anger": true,
         "broadcast_anger_on_attack": true,
         "broadcast_anger_on_being_attacked": true,
         "broadcast_range": 60,
         "calm_event": {
           "event": "minecraft:on_calm",
           "target": "self"
         },
         "filters": {
          "all_of": [
            {
              "test": "is_family",
              "subject": "other",
              "operator": "!=",
              "value": "wither"
            },
            {
              "test": "has_component",
              "subject": "self",
              "operator": "!=",
              "value": "minecraft:attack_cooldown"
            }
          ]
        },
        "angry_sound": "angry",
        "sound_interval": {
          "range_min": 2.0,
          "range_max": 5.0
        }
      },
       "minecraft:mark_variant": {
        "value": 6
      },
         "minecraft:timer": {
           "looping": false,
           "time": [13, 17],
           "time_down_event": {
             "event": "minecraft:start_roar"
           }
         },
         "minecraft:on_target_acquired": {
         }
       },
 
       "minecraft:mskeleton_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" :  "piglin"},
                   { "test" :  "is_family", "subject" : "other", "value" :  "player"}
           
                 ] 
               },
               "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_2": {
        "minecraft:health": {
          "value": 160,
          "max": 160,
          "min": 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.4,
          "hit_delay_pct": 0.0,
          "track_target": true,
          "sound_event": "attack.strong"
        },
         "minecraft:attack": {
          "damage": 17,
        "effect_name": "wither",
        "effect_duration": 45
      },
   
         "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": {
  
         
       },
       "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:health": {
          "value": 160,
          "max": 160,
          "min": 0
        },
        "minecraft:attack": {
          "damage": 19,
        "effect_name": "wither",
        "effect_duration": 60
      },
       "minecraft:behavior.delayed_attack": {
          "priority": 4,
          "reach_multiplier": 1.67,
          "speed_multiplier": 1.4,
          "attack_duration": 0.35,
          "hit_delay_pct": 0.0,
          "track_target": true,
          "sound_event": "attack.strong"
        },
         "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: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:damage_sensor": [
         {
         
           "deals_damage": false
         
         }
       ],
       "minecraft:movement": {
         "value": 0.0
       },
       
         "minecraft:is_stunned": {
         },
         "minecraft:timer": {
           "looping": false,
           "time": 3,
           "time_down_event": {
             "event": "start_last_life"
           }
         }
       },
     
       "stunned_death": {
      
        "minecraft:is_shaking": {
        },
        "minecraft:mark_variant": {
          "value": 3
        },
        "minecraft:health": {
          "value": 0,
          "max": 0,
          "min": 0
        },
        "minecraft:scale": {
          "value": 0.001
        },
        "minecraft:spawn_entity": [
          {
          "min_wait_time": 0.1,
          "max_wait_time": 0.1,
          "num_to_spawn": 1,
          "single_use": true,
          "spawn_event": "wither_bones",
          "spawn_entity": "mutant:mskeleton_death"
        }
      ],
        "minecraft:is_stunned": {
        },
        "minecraft:timer": {
          "looping": false,
          "time": 1,
          "time_down_event": {
            "event": "start_death"
          }
        }
      },
     
       "anger": {
 
          "minecraft:attack": {
              "damage": 19,
            "effect_name": "wither",
            "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:scale": {
          "value": 0.001
        },
         "minecraft:mark_variant": {
           "value": 3
         }
       },
         
       "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:mskeleton_adult": {
          "minecraft:scale": {
              "value": 1.2
            },
            "minecraft:behavior.rise_to_liquid_level": {
              "priority": 0,
              "liquid_y_offset": 0.8,
              "rise_delta": 0.01,
              "sink_delta": 0.01
            },
       "minecraft:movement": {
         "value": 0.30
       },
      
       "minecraft:variant": {
        "value": 0
      }
       }
     
     },
 
 
     "components": {
      "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:fire_immune": true,
      
       "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,
         "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": 3.5
        },
       "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": 300
      },
         
       "minecraft:movement.basic": {
       },
       "minecraft:jump.static": {
       },
       "minecraft:can_climb": {
       },
   
       "minecraft:type_family": {
        "family": [ "mwitherskeleton","mskeleton", "mutantundead","mutantmonster","monster","wither" ]
      },
      "minecraft:loot": {
        "table": "loot_tables/mutant_entities/mwitherskeleton.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.hurt_by_target": {
        "priority": 1,
        "entity_types": {
          "filters": {
            "test": "is_family",
            "subject": "other",
            "operator": "!=",
            "value": "mwitherskeleton"
          },
          "max_dist": 64
        }
      },
       "minecraft:physics": {
       }
     },
 
 
     "events": {
      "minecraft:entity_transformed": {
        "sequence": [
    
  
     
          {
            "filters": {
              "test": "has_component",
              "subject": "other",
              "operator": "!=",
              "value": "minecraft:is_baby"
            },
            "add": {
              "component_groups": [
                "minecraft:mskeleton_adult",
               
                "mutant_life_2",
                "chemical_roaring",
                "minecraft:mskeleton_calm"
              ]
            }
          }
        ]
      },
      "chemical_roar": {
        "remove": {
          "component_groups": [
            "chemical_roaring"
        
          ]
        }
      },
       "minecraft:entity_spawned": {
         "randomize": [
           {
             "weight": 29,
             "remove": {
             },
             "add": {
               "component_groups": [
                 "minecraft:mskeleton_adult",
 "minecraft:mskeleton_name",
                 "mutant_life_2",
                 "minecraft:mskeleton_calm"
               ]
             }
           }
         ]
       },
       
       
       "minecraft:start_aa12": {
 
         "add": {
           "component_groups": [
             "minecraft:mskeleton_aa12"
           ]
         }
       },
 
       "life_3": {
         "add": {
           "component_groups": [
            "heal",
             "stunned_life_3",
             "stunned_fire"
         
           ]
         },
         "remove": {
           "component_groups": [
             "mutant_life_3",
          
             "roaring",
             "minecraft:mskeleton_angry",
             "minecraft:mskeleton_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:mskeleton_angry",
             "stage_2_roar",
             "angry_roar",
             "roaring",
             "minecraft:mskeleton_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:mskeleton_angry"
           ]
        }
     },
     
       "minecraft:end_angry_roar": {
         "remove": {
           "component_groups": [
             "angry_roar"
           ]
        },
         "add": {
           "component_groups": [
             "minecraft:mskeleton_angry"
           ]
        }
     },
 
     
     
 
       "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:mskeleton_angry",
             "minecraft:mskeleton_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:mskeleton_angry",
            "minecraft:mskeleton_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:mskeleton_calm"
           ]
         },
         "add": {
           "component_groups": [
             "minecraft:mskeleton_angry"
           ]
         }
       },
       "minecraft:on_calm": {
         "remove": {
           "component_groups": [
             "minecraft:mskeleton_angry"
           ]
         },
         "add": {
           "component_groups": [
             "minecraft:mskeleton_calm"
           ]
         }
       },
     
     
      
       "minecraft:start_roar": {
         "add": {
           "component_groups": [
             "roaring"
         
           ]
         },
         "remove": {
           "component_groups": [
             "minecraft:mskeleton_angry"
           ]
         }
       },
       
 
       
       
       "minecraft:end_roar": {
         "remove": {
           "component_groups": [
             "roaring"
           ]
         },
           
           
         "add": {
           "component_groups": [
             "minecraft:mskeleton_angry"
           ]
         }
       },
    
       "minecraft:as_baby": {
         "add": {
           "component_groups": [
                 "minecraft:mskeleton_baby",
 "minecraft:mskeleton_name",
                 "mutant_life_3",
                 "minecraft:mskeleton_calm"
           ]
         }
       },
       "minecraft:as_adult": {
         "add": {
           "component_groups": [
                 "minecraft:mskeleton_adult",
 "minecraft:mskeleton_name",
                 "mutant_life_3",
                 "minecraft:mskeleton_calm"
           ]
         }
       }     
     }
   }
 }
 