{
	"format_version": "1.10.0",
	"minecraft:client_entity": {
		"description": {
			"identifier": "manalabs_zombie:hitch_hiker",
			"materials": {
				"default": "entity_alphatest"
			},
			"textures": {
				"default": "textures/manalabs/zombie/entity/hitch_hiker"
			},
			"geometry": {
				"default": "geometry.manalabs_zombie.hitch_hiker"
			},
			"animations": {
				"idle": "animation.manalabs_zombie.hitch_hiker.idle",
				"random_yawn": "animation.manalabs_zombie.hitch_hiker.random_yawn",
				"walk": "animation.manalabs_zombie.hitch_hiker.walk",
				"run": "animation.manalabs_zombie.hitch_hiker.run",
				"attack_slash_left": "animation.manalabs_zombie.hitch_hiker.attack_slash_left",
				"attack_slash_right": "animation.manalabs_zombie.hitch_hiker.attack_slash_right",
				"hit1": "animation.manalabs_zombie.hitch_hiker.hit1",
				"hit2": "animation.manalabs_zombie.hitch_hiker.hit2",
				"hit3": "animation.manalabs_zombie.hitch_hiker.hit3",
				"aggro": "animation.manalabs_zombie.hitch_hiker.aggro",
				"grab": "animation.manalabs_zombie.hitch_hiker.grab",
				"grab_jump": "animation.manalabs_zombie.hitch_hiker.grab_jump",
				"grab_fail": "animation.manalabs_zombie.hitch_hiker.grab_fail",
				"grab_success": "animation.manalabs_zombie.hitch_hiker.grab_success",
				"on_player": "animation.manalabs_zombie.hitch_hiker.on_player",
				"on_player_idle": "animation.manalabs_zombie.hitch_hiker.on_player_idle",
				"on_player_hit": "animation.manalabs_zombie.hitch_hiker.on_player_hit",
				"on_player_death": "animation.manalabs_zombie.hitch_hiker.on_player_death",
				"on_player_control_back": "animation.manalabs_zombie.hitch_hiker.on_player_control_back",
				"on_player_control_left": "animation.manalabs_zombie.hitch_hiker.on_player_control_left",
				"on_player_control_right": "animation.manalabs_zombie.hitch_hiker.on_player_control_right",
				"on_player_control_front": "animation.manalabs_zombie.hitch_hiker.on_player_control_front",
				"death": "animation.manalabs_zombie.hitch_hiker.death",
				"ac.movement": "controller.animation.manalabs_zombie.hitch_hiker.movement",
				"ac.jump": "controller.animation.manalabs_zombie.hitch_hiker.jump",
				"ac.random_yawn": "controller.animation.manalabs_zombie.hitch_hiker.random_yawn",
				"ac.random_hit": "controller.animation.manalabs_zombie.hitch_hiker.random_hit",
				"ac.death": "controller.animation.manalabs_zombie.hitch_hiker.death",
				"ac.slash_attack": "controller.animation.manalabs_zombie.hitch_hiker.slash_attack"
			},
			"scripts": {
				"pre_animation": [
					"v.yawn_delay = math.random(10, 30) + q.life_time;",
					"v.random_hit = math.random(1, 3);",
					"v.prev_health = q.health;",
					"v.random_slash = math.random(0, 100);"
				],
				"animate": [
					{
						"idle": "!q.property('manalabs_zombie:hitch_hiking') && q.health > 1"
					},
					{ "on_player": "q.property('manalabs_zombie:hitch_hiking')" },
					{ "on_player_idle": "q.property('manalabs_zombie:hitch_hiking')" },
					{ "ac.jump": "!q.property('manalabs_zombie:hitch_hiking') && q.health > 1" },
					{ "ac.movement": "!q.property('manalabs_zombie:hitch_hiking') && q.health > 1" },
					{ "ac.random_yawn": "!q.property('manalabs_zombie:hitch_hiking') && q.ground_speed < 0.1 && q.health > 1" },
					{ "ac.random_hit": "!q.property('manalabs_zombie:hitch_hiking') && q.health > 1" },
					{ "ac.slash_attack": "!q.property('manalabs_zombie:hitch_hiking') && q.health > 1" },
					"ac.death"
				]
			},
			"render_controllers": ["controller.render.default"],
			"sound_effects": {
				"angry": "manalabs_zombie.hitch_hiker.angry",
				"attack": "manalabs_zombie.hitch_hiker.attack",
				"munchin_on_da_player": "manalabs_zombie.hitch_hiker.munchin_on_da_player",
				"riding_player": "manalabs_zombie.hitch_hiker.riding_player"
		
			},
			"spawn_egg": {
				"base_color": "#288483",
				"overlay_color": "#2B7135"
			}
		}
	}
}
