{
	"format_version": "1.10.0",
	"animation_controllers": {
		"controller.animation.manalabs_zombie.glutton.death": {
			"initial_state": "default",
			"states": {
				"default": {
					"transitions": [
						{
							"last_dmg_player": "q.health == 1 && q.property('manalabs_zombie:last_dmg_player')"
						},
						{
							"death": "q.health == 1"
						}
					]
				},
				"last_dmg_player": {
					"on_entry": [
						"/tag @s add MANALABS_LAST_DMG_PLAYER"
					],
					"transitions": [
						{
							"death": "1.0"
						}
					]
				},
				"death": {
					"on_entry": [
						"v.death_anim_time = q.life_time;",
						"@s manalabs_zombie:dead",
						"/scriptevent manalabs_zombie:glutton_death"
					],
					"transitions": [
						{
							"despawn": "q.life_time - v.death_anim_time > 1.35"
						}
					]
				},
				"despawn": {
					"on_entry": [
						"/execute as @s[tag=MANALABS_LAST_DMG_PLAYER] run summon manalabs_zombie:xp_entity ~ ~ ~ ~ ~ manalabs_zombie:xp_value_20",
						"/execute as @s[tag=MANALABS_LAST_DMG_PLAYER] run loot spawn ~ ~ ~ loot \"manalabs/zombie/glutton.loot\"",
						"@s manalabs_zombie:despawn"
					]
				}
			}
		},
		"controller.animation.manalabs_zombie.glutton.pull_in_attack": {
			"initial_state": "default",
			"states": {
				"default": {
					"transitions": [
						{
							"pull_in": "q.variant == 2 && q.is_delayed_attacking"
						}
					]
				},
				"pull_in": {
					"on_entry": [
						"v.pull_in_attack_cooldown = q.life_time;",
						"/scriptevent manalabs_zombie:glutton_pull_in_attack"
					],
					"transitions": [
						{
							"default": "q.life_time - v.pull_in_attack_cooldown > 1"
						}
					]
				}
			}
		}
	}
}
