{
	"format_version": "1.10.0",
	"animation_controllers": {
		"controller.animation.shapescape_mb.sculkpion_boss.special_attack": {
			"initial_state": "default",
			"states": {
				"default": {
					"transitions": [
						{
							"spawn": "q.property('shapescape_mb:sculkpion_state') == 'spawn'"
						},
						{
							"ready": "q.property('shapescape_mb:sculkpion_state') == 'ready'"
						},
						{
							"smash": "q.property('shapescape_mb:sculkpion_state') == 'smash'"
						},
						{
							"projectile": "q.property('shapescape_mb:sculkpion_state') == 'projectile'"
						},
						{
							"summon": "q.property('shapescape_mb:sculkpion_state') == 'summon'"
						},
						{
							"disabled": "q.property('shapescape_mb:sculkpion_state') == 'disabled'"
						},
						{
							"death": "q.property('shapescape_mb:sculkpion_state') == 'death'"
						}
					]
				},
				"spawn": {
					"on_entry": ["/playsound shapescape_mb.sculkpion_boss.emerge @a ~ ~ ~ 1 1 0.3"],
					"transitions": [
						{
							"default": "q.property('shapescape_mb:sculkpion_state') != 'spawn'"
						}
					]
				},
				"disabled": {
					"transitions": [
						{
							"default": "q.property('shapescape_mb:sculkpion_state') != 'disabled'"
						}
					]
				},
				"ready": {
					"on_entry": ["v.special_attack_delay = math.random(4, 5);", "@s shapescape_mb:special_attack_ready"],
					"transitions": [
						{
							"ready_select_attack": "q.state_time >= v.special_attack_delay && !q.is_delayed_attacking"
						},
						{
							"default": "q.property('shapescape_mb:sculkpion_state') != 'ready'"
						}
					]
				},
				"ready_select_attack": {
					"on_entry": ["/scriptevent shapescape_mb:sculkpion_boss_special_attack"],
					"transitions": [
						{
							"smash": "q.property('shapescape_mb:sculkpion_state') == 'smash'"
						},
						{
							"projectile": "q.property('shapescape_mb:sculkpion_state') == 'projectile'"
						},
						{
							"summon": "q.property('shapescape_mb:sculkpion_state') == 'summon'"
						},
						{
							"ready_retry_select_attack": "q.state_time >= 1.0"
						},
						{
							"default": "q.property('shapescape_mb:sculkpion_state') != 'ready'"
						}
					]
				},
				"ready_retry_select_attack": {
					"transitions": [
						{
							"default": "q.property('shapescape_mb:sculkpion_state') != 'ready'"
						},
						{
							"ready_select_attack": "1.0"
						}
					]
				},
				"smash": {
					"on_entry": ["v.special_attack_delay = 1.5;", "@s shapescape_mb:special_attack_smash"],
					"transitions": [
						{
							"smash_end": "q.state_time >= v.special_attack_delay"
						},
						{
							"default": "q.property('shapescape_mb:sculkpion_state') != 'smash'"
						}
					]
				},
				"smash_end": {
					"on_entry": ["@s shapescape_mb:special_attack_ready"],
					"transitions": [
						{
							"default": "1.0"
						}
					]
				},
				"projectile": {
					"on_entry": ["v.special_attack_delay = 1.1667;", "@s shapescape_mb:special_attack_projectile"],
					"transitions": [
						{
							"projectile_end": "q.state_time >= v.special_attack_delay"
						},
						{
							"default": "q.property('shapescape_mb:sculkpion_state') != 'projectile'"
						}
					]
				},
				"projectile_end": {
					"on_entry": ["@s shapescape_mb:special_attack_ready"],
					"transitions": [
						{
							"default": "1.0"
						}
					]
				},
				"summon": {
					"on_entry": ["v.special_attack_delay = 1.75;", "@s shapescape_mb:special_attack_summon"],
					"transitions": [
						{
							"summon_end": "q.state_time >= v.special_attack_delay"
						},
						{
							"default": "q.property('shapescape_mb:sculkpion_state') != 'summon'"
						}
					]
				},
				"summon_end": {
					"on_entry": ["@s shapescape_mb:special_attack_ready"],
					"transitions": [
						{
							"default": "1.0"
						}
					]
				},
				"death": {
					"transitions": [
						{
							"default": "q.property('shapescape_mb:sculkpion_state') != 'death'"
						}
					]
				}
			}
		},
		"controller.animation.shapescape_mb.sculkpion_boss.death": {
			"initial_state": "default",
			"states": {
				"default": {
					"transitions": [
						{
							"dying": "q.health <= 1"
						}
					]
				},
				"dying": {
					"on_entry": ["@s shapescape_mb:death", "/scriptevent shapescape_mb:sculkpion_boss_cancel_special_attack", "/playsound shapescape_mb.sculkpion_boss.death @a ~ ~ ~ 1 1 0.3"],
					"transitions": [
						{
							"death": "q.state_time >= 2.5417"
						}
					]
				},
				"death": {
					"transitions": [
						{
							"despawn": "1.0"
						}
					],
					"on_exit": ["/function shapescape/mb/sculkpion_boss/death"]
				},
				"despawn": {
					"on_entry": ["@s shapescape_mb:despawn"]
				}
			}
		},
		"controller.animation.shapescape_mb.sculkpion_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"
						}
					]
				}
			}
		}
	}
}