{
    "format_version": "1.10.0",
    "animation_controllers": {
		"controller.animation.fares_portal.morph_check": {
			"initial_state": "default",
			"states": {
				"default": {
					"transitions": [
						{ "intro_version": "q.property('ldz:intro_version') > 0" },
						{ "inactive": "q.property('ldz:intro_version') == 0 && q.property('ldz:portal_swirl') == false" },
						{ "active": "q.property('ldz:intro_version') == 0 && q.property('ldz:portal_swirl') == true" }
					]
				},
				"intro_version": { // should be intro version 3
					"animations": [
						"ctrl.detect_ender_lord"
					],
					"transitions": [
						{ "intro_version_delay": "q.property('ldz:intro_version') == 2" }
					]
				},
				"intro_version_delay": { // should be intro version 2
					"animations": [
						"intro_version_delay"
					],
					"transitions": [
						{ "intro_version_power_down": "q.all_animations_finished" }
					],
					"on_exit": [
						"/function fares_portal/intro_deactivate"
					]
				},
				"intro_version_power_down": { // should be intro version 1
					"animations": [
						"power_down_delay"
					],
					"transitions": [
						{ "inactive": "q.all_animations_finished" }
					],
					"on_exit": [
						"/execute as @p run function tutorial/stage_3",
						"@s set_intro_version_to_0"
					]
				},
				"inactive": {
					"transitions": [
						{ "delay": "q.property('ldz:beast') && q.property('ldz:charger') && q.property('ldz:chef') && q.property('ldz:chiller') && q.property('ldz:gardener') && q.property('ldz:hydro') && q.property('ldz:mystic') && q.property('ldz:scorcher') && q.property('ldz:scourge') && q.property('ldz:troll') && q.property('ldz:vanilla') && q.property('ldz:wraith')" }
					]
				},
				"delay": {
					"animations": [
						"delay_1"
					],
					"transitions": [
						{ "activate": "q.all_animations_finished" }
					]
				},
				"activate": {
					"on_entry": [
						"@s set_portal_swirl_to_true"
					],
					"animations": [
						"delay_2"
					],
					"transitions": [
						{ "active": "q.all_animations_finished" }
					]
				},
				"active": {
					"on_entry": [
						"/function fares_portal/activate"
					],
					"animations": [
						"ctrl.detect_player"
					],
					"transitions": [
						{ "inactive": "q.property('ldz:portal_swirl') == false" }
					]
				}
			}
		},
		"controller.animation.fares_portal.detect_ender_lord": {
			"initial_state": "default",
			"states": {
				"default": {
					"on_entry": [
						"/function fares_portal/detect_ender_lord"
					],
					"transitions": [
						{ "loop": "true" }
					]
				},
				"loop": {
					"on_entry": [
						"/function fares_portal/detect_ender_lord"
					],
					"transitions": [
						{ "default": "true" }
					]
				}
			}
		},
		"controller.animation.fares_portal.detect_player": {
			"initial_state": "default",
			"states": {
				"default": {
					"on_entry": [
						"/function fares_portal/detect_player"
					],
					"transitions": [
						{ "loop": "true" }
					]
				},
				"loop": {
					"on_entry": [
						"/function fares_portal/detect_player"
					],
					"transitions": [
						{ "default": "true" }
					]
				}
			}
		}
    }
}