{
	"format_version": "1.10.0",
	"minecraft:client_entity": {
		"description": {
			"identifier": "manalabs_zombie:glutton",
			"materials": {
				"default": "entity_alphatest"
			},
			"textures": {
				"default": "textures/manalabs/zombie/entity/glutton"
			},
			"geometry": {
				"default": "geometry.manalabs_zombie.glutton"
			},
			"animations": {
				"idle": "animation.manalabs_zombie.glutton.idle",
				"random_roar": "animation.manalabs_zombie.glutton.random_roar",
				"walk": "animation.manalabs_zombie.glutton.walk",
				"run": "animation.manalabs_zombie.glutton.run",
				"attack_whip": "animation.manalabs_zombie.glutton.attack_whip",
				"attack_grapple_left": "animation.manalabs_zombie.glutton.attack_grapple_left",
				"attack_grapple_right": "animation.manalabs_zombie.glutton.attack_grapple_right",
				"attack_pound_right": "animation.manalabs_zombie.glutton.attack_pound_right",
				"attack_pound_left": "animation.manalabs_zombie.glutton.attack_pound_left",
				"attack_swallow": "animation.manalabs_zombie.glutton.attack_swallow",
				"aggro": "animation.manalabs_zombie.glutton.aggro",
				"hit": "animation.manalabs_zombie.glutton.hit",
				"death": "animation.manalabs_zombie.glutton.death",
				"spawn": "animation.manalabs_zombie.glutton.crawl_out",
				"swallow": "animation.manalabs_zombie.glutton.swallow",

				"ac.random_idle": "controller.animation.manalabs_zombie.glutton.random_idle",
				"ac.movement": "controller.animation.manalabs_zombie.glutton.movement",
				"ac.attack": "controller.animation.manalabs_zombie.glutton.attack",
				"ac.death": "controller.animation.manalabs_zombie.glutton.death"
			},
			"scripts": {
				"initialize": [
					"v.entity_health = query.health;",
					"v.idle_delay = math.random(10, 30) + q.life_time;",
					"variable.playerdistance = 1;",
					"v.random_pull_attack = math.random(0, 100);",
					"v.random_pound_attack = math.random(0, 100);"
				],
				"animate": [
					{ "idle": "q.health > 1" },
					{ "ac.random_idle": "q.health > 1" },
					{ "ac.movement": "q.health > 1" },
					{ "ac.attack": "q.health > 1" },
					{ "spawn": "q.property('manalabs_zombie:digging_out')" },
					"ac.death"
				]
			},
			"sound_effects": {
				"after_swallowing": "manalabs_zombie.glutton.after_swallowing",
				"angry": "manalabs_zombie.glutton.angry",
				"tongue_whip": "manalabs_zombie.glutton.tongue_whip",
				"attack_grapple": "manalabs_zombie.glutton.attack_grapple",
				"attack_pound": "manalabs_zombie.glutton.attack_pound",
				"attack_swallow": "manalabs_zombie.glutton.attack_swallow"
			},
			"render_controllers": ["controller.render.default"],
			"spawn_egg": {
				"base_color": "#288483",
				"overlay_color": "#2B7135"
			}
		}
	}
}
