{
	"format_version": "1.19.0",
	"animation_controllers": {
		"controller.animation.ender_troll.state": {
			"initial_state": "default",
			"states": {
				"default": {
					"transitions": [
						{ "dead": "!q.is_alive" },
						{ "player_in_proximity": "q.is_alive && q.property('ldz:in_player_proximity')" }
					]
				},
				"player_in_proximity": {
					"animations": [
						"roar"
					],
					"transitions": [
						{ "dead": "!q.is_alive" },
						{ "default": "q.is_alive && q.all_animations_finished && !q.property('ldz:in_player_proximity')" }
					]
				},
				"dead": {
					"on_entry": [
						"@s remove_roaring",
						"/tag @e[type=ldz:troll_knockback,family=ender_troll_attack,r=8] add benign",
						"/event entity @e[type=ldz:troll_knockback,family=ender_troll_attack,r=8] despawn",
						"/teleport @e[type=ldz:troll_knockback,family=ender_troll_attack,r=8] ~ ~-64 ~"
					]
				}
			}
		}
	}
}