{
  "format_version": "1.8.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "minecraft:camel",
      "materials": {
        "default": "camel"
      },
      "textures": {
        "default": "textures/entity/camel/camel"
      },
      "geometry": {
        "default": "geometry.camel"
      },
      "spawn_egg": {
        "texture": "egg_camel"
      },
      "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": {
        "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",
        "dashing_sound": "animation.camel.dash_sound",
        "idle": "animation.camel.idle"
      },
      "sound_effects": {
        "sit_down": "mob.camel.sit",
        "stand_up": "mob.camel.stand",
        "dash": "mob.camel.dash"
      }, 
      "animation_controllers": [
        { "general": "controller.animation.camel.general" },
        { "idle": "controller.animation.camel.idle" }
      ],
      "render_controllers": [
        "controller.render.camel"
      ]
    }
  }
}
