{
    "format_version": "1.8.0",
    "minecraft:client_entity": {
        "description": {
            "identifier": "minecraft:camel",
            "materials": {
                "default": "camel",
                "UP_box": "entity_emissive_alpha"
            },
            "textures": {
                "UP_box": "models/entity/UP_box",
                "transparent": "models/entity/transparent",
                "default": "textures/entity/camel/camel"
            },
            "geometry": {
                "default": "geometry.camel",
                "target_rotate": "geometry.target_rotate_28",
                "block": "geometry.block_28"
            },
            "particle_effects": {

                "invisible": "invisible",
                "status_setup": "status_setup",
                "health_setup": "health_setup",
                "hostile_warnings": "hostile_warnings",
                "pos": "pos",
                "locate_line": "locate_line",
                "locate_mob": "locate_camel",
				"pos_egg": "pos_camel"
            },
            "spawn_egg": {
                "base_color": "#fcc369",
                "overlay_color": "#cb9337"
            },
            "scripts": {
                "pre_animation": [
                    "variable.moving = query.ground_speed > 0 || query.vertical_speed > 0;",
                    "variable.xTargetRot = math.clamp(query.target_x_rotation, -30, 30);",
                    "variable.xHeadRot = query.dash_cooldown_progress > 0 ? math.clamp(variable.xTargetRot + (45 * (1 - query.dash_cooldown_progress)), -25, 70) : variable.xTargetRot;",
                    "variable.yHeadRot = math.clamp(query.target_y_rotation, -30, 30);"
                ]
            },
            "animations": {
                "target_rotate": "animation.target_rotate",
                "camera_rotate": "animation.camera_rotate",

                "moving": "animation.camel.walk",
                "sit_down": "animation.camel.sit_down",
                "sitting": "animation.camel.sit",
                "stand_up": "animation.camel.stand_up",
                "look_at_target": "animation.camel.look_at_target",
                "dashing": "animation.camel.dash",
                "idle": "animation.camel.idle"
            },
            "sound_effects": {
                "mob_sound": "",

                "sit_down": "mob.camel.sit",
                "stand_up": "mob.camel.stand",
                "dashing": "mob.camel.dash"
            },
            "animation_controllers": [
					{"1": "controller.animation.target_rotate_setup"}, 
					{"1.1": "controller.animation.camera_rotate_setup"}, 
					{"2": "controller.animation.invisible"}, 
					{"3": "controller.animation.status"}, 
					{"4": "controller.animation.health"}, 
					{"5": "controller.animation.hostile_warnings"}, 
					{"6": "controller.animation.pos"}, 
					{"locate": "controller.animation.locate"},
					
                {
                    "general": "controller.animation.camel.general"}, 
					{"idle": "controller.animation.camel.idle"}
            ],
            "render_controllers": [
                "controller.render.target_rotate",
                "controller.render.block",
                "controller.render.camel"
            ]
        }
    }
}
