{
	"format_version": "1.10.0",
	"animation_controllers": {
		"controller.animation.manalabs_scp.scp049.killing_mobs": {
			"initial_state": "init",
			"states": {
				"init": {
					"transitions": [
						{
							"default": "1.0"
						}
					]
				},
				"default": {
					"transitions": [
						{
							"killng_mobs": "query.has_target"
						}
					]
				},
				"killng_mobs": {
					"animations": ["check_for_mobs"],
					"transitions": [
						{
							"stay_in_place": "query.property('manalabs_scp:killing_mob_process') == 2"
						}
					]
				},
				"stay_in_place": {
					"on_entry": ["/effect @s slowness 2 10", "/playanimation @s attack_summon", "/playsound manalabs_scp.scp049_summon @a ~ ~ ~", "/tp @s facing @e[tag=manalabs_scp_nearest_killable_mob,c=1]", "variable.kill_mob = query.life_time + 1.3;"],
					"transitions": [
						{
							"kill_mob": "(variable.kill_mob < query.life_time)"
						}
					]
				},
				"kill_mob": {
					"on_entry": ["/tp @s facing @e[tag=manalabs_scp_nearest_killable_mob,c=1]", "/execute at @e[tag=manalabs_scp_nearest_killable_mob,c=1,type=camel] run summon manalabs_scp:plague_camel_049 ~ ~ ~", "/execute at @e[tag=manalabs_scp_nearest_killable_mob,c=1,type=chicken] run summon manalabs_scp:plague_chicken_049 ~ ~ ~", "/execute at @e[tag=manalabs_scp_nearest_killable_mob,c=1,type=cow] run summon manalabs_scp:plague_cow_049 ~ ~ ~", "/execute at @e[tag=manalabs_scp_nearest_killable_mob,c=1,type=creeper] run summon manalabs_scp:plague_creeper_049 ~ ~ ~", "/execute at @e[tag=manalabs_scp_nearest_killable_mob,c=1,type=donkey] run summon manalabs_scp:plague_donkey_049 ~ ~ ~", "/execute at @e[tag=manalabs_scp_nearest_killable_mob,c=1,type=horse] run summon manalabs_scp:plague_horse_049 ~ ~ ~", "/execute at @e[tag=manalabs_scp_nearest_killable_mob,c=1,type=pig] run summon manalabs_scp:plague_pig_049 ~ ~ ~", "/execute at @e[tag=manalabs_scp_nearest_killable_mob,c=1,type=sheep] run summon manalabs_scp:plague_sheep_049 ~ ~ ~", "/execute at @e[tag=manalabs_scp_nearest_killable_mob,c=1,type=skeleton] run summon manalabs_scp:plague_skeleton_049 ~ ~ ~", "/execute at @e[tag=manalabs_scp_nearest_killable_mob,c=1,type=spider] run summon manalabs_scp:plague_spider_049 ~ ~ ~", "/execute at @e[tag=manalabs_scp_nearest_killable_mob,c=1,type=zombie] run summon manalabs_scp:plague_zombie_049 ~ ~ ~", "/kill @e[tag=manalabs_scp_nearest_killable_mob,c=1]", "@s reset_kill_nearest_mob", "variable.killed_mob = query.life_time + 0.5;"],
					"transitions": [
						{
							"default": "(variable.killed_mob < query.life_time)"
						}
					]
				}
			}
		},
		"controller.animation.manalabs_scp.scp049.spawn_minions": {
			"states": {
				"default": {
					"transitions": [
						{
							"desert": "query.property('manalabs_scp:spawn_minions') == 1"
						},
						{
							"other": "query.property('manalabs_scp:spawn_minions') == 2"
						}
					]
				},
				"desert": {
					"on_entry": ["/function manalabs/scp/scp049/summon_minion_desert", "/scoreboard players random @s manalabs_scp_rng 0 99", "/execute if score @s manalabs_scp_rng matches 0..35 run function manalabs/scp/scp049/summon_minion_desert", "/scoreboard players random @s manalabs_scp_rng 0 99", "/execute if score @s manalabs_scp_rng matches 0..35 run function manalabs/scp/scp049/summon_minion_desert", "/execute as @e[family=manalabs_scp_scp049_plague,r=2] run spreadplayers ~ ~ 3 6 @s", "@s spawned_minions"]
				},
				"other": {
					"on_entry": ["/function manalabs/scp/scp049/summon_minion", "/scoreboard players random @s manalabs_scp_rng 0 99", "/execute if score @s manalabs_scp_rng matches 0..35 run function manalabs/scp/scp049/summon_minion", "/scoreboard players random @s manalabs_scp_rng 0 99", "/execute if score @s manalabs_scp_rng matches 0..35 run function manalabs/scp/scp049/summon_minion", "/execute as @e[family=manalabs_scp_scp049_plague,r=2] run spreadplayers ~ ~ 3 6 @s", "@s spawned_minions"]
				}
			}
		},
		"controller.animation.manalabs_scp.scp049.spawn_controll": {
			"initial_state": "init",
			"states": {
				"init": {
					"transitions": [
						{
							"default": "1.0"
						}
					]
				},
				"default": {
					"on_entry": ["/execute if entity @e[type=manalabs_scp:scp049,rm=1,r=60] run event entity @s despawn"]
				}
			}
		}
	}
}