{
  "format_version": "1.12.0",
  "minecraft:entity": {
    "description": {
      "identifier": "mutant:mskeleton_death",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false
    },
    
	
    "component_groups": {
      "despawn": {
        "minecraft:despawn": {
        }       
     },
     "skele_death": {
    	"minecraft:spawn_entity": [
        {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "skele_head",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "skele_body",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "skele_body2",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "skele_topbody",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "skele_topbody2",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "skele_topbody3",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "skele_neck",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 2,
        "single_use": true,
        "spawn_event": "skele_arm",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 2,
        "single_use": true,
        "spawn_event": "skele_leg",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 3,
        "single_use": true,
        "spawn_event": "skele_topbody_bones",
        "spawn_entity": "mutant:mskeleton_bones"
      }
      ]  
    },
    "wither_death": {
      "minecraft:spawn_entity": [
        {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "wither_head",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "wither_body",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "wither_body2",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "wither_topbody",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "wither_topbody2",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "wither_topbody3",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "wither_neck",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 2,
        "single_use": true,
        "spawn_event": "wither_arm",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 2,
        "single_use": true,
        "spawn_event": "wither_leg",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 3,
        "single_use": true,
        "spawn_event": "wither_topbody_bones",
        "spawn_entity": "mutant:mskeleton_bones"
      }
      ]       
    },
    "stray_death": {
      "minecraft:spawn_entity": [
        {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "stray_head",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "stray_body",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "stray_body2",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "stray_topbody",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "stray_topbody2",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "stray_topbody3",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 1,
        "single_use": true,
        "spawn_event": "stray_neck",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 2,
        "single_use": true,
        "spawn_event": "stray_arm",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 2,
        "single_use": true,
        "spawn_event": "stray_leg",
        "spawn_entity": "mutant:mskeleton_bones"
      },
      {
        "min_wait_time": 0,
        "max_wait_time": 0,
        "num_to_spawn": 3,
        "single_use": true,
        "spawn_event": "stray_topbody_bones",
        "spawn_entity": "mutant:mskeleton_bones"
      }
      ]     
    }
	},
	
    "components": {
	
      "minecraft:damage_sensor": [
	    {
          "cause": "all",
          "deals_damage": false
        }
	  ],

      "minecraft:behavior.knockback_roar": {
        "priority": 1,
        "duration": 0.3,
        "attack_time": 0.1,
        "knockback_damage": 17,
        "knockback_strength": 1,
        "knockback_range": 6,
        "knockback_filters": {
		  "all_of": [
		    { "test": "is_family", "subject": "other", "operator": "!=", "value": "mutantundead" }
		  ]
        },
        "on_roar_end": {
          "event": "minecraft:event_despawn"
        },
        "damage_filters": {
		  "all_of": [
		    { "test": "is_family", "subject": "other",  "value": "player" }
		  ]
        }
      },
      "minecraft:knockback_resistance": {
        "value": 99.0
      },
      "minecraft:collision_box": {
        "width": 0.25,
        "height": 0.25
      }
    },
	
    "events": {
      "minecraft:event_despawn": {
        "add": {
          "component_groups": [
                "despawn"
          ]
        }
      },
      "skele_bones": {
        "add": {
          "component_groups": [
                "skele_death"
          ]
        }
      },
      "wither_bones": {
        "add": {
          "component_groups": [
                "wither_death"
          ]
        }
      },
      "stray_bones": {
        "add": {
          "component_groups": [
                "stray_death"
          ]
        }
      }           
    }
  }
}
  