{
	"format_version": "1.10.0",
	"minecraft:client_entity": {
		"description": {
			"identifier": "manalabs_zombie:demolisher",
			"materials": {
				"default": "entity_alphatest"
			},
			"textures": {
				"default": "textures/manalabs/zombie/entity/demolisher"
			},
			"geometry": {
				"default": "geometry.manalabs_zombie.demolisher"
			},
			"animations": {
				"idle": "animation.manalabs_zombie.demolisher.idle",
				"random_roll_arm": "animation.manalabs_zombie.demolisher.random_roll_arm",
				"random_roll_neck": "animation.manalabs_zombie.demolisher.random_roll_neck",
				"walk": "animation.manalabs_zombie.demolisher.walk",
				"run": "animation.manalabs_zombie.demolisher.run",
				"aggro": "animation.manalabs_zombie.demolisher.aggro",
				"attack_jump": "animation.manalabs_zombie.demolisher.attack_jump",
				"attack_swipe": "animation.manalabs_zombie.demolisher.attack_swipe",
				"attack_smash": "animation.manalabs_zombie.demolisher.attack_smash",
				"attack_charge_full": "animation.manalabs_zombie.demolisher.attack_charge_full",
				"attack_charge_start": "animation.manalabs_zombie.demolisher.attack_charge_start",
				"attack_charge_loop": "animation.manalabs_zombie.demolisher.attack_charge_loop",
				"attack_charge_end": "animation.manalabs_zombie.demolisher.attack_charge_end",
				"hit": "animation.manalabs_zombie.demolisher.hit",
				"death": "animation.manalabs_zombie.demolisher.death",
				"spawn": "animation.manalabs_zombie.demolisher.crawl_out",

				"ac.movement": "controller.animation.manalabs_zombie.demolisher.movement",
				"ac.idle": "controller.animation.manalabs_zombie.demolisher.idle",
				"ac.hit": "controller.animation.manalabs_zombie.demolisher.hurt",
				"ac.attack": "controller.animation.manalabs_zombie.demolisher.attack",
				"ac.death": "controller.animation.manalabs_zombie.demolisher.death"
			},
			"scripts": {
				"pre_animation": [
					"v.idle_delay = math.random(10, 30) + q.life_time;",
					"v.choose_attack = math.random(0, 100);",
					"v.prev_health = q.health;"
				],
				"animate": [
					{ "idle": "q.health > 1" },
					{ "ac.movement": "!q.is_charging && q.health > 1" },
					{ "ac.idle": "q.ground_speed < 0.1 && q.health > 1" },
					{ "ac.hit": "q.health > 1" },
					{ "ac.attack": "q.health > 1" },
					{ "spawn": "q.property('manalabs_zombie:digging_out')" },
					"ac.death"
				]
			},
			"render_controllers": ["controller.render.default"],
			"sound_effects": {
				"attack": "manalabs_zombie.demolisher.attack",
				"roar": "manalabs_zombie.demolisher.roar",
				"small_roar": "manalabs_zombie.demolisher.small_roar",
				"step": "manalabs_zombie.demolisher.step",
				"heavy_step": "manalabs_zombie.demolisher.heavy_step",
				"attack_2_and_death_fall": "manalabs_zombie.demolisher.attack_2_and_death_fall"
			},
			"spawn_egg": {
				"base_color": "#288483",
				"overlay_color": "#2B7135"
			}
		}
	}
}
