{
	"format_version": "1.17.0",
	"animation_controllers": {
		"controller.animation.shapescape_mb.yeti_boss.death": {
			"initial_state": "default",
			"states": {
				"default": {
					"transitions": [
						{
							"death": "q.health == 1"
						}
					]
				},
				"death": {
					"on_entry": ["@s death", "/playsound shapescape_mb.yeti_boss.death @a ~~~ 10 1", "/stopsound @a[r=30] shapescape_mb.yeti_boss.boulder_hit", "/stopsound @a[r=30] shapescape_mb.yeti_boss.idle", "/stopsound @a[r=30] shapescape_mb.yeti_boss.walk", "/stopsound @a[r=30] shapescape_mb.yeti_boss.sprint", "/stopsound @a[r=30] shapescape_mb.yeti_boss.hurt", "/stopsound @a[r=30] shapescape_mb.yeti_boss.attack_melee", "/stopsound @a[r=30] shapescape_mb.yeti_boss.attack_roar", "/stopsound @a[r=30] shapescape_mb.yeti_boss.attack_boulder", "/stopsound @a[r=30] shapescape_mb.yeti_boss.summoned", "/stopsound @a[r=30] shapescape_mb.yeti_boss.eat_weapon", "/stopsound @a[r=30] shapescape_mb.yeti_boss.death", "variable.death = q.life_time + 3;"],
					"transitions": [
						{
							"despawn": "(variable.death < q.life_time)"
						}
					],
					"on_exit": ["/function shapescape/mb/yeti_boss/death"]
				},
				"despawn": {
					"on_entry": ["@s despawn"]
				}
			}
		},
		"controller.animation.shapescape_mb.yeti_boss.phase_2_effects": {
			"initial_state": "default",
			"states": {
				"default": {
					"transitions": [
						{
							"phase_2": "q.mark_variant == 2"
						}
					]
				},
				"phase_2": {
					"on_entry": ["/effect @s strength 999999 0 true"]
				}
			}
		},
		"controller.animation.shapescape_mb.yeti_boss.phase_transition": {
			"initial_state": "default",
			"states": {
				"default": {
					"transitions": [
						{
							"phase_2": "(q.health < q.max_health*0.35) && q.mark_variant == 1"
						}
					]
				},
				"phase_2": {
					"on_entry": ["@s phase_2_prep", "/effect @s instant_health 1 6 true"],
					"transitions": [
						{
							"phase_2_roar_prep": "!q.is_illager_captain"
						}
					]
				},
				"phase_2_roar_prep": {
					"on_entry": ["@s phase_2_roar_prep"]
				}
			}
		},
		"controller.animation.shapescape_mb.yeti_boss.camera_shake": {
			"initial_state": "default",
			"states": {
				"default": {
					"transitions": [
						{
							"camera_shake": "q.variant == 23"
						}
					]
				},
				"camera_shake": {
					"on_entry": ["/camerashake add @a[r=15] 0.2 0.55 positional", "variable.camera_shake = q.life_time + 0.5;"],
					"transitions": [
						{
							"default": "1.0"
						}
					]
				}
			}
		},
		"controller.animation.shapescape_mb.yeti_boss.melee_attack": {
			"initial_state": "default",
			"states": {
				"default": {
					"transitions": [
						{
							"start": "1.0"
						}
					],
					"on_exit": ["@s move"]
				},
				"start": {
					"transitions": [
						{
							"melee_attack": "q.is_delayed_attacking && !q.is_sheared"
						}
					]
				},
				"melee_attack": {
					"on_entry": ["@s not_move"],
					"transitions": [
						{
							"start": "q.is_sheared"
						},
						{
							"stop_melee_attack": "!q.is_delayed_attacking && !q.is_sheared"
						}
					]
				},
				"stop_melee_attack": {
					"on_entry": ["@s move"],
					"transitions": [
						{
							"start": "1.0"
						}
					]
				}
			}
		},
		"controller.animation.shapescape_mb.yeti_boss.resist_suffocation": {
			"initial_state": "default",
			"states": {
				"default": {
					"transitions": [
						{
							"resist": "q.property('shapescape_mb:boss_class') == 'epic'"
						},
						{
							"resist": "q.property('shapescape_mb:boss_class') == 'legendary'"
						},
						{
							"resist": "q.property('shapescape_mb:boss_class') == 'impossible'"
						}
					]
				},
				"resist": {
					"on_entry": ["/effect @s water_breathing 1 0 true"],
					"transitions": [
						{
							"default": "q.state_time >= 0.9"
						}
					]
				}
			}
		}
	}
}