{
	"format_version": "1.10.0",
	"minecraft:client_entity": {
		"description": {
			"identifier": "manalabs_zombie:spitter",
			"materials": {
				"default": "entity_alphatest",
				"emissive": "entity_emissive_alpha"
			},
			"textures": {
				"default": "textures/manalabs/zombie/entity/spitter_base",
				"glow": "textures/manalabs/zombie/entity/spitter_glow"
			},
			"geometry": {
				"default": "geometry.manalabs_zombie.spitter"
			},
			"animations": {
				"idle": "animation.manalabs_zombie.spitter.idle",
				"random": "animation.manalabs_zombie.spitter.random",
				"walk": "animation.manalabs_zombie.spitter.walk",
				"run": "animation.manalabs_zombie.spitter.run",
				"attack_swipe_right": "animation.manalabs_zombie.spitter.attack_swipe_right",
				"attack_swipe_left": "animation.manalabs_zombie.spitter.attack_swipe_left",
				"attack_spit": "animation.manalabs_zombie.spitter.attack_spit",
				"attack_screech": "animation.manalabs_zombie.spitter.attack_screech",
				"aggro": "animation.manalabs_zombie.spitter.aggro",
				"hit_right": "animation.manalabs_zombie.spitter.hit_right",
				"hit_left": "animation.manalabs_zombie.spitter.hit_left",
				"death": "animation.manalabs_zombie.spitter.death",
				"spawn": "animation.manalabs_zombie.spitter.crawl_out",

				"ac.random_idle": "controller.animation.manalabs_zombie.spitter.random_idle",
				"ac.movement": "controller.animation.manalabs_zombie.spitter.movement",
				"ac.attack": "controller.animation.manalabs_zombie.spitter.attack",
				"ac.death": "controller.animation.manalabs_zombie.spitter.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"
				]
			},
			"particle_effects": {
				"death": "manalabs_zombie:spitter_death"
			},
			"render_controllers": [
				"controller.render.manalabs_zombie.spitter.base",
				"controller.render.manalabs_zombie.spitter.glow"
			],
			"sound_effects": {
				"attack": "manalabs_zombie.spitter.attack",
				"random":"manalabs_zombie.spitter.random",
				"death": "manalabs_zombie.spitter.death",
				"death_fall": "manalabs_zombie.spitter.death_fall",
				"gulper_shot": "manalabs_zombie.spitter.gulper_shot",				
				"spit_land": "manalabs_zombie.spitter.spit_land"

			},
			"spawn_egg": {
				"base_color": "#288483",
				"overlay_color": "#2B7135"
			}
		}
	}
}
