{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "minecraft:chicken",
      "materials": {
        "default": "drowned",
        "legs": "chicken_legs"
      },
      "textures": {
        "default": "textures/entity/chicken",
        "default2": "assets/minecraft/optifine/random/entity/chicken2",
        "default3": "assets/minecraft/optifine/random/entity/chicken3"
      },
      "geometry": {
        "default": "geometry.chicken",
        "default2": "geometry.nugget_chicken",
        "default3": "geometry.nugget_chicken"
      },
      "animations": {
        "move": "animation.chicken.move",
        "general": "animation.chicken.general.v1.0",
        "look_at_target": "animation.common.look_at_target",
        "baby_transform": "animation.chicken.baby_transform",
        "riding": "animation.chicken.riding",
        "nugget_move": "animation.nugget_chicken.move",
        "nugget_general": "animation.nugget_chicken.general",
        "nugget_look_at_target": "animation.nugget_chicken.look_at_target",
        "nugget_baby_transform": "animation.nugget_chicken.baby_transform",
        "nugget_adult_transform": "animation.nugget_chicken.adult_transform",
        "nugget_riding": "animation.nugget_chicken.riding"
      },
      "scripts": {
        "pre_animation": [
          "variable.Xvar = (variable.Xvar ?? Math.random(0,3));"
        ],
        "animate": [
          "nugget_general",
          { "nugget_move": "query.modified_move_speed" },
          "nugget_look_at_target",
          { "nugget_baby_transform": "query.is_baby" },
          { "nugget_adult_transform": "!query.is_baby" },
          { "nugget_riding": "query.is_riding" },
          
          "general",
          { "move": "query.modified_move_speed" },
          "look_at_target",
          { "baby_transform": "query.is_baby" },
          { "riding": "query.is_riding" }
        ]
      },
      "render_controllers": [ "controller.render.nugget_chicken" ],
      "spawn_egg": {
        "texture": "spawn_egg",
        "texture_index": 0
      }
    }
  }
}
