{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "minecraft:horse",
      "min_engine_version": "1.17.10",
      "materials": {
        "default": "horse_leather_armor"
      },
      "textures": {
        "base_brown": "textures/entity/horse2/horse_brown",
        "base_brown2": "assets/minecraft/optifine/random/entity/horse/horse_brown2",
        "base_brown3": "assets/minecraft/optifine/random/entity/horse/horse_brown4",
        "base_brown4": "assets/minecraft/optifine/random/entity/horse/horse_brown4",
        "base_brown5": "assets/minecraft/optifine/random/entity/horse/horse_brown2",
        "base_brown6": "assets/minecraft/optifine/random/entity/horse/horse_brown6",
        "base_brown7": "assets/minecraft/optifine/random/entity/horse/horse_brown4",
        "base_brown8": "assets/minecraft/optifine/random/entity/horse/horse_brown2",
        "base_white": "textures/entity/horse2/horse_white",
        "base_white2": "assets/minecraft/optifine/random/entity/horse/horse_white2",
        "base_white3": "assets/minecraft/optifine/random/entity/horse/horse_white4",
        "base_white4": "assets/minecraft/optifine/random/entity/horse/horse_white4",
        "base_white5": "assets/minecraft/optifine/random/entity/horse/horse_white2",
        "base_white6": "assets/minecraft/optifine/random/entity/horse/horse_white6",
        "base_white7": "assets/minecraft/optifine/random/entity/horse/horse_white4",
        "base_white8": "assets/minecraft/optifine/random/entity/horse/horse_white2",
        "base_creamy": "textures/entity/horse2/horse_creamy",
        "base_creamy2": "assets/minecraft/optifine/random/entity/horse/horse_creamy2",
        "base_creamy3": "assets/minecraft/optifine/random/entity/horse/horse_creamy4",
        "base_creamy4": "assets/minecraft/optifine/random/entity/horse/horse_creamy4",
        "base_creamy5": "assets/minecraft/optifine/random/entity/horse/horse_creamy2",
        "base_creamy6": "assets/minecraft/optifine/random/entity/horse/horse_creamy6",
        "base_creamy7": "assets/minecraft/optifine/random/entity/horse/horse_creamy4",
        "base_creamy8": "assets/minecraft/optifine/random/entity/horse/horse_creamy2",
        "base_chestnut": "textures/entity/horse2/horse_chestnut",
        "base_chestnut2": "assets/minecraft/optifine/random/entity/horse/horse_chestnut2",
        "base_chestnut3": "assets/minecraft/optifine/random/entity/horse/horse_chestnut4",
        "base_chestnut4": "assets/minecraft/optifine/random/entity/horse/horse_chestnut4",
        "base_chestnut5": "assets/minecraft/optifine/random/entity/horse/horse_chestnut2",
        "base_chestnut6": "assets/minecraft/optifine/random/entity/horse/horse_chestnut6",
        "base_chestnut7": "assets/minecraft/optifine/random/entity/horse/horse_chestnut4",
        "base_chestnut8": "assets/minecraft/optifine/random/entity/horse/horse_chestnut2",
        "base_black": "textures/entity/horse2/horse_black",
        "base_black2": "assets/minecraft/optifine/random/entity/horse/horse_black2",
        "base_black3": "assets/minecraft/optifine/random/entity/horse/horse_black4",
        "base_black4": "assets/minecraft/optifine/random/entity/horse/horse_black4",
        "base_black5": "assets/minecraft/optifine/random/entity/horse/horse_black2",
        "base_black6": "assets/minecraft/optifine/random/entity/horse/horse_black6",
        "base_black7": "assets/minecraft/optifine/random/entity/horse/horse_black4",
        "base_black8": "assets/minecraft/optifine/random/entity/horse/horse_black2",
        "base_gray": "textures/entity/horse2/horse_gray",
        "base_gray2": "assets/minecraft/optifine/random/entity/horse/horse_gray2",
        "base_gray3": "assets/minecraft/optifine/random/entity/horse/horse_gray4",
        "base_gray4": "assets/minecraft/optifine/random/entity/horse/horse_gray4",
        "base_gray5": "assets/minecraft/optifine/random/entity/horse/horse_gray2",
        "base_gray6": "assets/minecraft/optifine/random/entity/horse/horse_gray6",
        "base_gray7": "assets/minecraft/optifine/random/entity/horse/horse_gray4",
        "base_gray8": "assets/minecraft/optifine/random/entity/horse/horse_gray2",
        "base_darkbrown": "textures/entity/horse2/horse_darkbrown",
        "base_darkbrown2": "assets/minecraft/optifine/random/entity/horse/horse_darkbrown2",
        "base_darkbrown3": "assets/minecraft/optifine/random/entity/horse/horse_darkbrown4",
        "base_darkbrown4": "assets/minecraft/optifine/random/entity/horse/horse_darkbrown4",
        "base_darkbrown5": "assets/minecraft/optifine/random/entity/horse/horse_darkbrown2",
        "base_darkbrown6": "assets/minecraft/optifine/random/entity/horse/horse_darkbrown6",
        "base_darkbrown7": "assets/minecraft/optifine/random/entity/horse/horse_darkbrown4",
        "base_darkbrown8": "assets/minecraft/optifine/random/entity/horse/horse_darkbrown2",
        "markings_none": "textures/entity/horse2/horse_markings_none",
        "markings_none2": "textures/entity/horse2/horse_markings_none",
        "markings_none3": "textures/entity/horse2/horse_markings_none",
        "markings_none4": "textures/entity/horse2/horse_markings_none",
        "markings_none5": "textures/entity/horse2/horse_markings_none",
        "markings_none6": "textures/entity/horse2/horse_markings_none",
        "markings_none7": "textures/entity/horse2/horse_markings_none",
        "markings_none8": "textures/entity/horse2/horse_markings_none",
        "markings_white": "textures/entity/horse2/horse_markings_white",
        "markings_white2": "assets/minecraft/optifine/random/entity/horse/horse_markings_white2",
        "markings_white3": "assets/minecraft/optifine/random/entity/horse/horse_markings_white4",
        "markings_white4": "assets/minecraft/optifine/random/entity/horse/horse_markings_white4",
        "markings_white5": "assets/minecraft/optifine/random/entity/horse/horse_markings_white2",
        "markings_white6": "assets/minecraft/optifine/random/entity/horse/horse_markings_white6",
        "markings_white7": "assets/minecraft/optifine/random/entity/horse/horse_markings_white4",
        "markings_white8": "assets/minecraft/optifine/random/entity/horse/horse_markings_white2",
        "markings_whitefield": "textures/entity/horse2/horse_markings_whitefield",
        "markings_whitefield2": "assets/minecraft/optifine/random/entity/horse/horse_markings_whitefield2",
        "markings_whitefield3": "assets/minecraft/optifine/random/entity/horse/horse_markings_whitefield4",
        "markings_whitefield4": "assets/minecraft/optifine/random/entity/horse/horse_markings_whitefield4",
        "markings_whitefield5": "assets/minecraft/optifine/random/entity/horse/horse_markings_whitefield2",
        "markings_whitefield6": "assets/minecraft/optifine/random/entity/horse/horse_markings_whitefield6",
        "markings_whitefield7": "assets/minecraft/optifine/random/entity/horse/horse_markings_whitefield4",
        "markings_whitefield8": "assets/minecraft/optifine/random/entity/horse/horse_markings_whitefield2",
        "markings_whitedots": "textures/entity/horse2/horse_markings_whitedots",
        "markings_whitedots2": "assets/minecraft/optifine/random/entity/horse/horse_markings_whitedots2",
        "markings_whitedots3": "assets/minecraft/optifine/random/entity/horse/horse_markings_whitedots4",
        "markings_whitedots4": "assets/minecraft/optifine/random/entity/horse/horse_markings_whitedots4",
        "markings_whitedots5": "assets/minecraft/optifine/random/entity/horse/horse_markings_whitedots2",
        "markings_whitedots6": "assets/minecraft/optifine/random/entity/horse/horse_markings_whitedots6",
        "markings_whitedots7": "assets/minecraft/optifine/random/entity/horse/horse_markings_whitedots4",
        "markings_whitedots8": "assets/minecraft/optifine/random/entity/horse/horse_markings_whitedots2",
        "markings_blackdots": "textures/entity/horse2/horse_markings_blackdots",
        "markings_blackdots2": "assets/minecraft/optifine/random/entity/horse/horse_markings_blackdots2",
        "markings_blackdots3": "assets/minecraft/optifine/random/entity/horse/horse_markings_blackdots4",
        "markings_blackdots4": "assets/minecraft/optifine/random/entity/horse/horse_markings_blackdots4",
        "markings_blackdots5": "assets/minecraft/optifine/random/entity/horse/horse_markings_blackdots2",
        "markings_blackdots6": "assets/minecraft/optifine/random/entity/horse/horse_markings_blackdots6",
        "markings_blackdots7": "assets/minecraft/optifine/random/entity/horse/horse_markings_blackdots4",
        "markings_blackdots8": "assets/minecraft/optifine/random/entity/horse/horse_markings_blackdots2",
        "armor_none": "textures/entity/horse2/armor/horse_armor_none",
        "armor_none2": "textures/entity/horse2/armor/horse_armor_none",
        "armor_none3": "textures/entity/horse2/armor/horse_armor_none",
        "armor_none4": "textures/entity/horse2/armor/horse_armor_none",
        "armor_none5": "textures/entity/horse2/armor/horse_armor_none",
        "armor_none6": "textures/entity/horse2/armor/horse_armor_none",
        "armor_none7": "textures/entity/horse2/armor/horse_armor_none",
        "armor_none8": "textures/entity/horse2/armor/horse_armor_none",
        "armor_leather": "textures/entity/horse2/armor/horse_armor_leather",
        "armor_leather2": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_leather2",
        "armor_leather3": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_leather4",
        "armor_leather4": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_leather4",
        "armor_leather5": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_leather2",
        "armor_leather6": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_leather6",
        "armor_leather7": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_leather4",
        "armor_leather8": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_leather2",
        "armor_iron": "textures/entity/horse2/armor/horse_armor_iron",
        "armor_iron2": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_iron2",
        "armor_iron3": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_iron4",
        "armor_iron4": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_iron4",
        "armor_iron5": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_iron2",
        "armor_iron6": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_iron6",
        "armor_iron7": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_iron4",
        "armor_iron8": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_iron2",
        "armor_gold": "textures/entity/horse2/armor/horse_armor_gold",
        "armor_gold2": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_gold2",
        "armor_gold3": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_gold4",
        "armor_gold4": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_gold4",
        "armor_gold5": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_gold2",
        "armor_gold6": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_gold6",
        "armor_gold7": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_gold4",
        "armor_gold8": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_gold2",
        "armor_diamond": "textures/entity/horse2/armor/horse_armor_diamond",
        "armor_diamond2": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_diamond2",
        "armor_diamond3": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_diamond4",
        "armor_diamond4": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_diamond4",
        "armor_diamond5": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_diamond2",
        "armor_diamond6": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_diamond6",
        "armor_diamond7": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_diamond4",
        "armor_diamond8": "assets/minecraft/optifine/random/entity/horse/armor/horse_armor_diamond2"
      },
      "geometry": {
        "default": "geometry.horse.v3",
        "default2": "geometry.nugget_horse",
        "default3": "geometry.nugget_horse",
        "default4": "geometry.nugget_horse4",
        "default5": "geometry.nugget_horse4",
        "default6": "geometry.nugget_horse5",
        "default7": "geometry.nugget_horse6",
        "default8": "geometry.nugget_horse6"
      },
      "animations": {
        "baby_transform": "animation.horse.v3.baby_transform",
        "walk": "animation.horse.v3.walk",
        "eat": "animation.horse.v3.eat",
        "rear": "animation.horse.v3.rear",
        "tail": "animation.horse.v3.tail",
        "look_at_player": "animation.horse.v3.look_at_player",
        
        "nugget_baby_transform": "animation.nugget_horse.v3.baby_transform",
        "nugget_walk": "animation.nugget_horse.v3.walk",
        "nugget_eat": "animation.nugget_horse.v3.eat",
        "nugget_rear": "animation.nugget_horse.v3.rear",
        "nugget_tail": "animation.nugget_horse.v3.tail",
        "nugget_look_at_player": "animation.nugget_horse.v3.look_at_player",
        "nugget_riding": "animation.nugget_horse.v3.riding"
      },
      "scripts": {
        "initialize": [
          "variable.eat_anim = 0.0;"
        ],
        "pre_animation": [
          "variable.armor_texture_slot = query.armor_texture_slot(4);",
          "variable.eat_anim = math.clamp(variable.eat_anim + (query.is_grazing ? ((1.0 - variable.eat_anim) * 0.4 + 0.05) : -variable.eat_anim * 0.4 - 0.05) * query.delta_time * 20.0, 0.0, 1.0);",
          "variable.head_x_rot = query.target_x_rotation + (query.modified_move_speed > 0.2 ? (math.cos(query.modified_distance_moved * 11.46) * 11.46 * query.modified_move_speed + query.modified_move_speed * 11.46) : 0.0);",
          "variable.inverse_max_stand_eat = (1.0 - math.max(variable.stand_anim, variable.eat_anim));",
          "variable.leg_stand_factor = math.cos((query.modified_distance_moved * 38.38) + 180.0);",
          "variable.leg_x_rot_anim = variable.leg_stand_factor * 45.8 * query.modified_move_speed;",
          "variable.Xvar = (variable.Xvar ?? Math.random(0,8));"
        ],
        "animate": [
          {
            "baby_transform": "query.is_baby"
          },
          "walk",
          "look_at_player",
          {
            "rear": "variable.stand_anim > 0.0"
          },
          {
            "eat": "!query.is_standing"
          },
          {
            "tail": "variable.shake_tail"
          },
          {
            "nugget_baby_transform": "query.is_baby"
          },
          "nugget_walk",
          "nugget_look_at_player",
          { 
            "nugget_rear": "variable.stand_anim > 0.0"
          },
          { 
            "nugget_eat": "!query.is_standing"
          },
          { 
            "nugget_tail": "variable.shake_tail"
          },
          { 
            "nugget_riding": "query.is_riding"
          }
        ]
      },
      "render_controllers": [
        "controller.render.horse"
      ],
      "spawn_egg": {
        "texture": "spawn_egg",
        "texture_index": 23
      }
    }
  }
}