{
    "format_version": "1.10.0",
    "minecraft:client_entity": {
        "description": {
            "identifier": "minecraft:goat",
            "materials": {
                "default": "goat",
                "UP_box": "entity_emissive_alpha"
            },
            "textures": {
                "UP_box": "models/entity/UP_box",
                "transparent": "models/entity/transparent",
                "default": "textures/entity/goat/goat"
            },
            "geometry": {
                "default": "geometry.goat",
                "target_rotate": "geometry.target_rotate_16",
                "block": "geometry.block_16"
            },

            "spawn_egg": {
                "base_color": "#c0ac90",
                "overlay_color": "#857261"
            },
            "scripts": {
                "pre_animation": [
                    "variable.tcos_right_side = (Math.cos(query.modified_distance_moved * 38.17) * query.modified_move_speed / variable.gliding_speed_value) * 57.3;",
                    "variable.tcos_left_side = -variable.tcos_right_side;",
                    "variable.attack_head_rot =  Math.sin(variable.attack_time * 180.0) * -37.3;",
                    "variable.ram_head_rot = Math.sin(variable.should_bow_head * 90.0) * 37.3;"
                ],
                "animate": [
                    "target_rotate",
                    "camera_rotate",
                    "locate",
					"hostile_warnings",
                    "invisible",
                    "status",
                    "numbers",
                    "pos",

                    "walk",
                    "look_at_target", {
                        "attack": "variable.has_target && variable.attack_time >= 0.0"
                    },
                    "ram_attack"
                ]
            },

            "particle_effects": {
                "invisible": "invisible",
                "status_setup": "status_setup",
                "health_setup": "health_setup",
                "hostile_warnings": "hostile_warnings",
                "pos": "pos",
                "hostile_distance_setup": "hostile_distance_setup",
                "locate_line": "locate_line",
                "locate_mob": "locate_goat",
				"pos_egg": "pos_goat"
            },
            "sound_effects": {
                "mob_sound": "loud_mob.goat.prepare_ram"
            },

            "animations": {
                "invisible": "controller.animation.invisible",
                "status": "controller.animation.status",
                "locate": "controller.animation.locate",
				"numbers": "controller.animation.health",
                "target_rotate": "animation.target_rotate",
                "camera_rotate": "animation.camera_rotate",
                "hostile_warnings": "controller.animation.hostile_warnings",
                "pos": "controller.animation.pos",
                "hostile_distance": "controller.animation.hostile_distance",

                "walk": "animation.goat.walk",
                "look_at_target": "animation.goat.look_at_target",
                "attack": "animation.goat.attack",
                "ram_attack": "animation.goat.ram_attack"
            },
            "render_controllers": [
                "controller.render.target_rotate",
                "controller.render.block",
                "controller.render.goat"
            ]
        }
    }
}
