{
	"format_version": "1.10.0",
	"animation_controllers": {
		"controller.animation.shapescape_mb.piglin_boss.phase_transition": {
			"states": {
				"default": {
					"transitions": [
						{
							"death": "q.is_sheared"
						},
						{
							"phase_1": "q.mark_variant == 1 || q.is_baby"
						},
						{
							"phase_2": "q.mark_variant == 2"
						},
						{
							"phase_3": "q.mark_variant == 3"
						},
						{
							"phase_4": "q.mark_variant == 4"
						}
					],
					"blend_transition": 0.25
				},
				"phase_transition": {
					"animations": [
						// Torch 1 pick
						{
							"torch1_pick": "q.mark_variant == 1"
						},
						{
							"torch2_hand_scale": "q.mark_variant == 1"
						},
						{
							"torch3_hand_scale": "q.mark_variant == 1"
						},
						// Torch 2 pick
						{
							"torch2_pick": "q.mark_variant == 2"
						},
						{
							"torch1_hand_scale": "q.mark_variant == 2"
						},
						{
							"torch3_hand_scale": "q.mark_variant == 2"
						},
						{
							"torch1_scale": "q.mark_variant == 2"
						},
						// Torch 3 pick
						{
							"torch3_pick": "q.mark_variant == 3"
						},
						{
							"torch1_hand_scale": "q.mark_variant == 3"
						},
						{
							"torch2_hand_scale": "q.mark_variant == 3"
						},
						{
							"torch1_scale": "q.mark_variant == 3"
						},
						{
							"torch2_scale": "q.mark_variant == 3"
						}
					],
					"transitions": [
						{
							"death": "q.is_sheared"
						},
						{
							"phase_1": "q.mark_variant == 1 && q.variant != 100"
						},
						{
							"phase_2": "q.mark_variant == 2 && q.variant != 100"
						},
						{
							"phase_3": "q.mark_variant == 3 && q.variant != 100"
						},
						{
							"phase_4": "q.mark_variant == 4 && q.variant != 100"
						}
					]
				},
				"phase_1": {
					"animations": [
						"ac.phase_1_3",
						"torch1_hand_scale",
						"torch2_hand_scale",
						"torch3_hand_scale"
					],
					"transitions": [
						{
							"death": "q.is_sheared"
						},
						{
							"phase_transition": "q.variant == 100 && q.is_charged"
						}
					],
					"blend_transition": 0.25
				},
				"phase_2": {
					"animations": [
						"ac.phase_1_3",
						"torch1_scale",
						"torch1_hand_scale",
						"torch2_hand_scale",
						"torch3_hand_scale"
					],
					"transitions": [
						{
							"death": "q.is_sheared"
						},
						{
							"phase_transition": "q.variant == 100 && q.is_charged"
						}
					],
					"blend_transition": 0.25
				},
				"phase_3": {
					"animations": [
						"ac.phase_1_3",
						"torch1_scale",
						"torch2_scale",
						"torch1_hand_scale",
						"torch2_hand_scale",
						"torch3_hand_scale"
					],
					"transitions": [
						{
							"death": "q.is_sheared"
						},
						{
							"phase_transition": "q.variant == 100 && q.is_charged"
						}
					],
					"blend_transition": 0.25
				},
				"phase_4": {
					"animations": [
						"ac.phase_4",
						"torch1_scale",
						"torch2_scale",
						"torch3_scale",
						"torch1_hand_scale",
						"torch2_hand_scale"
					],
					"particle_effects": [
						{
							"effect": "flame_glow",
							"locator": "torch3_hand"
						}
					],
					"transitions": [
						{
							"death": "q.is_sheared"
						},
						{
							"phase_transition": "q.variant == 100 && q.is_charged"
						}
					],
					"blend_transition": 0.25
				},
				"death": {
					"animations": [
						"death",
						"torch1_scale",
						"torch2_scale",
						"torch3_scale",
						"torch1_hand_scale",
						"torch2_hand_scale"
					]
				}
			}
		},
		"controller.animation.shapescape_mb.piglin_boss.walk": {
			"states": {
				"default": {
					"transitions": [
						{
							"walk": "q.ground_speed > 0.1"
						}
					],
					"blend_transition": 0.2
				},
				"walk": {
					"animations": ["walk"],
					"transitions": [
						{
							"default": "q.ground_speed < 0.1"
						}
					],
					"blend_transition": 0.2
				}
			}
		},
		"controller.animation.shapescape_mb.piglin_boss.phase_1_3": {
			"states": {
				"default": {
					"transitions": [
						{
							"melee_sword": "q.is_delayed_attacking"
						}
					],
					"blend_transition": 0.2
				},
				"melee_sword": {
					"animations": ["melee_sword"],
					"transitions": [
						{
							"default": "!q.is_delayed_attacking && q.all_animations_finished"
						}
					],
					"blend_transition": 0.3
				}
			}
		},
		"controller.animation.shapescape_mb.piglin_boss.phase_4": {
			"states": {
				"default": {
					"transitions": [
						{
							"melee_sword": "q.is_delayed_attacking && q.variant == 41"
						},
						{
							"melee_torch": "q.is_delayed_attacking && q.variant == 42"
						}
					],
					"blend_transition": 0.2
				},
				"melee_sword": {
					"animations": ["melee_sword"],
					"transitions": [
						{
							"default": "!q.is_delayed_attacking && q.all_animations_finished"
						},
						{
							"melee_torch": "q.is_delayed_attacking && q.variant == 42"
						}
					],
					"blend_transition": 0.2
				},
				"melee_torch": {
					"animations": ["melee_torch"],
					"transitions": [
						{
							"default": "!q.is_delayed_attacking && q.all_animations_finished"
						},
						{
							"melee_sword": "q.is_delayed_attacking && q.variant == 41"
						}
					],
					"blend_transition": 0.2
				}
			}
		},
		"controller.animation.shapescape_mb.piglin_boss.torch_particles": {
			"states": {
				"default": {
					"particle_effects": [
						{
							"effect": "flame_glow",
							"locator": "torch1"
						},
						{
							"effect": "flame_glow",
							"locator": "torch2"
						},
						{
							"effect": "flame_glow",
							"locator": "torch3"
						},
						{
							"effect": "flame_glow",
							"locator": "torch4"
						},
						{
							"effect": "flame_glow",
							"locator": "torch5"
						}
					]
				}
			}
		},
		"controller.animation.shapescape_mb.piglin_boss.breath_particles": {
			"states": {
				"default": {
					"particle_effects": [
						{
							"effect": "breath",
							"locator": "nose_1"
						},
						{
							"effect": "breath",
							"locator": "nose_2"
						}
					]
				}
			}
		}
	}
}
