{
	"format_version": "1.10.0",
	"minecraft:client_entity": {
		"description": {
			"identifier": "shapescape_mb:frog_boss",
			"materials": {
				"default": "entity_emissive_alpha"
			},
			"textures": {
				"frog_boss": "textures/shapescape/mb/entity/frog_boss",
				"frog_boss_off": "textures/shapescape/mb/entity/frog_boss_off"
			},
			"geometry": {
				"default": "geometry.shapescape_mb.frog_boss"
			},
			"animations": {
				"ac.general": "controller.animation.shapescape_mb.frog_boss.general",
				"ac.idle_walk": "controller.animation.shapescape_mb.frog_boss.idle_walk",
				"ac.croaking": "controller.animation.shapescape_mb.frog_boss.croaking",
				"tongue_lash": "animation.frog_boss.tongue_lash",
				"tongue_retract": "animation.frog_boss.tongue_retract",
				"tongue_lash_full": "animation.frog_boss.tongue_lash_full",
				"spit": "animation.frog_boss.spit",
				"idle": "animation.frog_boss.idle",
				"walk": "animation.frog_boss.walk",
				"croaking": "animation.frog_boss.croaking",
				"hide_tongue": "animation.frog_boss.hide_tongue",
				"hide_eyelid": "animation.frog_boss.hide_eyelid",
				"blink_eyelid_1": "animation.frog_boss.blink_eyelid_1",
				"blink_eyelid_2": "animation.frog_boss.blink_eyelid_2",
				"blink_eyelid_3": "animation.frog_boss.blink_eyelid_3",
				"blink_eyelid_4": "animation.frog_boss.blink_eyelid_4",
				"blink_eyelid_5": "animation.frog_boss.blink_eyelid_5",
				"blink_eyelid_6": "animation.frog_boss.blink_eyelid_6",
				"blink_eyelid_7": "animation.frog_boss.blink_eyelid_7",
				"blink_eyelid_8": "animation.frog_boss.blink_eyelid_8",
				"blink_eyelid_9": "animation.frog_boss.blink_eyelid_9",
				"blink_eyelid_10": "animation.frog_boss.blink_eyelid_10",
				"keep_open_eyelid_1": "animation.frog_boss.keep_open_eyelid_1",
				"keep_open_eyelid_2": "animation.frog_boss.keep_open_eyelid_2",
				"keep_open_eyelid_3": "animation.frog_boss.keep_open_eyelid_3",
				"keep_open_eyelid_4": "animation.frog_boss.keep_open_eyelid_4",
				"keep_open_eyelid_5": "animation.frog_boss.keep_open_eyelid_5",
				"keep_open_eyelid_6": "animation.frog_boss.keep_open_eyelid_6",
				"keep_open_eyelid_7": "animation.frog_boss.keep_open_eyelid_7",
				"keep_open_eyelid_8": "animation.frog_boss.keep_open_eyelid_8",
				"keep_open_eyelid_9": "animation.frog_boss.keep_open_eyelid_9",
				"keep_open_eyelid_10": "animation.frog_boss.keep_open_eyelid_10",
				"leap_start": "animation.frog_boss.leap_start",
				"leap_fly": "animation.frog_boss.leap_fly",
				"leap_land": "animation.frog_boss.leap_land",
				"rotate_towards_target": "animation.shapescape_mb.frog_boss.rotate_towards_target",
				"summon_totem": "animation.frog_boss.summon_totem",
				"ac.idle_eye_1": "controller.animation.shapescape_mb.frog_boss.idle_eye_1",
				"ac.idle_eye_2": "controller.animation.shapescape_mb.frog_boss.idle_eye_2",
				"ac.idle_eye_3": "controller.animation.shapescape_mb.frog_boss.idle_eye_3",
				"ac.idle_eye_4": "controller.animation.shapescape_mb.frog_boss.idle_eye_4",
				"ac.idle_eye_5": "controller.animation.shapescape_mb.frog_boss.idle_eye_5",
				"ac.idle_eye_6": "controller.animation.shapescape_mb.frog_boss.idle_eye_6",
				"ac.idle_eye_7": "controller.animation.shapescape_mb.frog_boss.idle_eye_7",
				"ac.idle_eye_8": "controller.animation.shapescape_mb.frog_boss.idle_eye_8",
				"ac.idle_eye_9": "controller.animation.shapescape_mb.frog_boss.idle_eye_9",
				"ac.idle_eye_10": "controller.animation.shapescape_mb.frog_boss.idle_eye_10"
			},
			"scripts": {
				"initialize": ["v.custom_y_rotation = q.body_y_rotation;", "v.leap_attack_y_rotation = q.body_y_rotation;", "v.is_leap_attacking = 0;", "v.tongue_scale = 1;"],
				"pre_animation": ["t.is_leap_attacking = q.property('shapescape_mb:state') == 'leap';", "v.leap_attack_y_rotation = t.is_leap_attacking == 1.0 && v.is_leap_attacking == 0.0 ? q.property('shapescape_mb:target_y_rotation') : v.leap_attack_y_rotation;", "v.is_leap_attacking = t.is_leap_attacking;", "t.custom_y_rotation = v.is_leap_attacking ? v.leap_attack_y_rotation : q.target_y_rotation+q.body_y_rotation;", "v.custom_y_rotation = math.abs(math.min_angle(v.custom_y_rotation - t.custom_y_rotation)) < 5 ? t.custom_y_rotation : math.lerprotate(v.custom_y_rotation, t.custom_y_rotation, 0.15);", "v.custom_y_rotation = q.property('shapescape_mb:state') == 'tongue' || q.property('shapescape_mb:state') == 'spit' ? q.property('shapescape_mb:target_y_rotation') : v.custom_y_rotation;", "v.tongue_scale = math.min(q.property('shapescape_mb:cancel_tongue_scale'), q.property('shapescape_mb:target_tongue_scale'));"],
				"animate": [
					"rotate_towards_target",
					"ac.general",
					"ac.croaking",
					{
						"hide_tongue": "q.property('shapescape_mb:state') != 'tongue'"
					},
					"ac.idle_eye_1",
					"ac.idle_eye_2",
					"ac.idle_eye_3",
					"ac.idle_eye_4",
					"ac.idle_eye_5",
					"ac.idle_eye_6",
					"ac.idle_eye_7",
					"ac.idle_eye_8",
					"ac.idle_eye_9",
					"ac.idle_eye_10"
				]
			},
			"render_controllers": ["controller.render.shapescape_mb.frog_boss.main"],
			"spawn_egg": {
				"base_color": "#288483",
				"overlay_color": "#2B7135"
			}
		}
	}
}