{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "minecraft:vex",
      "min_engine_version": "1.8.0",
      "materials": { "default": "vex" },
      "textures": {
        "default": "textures/entity/vex/vex",
        "charging": "textures/entity/vex/vex_charging"
      },
      "geometry": {
        "default": "geometry.crl.vex"
      },
      "scripts": {
        "scale": "1.0",
        "pre_animation": [
          "variable.tcos0 = (Math.cos(query.modified_distance_moved * 38.17) * query.modified_move_speed / variable.gliding_speed_value) * 57.3;",
          "variable.empty_handed  = !query.is_item_equipped(0) && !query.is_item_equipped(1);"
        ],
        "animate": [
          "look_at_target",
          "idle",
          "fly",
          "vex_idle",
          { "vex_charge": "query.is_charging" }
        ]
      },
      "animations": {
        "vex_charge": "animation.crl.vex.charge",
        "vex_idle": "animation.crl.vex.idle",

        "look_at_target": "animation.crl.allay.look_at_target.default",
        "idle": "animation.crl.allay.idle",
        "fly": "animation.crl.allay.fly"
      },
      "render_controllers": ["controller.render.crl.vex"],
      "held_item_ignores_lighting": true,
      "spawn_egg": {
        "texture": "spawn_egg",
        "texture_index": 41
      }
    }
  }
}
