{
    "format_version": "1.10.0",
    "animation_controllers": {
		"controller.animation.magic_barrier.fx": {
			"states": {
				"default": {
					"transitions": [
						{ "appear": "q.property('ldz:barrier') == 'appear'" },
						{ "disappear": "q.property('ldz:barrier') == 'disappear'" }
					]
				},
				"appear": {
					"on_entry": [
						"/playsound entity.magic_barrier.spawn @a ~ ~ ~"
					],
					"animations": [
						"animation_delay"
					],
					"transitions": [
						{ "default": "q.all_animations_finished" }
					],
					"on_exit": [
						"@s set_barrier_to_default"
					]
				},
				"disappear": {
					"on_entry": [
						"/playsound entity.magic_barrier.spawn @a ~ ~ ~"
					],
					"animations": [
						"animation_delay"
					],
					"transitions": [
						{ "despawn": "q.all_animations_finished" }
					],
					"on_exit": [
						"@s despawn"
					]
				},
				"despawn": {
					"on_entry": [
						"@s despawn"
					]
				}
			}
		}
    }
}