{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "legacy:knight_villager_iron",
      "min_engine_version": "1.8.0",
      "materials": {
        "default": "vindicator"
      },
      "textures": {
        "default": "textures/entity/knightvillager/iron"
      },
      "geometry": {
        "default": "geometry.knight"
      },
      "spawn_egg": {
        "base_color": "#5A423D",
        "overlay_color": "#BEBEBE"
      },
      "scripts": {
        "scale": "0.9375",
        "pre_animation": [
          "variable.tcos0 \u003d (Math.cos(query.modified_distance_moved * 38.17) * query.modified_move_speed / variable.gliding_speed_value) * 57.3;",
          "variable.attack \u003d Math.sin((1.0 - (1.0 - variable.attack_time) * (1.0 - variable.attack_time)) * 180.0) * 57.3;",
          "variable.attack2 \u003d Math.sin(variable.attack_time * 180.0) * 57.3;",
          "variable.z_bob \u003d Math.cos(query.life_time * 103.13244) * 2.865 + 2.865;",
          "variable.x_bob \u003d Math.sin(query.life_time * 76.776372) * 2.865;",
          "variable.weapons \u003d    query.get_equipped_item_name \u003d\u003d \u0027wooden_sword\u0027 || query.get_equipped_item_name \u003d\u003d \u0027stone_sword\u0027 || query.get_equipped_item_name \u003d\u003d \u0027iron_sword\u0027 || query.get_equipped_item_name \u003d\u003d \u0027golden_sword\u0027 || query.get_equipped_item_name \u003d\u003d \u0027diamond_sword\u0027 || query.get_equipped_item_name \u003d\u003d \u0027netherite_sword\u0027 || query.get_equipped_item_name \u003d\u003d \u0027wooden_axe\u0027 || query.get_equipped_item_name \u003d\u003d \u0027stone_axe\u0027 || query.get_equipped_item_name \u003d\u003d \u0027iron_axe\u0027 || query.get_equipped_item_name \u003d\u003d \u0027golden_axe\u0027 || query.get_equipped_item_name \u003d\u003d \u0027diamond_axe\u0027 || query.get_equipped_item_name \u003d\u003d \u0027netherite_axe\u0027 || query.get_equipped_item_name \u003d\u003d \u0027knight_sword\u0027 || query.get_equipped_item_name \u003d\u003d \u0027iron_knightsword\u0027 || query.get_equipped_item_name \u003d\u003d \u0027golden_knightsword\u0027 || query.get_equipped_item_name \u003d\u003d \u0027diamond_knightsword\u0027 || query.get_equipped_item_name \u003d\u003d \u0027hawkbrand\u0027 || query.get_equipped_item_name \u003d\u003d \u0027iron_hawkbrand\u0027 || query.get_equipped_item_name \u003d\u003d \u0027golden_hawkbrand\u0027 || query.get_equipped_item_name \u003d\u003d \u0027diamond_hawkbrand\u0027 || query.get_equipped_item_name \u003d\u003d \u0027whirlwind\u0027 || query.get_equipped_item_name \u003d\u003d \u0027golden_whirlwind\u0027 || query.get_equipped_item_name \u003d\u003d \u0027diamond_whirlwind\u0027 || query.get_equipped_item_name \u003d\u003d \u0027heavybrand\u0027 || query.get_equipped_item_name \u003d\u003d \u0027iron_heavybrand\u0027 || query.get_equipped_item_name \u003d\u003d \u0027golden_heavybrand\u0027 || query.get_equipped_item_name \u003d\u003d \u0027diamond_heavybrand\u0027 || query.get_equipped_item_name \u003d\u003d \u0027double_heavybrand\u0027 || query.get_equipped_item_name \u003d\u003d \u0027iron_double_heavybrand\u0027 || query.get_equipped_item_name \u003d\u003d \u0027golden_double_heavybrand\u0027 || query.get_equipped_item_name \u003d\u003d \u0027diamond_double_heavybrand\u0027;",
          "variable.spear \u003d    query.get_equipped_item_name \u003d\u003d \u0027glaive\u0027 || query.get_equipped_item_name \u003d\u003d \u0027golden_glaive\u0027 || query.get_equipped_item_name \u003d\u003d \u0027diamond_glaive\u0027;"
        ],
        "animate": [
          "vindicator_base",
          "controller_vindicator_walk",
          "controller_look_at_target",
          "knight_attack_controller"
        ]
      },
      "animations": {
        "look_at_target_default": "animation.humanoid.look_at_target.default",
        "look_at_target_gliding": "animation.humanoid.look_at_target.gliding",
        "look_at_target_swimming": "animation.humanoid.look_at_target.swimming",
        "vindicator_base": "animation.knight.base",
        "knight_attack_controller": "controller.animation.guard_v2.attack",
        "crossbow_hold": "animation.piglin.crossbow.hold",
        "crossbow_charge": "animation.piglin.crossbow.charge",
        "melee_attack": "animation.knight.attack",
        "spear_melee_attack": "animation.knight.spear.attack",
        "bow_attack": "animation.humanoid.bow_and_arrow",
        "hand_attack": "animation.vindicator.hand_attack",
        "move": "animation.knight_v3.move",
        "celebrate": "animation.knight.celebrating",
        "controller_vindicator_walk": "controller.animation.villager_v2.move",
        "controller_look_at_target": "controller.animation.humanoid.look_at_target"
      },
      "render_controllers": [
        "controller.render.pillager"
      ],
      "enable_attachables": true,
      "hide_armor": true
    }
  }
}