{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "minecraft:camel",
      "materials": {
        "default": "camel"
      },
      "textures": {
        "default": "textures/entity/camel/camel"
      },
      "geometry": {
        "default": "geometry.camel"
      },
      "spawn_egg": {
        "texture": "spawn_egg_camel"
      },
      "scripts": {
        "pre_animation": [
          "variable.moving = query.ground_speed > 0 || query.vertical_speed > 0;",
          "variable.xHeadRot = math.clamp(query.target_x_rotation, -25, 45);",
          "variable.yHeadRot = math.clamp(query.target_y_rotation, -30, 30);",
          "variable.xDashHeadRot = query.dash_cooldown_progress > 0 ? math.clamp(variable.xHeadRot + (45 * (1 - query.dash_cooldown_progress)), -25, 70) : variable.xHeadRot;"
        ],
        "animate": [
          "general",
          "idling",
          "look_at_player_controller"
        ]
      },
      "animations": {
        "moving": "animation.camel.walk",
        "sit_down": "animation.camel.sit_down",
        "sitting": "animation.camel.sit",
        "stand_up": "animation.camel.stand_up",
        "look_at_player": "animation.camel.look_at_player",
        "dashing": "animation.camel.dash",
        "idle": "animation.camel.idle",
        "general": "controller.animation.camel.general",
        "idling": "controller.animation.camel.idle",
        "look_at_player_controller": "controller.animation.camel.look_at_player"
      },
      "sound_effects": {
        "sit_down": "mob.camel.sit",
        "stand_up": "mob.camel.stand",
        "dashing": "mob.camel.dash"
      },
      "render_controllers": [
        "controller.render.camel"
      ]
    }
  }
}
