{
	"format_version": "1.19.0",
	"animation_controllers": {
		"controller.animation.ender_beast.attack": {
			"initial_state": "default",
			"states": {
				"default": {
					"transitions": [
						{ "left_punch" : "q.is_delayed_attacking && q.property('ldz:punch_side') == 1" },
						{ "right_punch" : "q.is_delayed_attacking && q.property('ldz:punch_side') == 2" },
						{ "cancel": "!q.is_alive" }
					]
				},
				"left_punch": {
					"on_entry": [
						"/event entity @s set_punch_side_to_2"
					],
					"animations": [
						"attack"
					],
					"transitions": [
						{ "default": "!q.is_delayed_attacking" },
						{ "cancel": "!q.is_alive" }
					]
				},
				"right_punch": {
					"on_entry": [
						"/event entity @s set_punch_side_to_1"
					],
					"animations": [
						"attack"
					],
					"transitions": [
						{ "default": "!q.is_delayed_attacking" },
						{ "cancel": "!q.is_alive" }
					]
				},
				"cancel": {
					"on_entry": [
						"/event entity @e[type=ldz:ender_beast_attack] despawn"
					]
				}
			}
		}
	}
}