{
	"format_version": "1.10.0",
	"minecraft:client_entity": {
		"description": {
			"identifier": "manalabs_zombie:crawler",
			"materials": {
				"default": "entity_alphatest"
			},
			"textures": {
				"default": "textures/manalabs/zombie/entity/crawler"
			},
			"geometry": {
				"default": "geometry.manalabs_zombie.crawler"
			},
			"animations": {
				// Animations
				"idle": "animation.manalabs_zombie.crawler.idle",
				"random_bite": "animation.manalabs_zombie.crawler.random_bite",
				"random_shake": "animation.manalabs_zombie.crawler.random_shake",
				"random_look": "animation.manalabs_zombie.crawler.random_look",
				"aggro": "animation.manalabs_zombie.crawler.aggro",
				"walk": "animation.manalabs_zombie.crawler.walk",
				"run": "animation.manalabs_zombie.crawler.run",
				"climb": "animation.manalabs_zombie.crawler.climb",
				"hit1": "animation.manalabs_zombie.crawler.hit1",
				"hit2": "animation.manalabs_zombie.crawler.hit2",
				"attack_slash_left": "animation.manalabs_zombie.crawler.attack_slash_left",
				"attack_slash_right": "animation.manalabs_zombie.crawler.attack_slash_right",
				"attack_lunge": "animation.manalabs_zombie.crawler.attack_lunge",
				"death": "animation.manalabs_zombie.crawler.death",
				"spawn": "animation.manalabs_zombie.crawler.crawl_out",
				// Animation controllers
				"ac.movement": "controller.animation.manalabs_zombie.crawler.movement",
				"ac.attack": "controller.animation.manalabs_zombie.crawler.attack",
				"ac.idle": "controller.animation.manalabs_zombie.crawler.idle",
				"ac.hurt": "controller.animation.manalabs_zombie.crawler.hurt",
				"ac.aggro": "controller.animation.manalabs_zombie.crawler.aggro",
				"ac.death": "controller.animation.manalabs_zombie.crawler.death"
			},
			"scripts": {
				"pre_animation": [
					"v.idle_delay = math.random(10, 30) + q.life_time;",
					"v.choose_idle = math.random(0, 100);",
					"v.choose_attack = math.random(0, 100);"
				],
				"animate": [
					{ "idle": "q.health > 1" },
					{ "ac.movement": "q.health > 1" },
					{ "ac.attack": "q.health > 1" },
					{ "ac.idle": "q.health > 1 && q.ground_speed < 0.1" },
					{ "ac.hurt": "q.health > 1" },
					{ "ac.aggro": "q.health > 1" },
					{ "spawn": "q.property('manalabs_zombie:digging_out')" },
					"ac.death"
				]
			},
			"sound_effects": {
				"anger": "manalabs_zombie.crawler.anger",
				"attack": "manalabs_zombie.crawler.attack",
				"attack_2": "manalabs_zombie.crawler.attack_2"
			},
			"render_controllers": ["controller.render.default"],
			"spawn_egg": {
				"base_color": "#288483",
				"overlay_color": "#2B7135"
			}
		}
	}
}
