{
  "format_version": "1.8.0",
  "render_controllers": {
    "controller.render.cyn_hao.horse_mane": {
      // part visisbility set in ALL render controllers
      // since without it the head patterns were breaking,
      // presumably because the multiple RCs telling certain bones
      // to hide / unhide were conflicting
      "part_visibility": [
        { "HeadSaddle": "query.is_saddled" },
        { "Saddle": "query.is_saddled" },
        { "SaddleMouthR" : "query.is_saddled && query.has_rider" },
        { "SaddleMouthL" : "query.is_saddled && query.has_rider" },
        { "SaddleMouthLine" : "query.is_saddled && query.has_rider" },
        { "SaddleMouthLineR" : "query.is_saddled && query.has_rider" },
        
        { "Bags": "query.is_chested" },
        { "Bag1": "query.is_chested" },
        { "Bag2": "query.is_chested" },

        { "capeedges": "query.property('cyn_hao:carpet_color') > 0" },
        { "FL_cape": "query.property('cyn_hao:carpet_color') > 0" },
        { "FR_cape": "query.property('cyn_hao:carpet_color') > 0" },
        { "cape_sideL": "query.property('cyn_hao:carpet_color') > 0" },
        { "cape_sideR": "query.property('cyn_hao:carpet_color') > 0" },
        { "cape_back": "query.property('cyn_hao:carpet_color') > 0" }
      ],

      "geometry": "Geometry.default",

      "materials": [
        { "*": "Material.alphatest" }
      ],

      "arrays": {
        "textures": {
          "Array.manes": [
            "Texture.mane_0",
            "Texture.mane_1",
            "Texture.mane_2",
            "Texture.mane_3",
            "Texture.mane_4",
            "Texture.mane_5",
            "Texture.mane_6",
            "Texture.mane_7",
            "Texture.mane_8",
            "Texture.mane_9",
            "Texture.mane_10",
            "Texture.mane_11",
            "Texture.mane_12"
          ]
        }
      },

      "textures": [
        "Array.manes[query.property('cyn_hao:mane_id')]"
      ]
    }
  }
}
