{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "minecraft:player",
      "materials": {
        "default": "entity_alphatest",
      "static": "entity_static",
	  "ske": "skeleton",
	  "outer": "slime_outer",
	  "charged": "charged_creeper",
        "cape": "entity_alphatest",
        "animated": "player_animated"
      },
      "textures": {
        "menu": "textures/ui/menu",
        "menu1": "textures/ui/menu1",
        "menu2": "textures/ui/menu2",
        "menu3": "textures/ui/menu3",
        "menu4": "textures/ui/menu4",
        "menu5": "textures/ui/menu5",
        "default": "textures/entity/steve",
        "cape": "textures/entity/cape_invisible",
        "costume1": "textures/models/armor/player_male",
        "costume2": "textures/models/armor/player_female",
        "black_cloak": "textures/models/armor/black_cloak",
        "midnight_cloak": "textures/models/armor/midnight_cloak",
        "knightoftbw_cloak": "textures/models/armor/knightoftbw_cloak",
        "bainha": "textures/models/sword/sheath",
        "ED": "textures/models/sword/e_d",
        "green": "textures/sao/green",
        "orange": "textures/sao/orange",
        "saoBar20": "textures/sao/saoBar20",
        "saoBar19": "textures/sao/saoBar19",
        "saoBar18": "textures/sao/saoBar18",
        "saoBar17": "textures/sao/saoBar17",
        "saoBar16": "textures/sao/saoBar16",
        "saoBar15": "textures/sao/saoBar15",
        "saoBar14": "textures/sao/saoBar14",
        "saoBar13": "textures/sao/saoBar13",
        "saoBar12": "textures/sao/saoBar12",
        "saoBar11": "textures/sao/saoBar11",
        "saoBar10": "textures/sao/saoBar10",
        "saoBar9": "textures/sao/saoBar9",
        "saoBar8": "textures/sao/saoBar8",
        "saoBar7": "textures/sao/saoBar7",
        "saoBar6": "textures/sao/saoBar6",
        "saoBar5": "textures/sao/saoBar5",
        "saoBar4": "textures/sao/saoBar4",
        "saoBar3": "textures/sao/saoBar3",
        "saoBar2": "textures/sao/saoBar2",
        "saoBar1": "textures/sao/saoBar1"
      },
      "geometry": {
        "costume": "geometry.costume",
        "black_cloak": "geometry.costume.black_cloak",
        "gui": "geometry.gui",
        "default": "geometry.humanoid.custom",
        "cape": "geometry.cape",
        "bainha": "geometry.aos.bainha1",
        "bainha_dual": "geometry.aos.bainha2",
        "ED": "geometry.aos.e_de",
        "saoCursor": "geometry.saoCursor",
        "saoBar": "geometry.saoBar"
      },
      "scripts": {
        "scale": "0.9375",
                "initialize": ["variable.is_holding_right = 0.0;", "variable.is_blinking = 0.0;", "variable.last_blink_time = 0.0;", "variable.hand_bob = 0.0;"],
                "pre_animation": ["variable.is_third_person = !variable.is_first_person && !variable.map_face_icon;", "variable.helmet_layer_visible = 1.0;", "variable.leg_layer_visible = 1.0;", "variable.boot_layer_visible = 1.0;", "variable.chest_layer_visible = 1.0;", "variable.attack_body_rot_y = Math.sin(360*Math.sqrt(variable.attack_time)) * 5.0;", "variable.tcos0 = (math.cos(query.modified_distance_moved * 38.17) * query.modified_move_speed / variable.gliding_speed_value) * 57.3;", "variable.first_person_rotation_factor = math.sin((1 - variable.attack_time) * 180.0);", "variable.hand_bob = query.life_time < 0.01 ? 0.0 : variable.hand_bob + ((query.is_on_ground && query.is_alive ? math.clamp(math.sqrt(math.pow(query.position_delta(0), 2.0) + math.pow(query.position_delta(2), 2.0)), 0.0, 0.1) : 0.0) - variable.hand_bob) * 0.02;", "variable.map_angle = math.clamp(1 - variable.player_x_rotation / 45.1, 0.0, 1.0);", "variable.item_use_normalized = query.main_hand_item_use_duration / query.main_hand_item_max_duration;", "variable.saoBar1 = query.health == 1.0;", "variable.saoBar2 = query.health == 2.0;", "variable.saoBar3 = query.health == 3.0;", "variable.saoBar4 = query.health == 4.0;", "variable.saoBar5 = query.health == 5.0;", "variable.saoBar6 = query.health == 6.0;", "variable.saoBar7 = query.health == 7.0;", "variable.saoBar8 = query.health == 8.0;", "variable.saoBar9 = query.health == 9.0;", "variable.saoBar10 = query.health == 10.0;", "variable.saoBar11 = query.health == 11.0;", "variable.saoBar12 = query.health == 12.0;", "variable.saoBar13 = query.health == 13.0;", "variable.saoBar14 = query.health == 14.0;", "variable.saoBar15 = query.health == 15.0;", "variable.saoBar16 = query.health == 16.0;", "variable.saoBar17 = query.health == 17.0;", "variable.saoBar18 = query.health == 18.0;", "variable.saoBar19 = query.health == 19.0;", "variable.saoBar20 = query.health == 20.0;"],
        "animate": [
          "root",
          "cursor",
    { "hand": "variable.is_first_person" },
    { "menu": "query.get_equipped_item_name=='aos_menu'" },

{ "ed_first": "query.get_equipped_item_name('main_hand')=='e_d'&&variable.is_first_person" },
{ "ed_attack": "query.get_equipped_item_name('main_hand') =='e_d'&&variable.attack_time > 0.0 && variable.is_third_person" },
{ "ed_fattack": "query.get_equipped_item_name=='e_d'&&variable.attack_time > 0.0 && variable.is_first_person" },
{ "def": "query.get_equipped_item_name('main_hand')=='liberator_shield' && query.is_sneaking" },
{ "def": "query.get_equipped_item_name('off_hand')=='liberator_shield' && query.is_sneaking" },
    
    { "sprinting": "query.get_equipped_item_name=='wooden_axe' || query.get_equipped_item_name=='stone_axe' || query.get_equipped_item_name=='iron_axe' || query.get_equipped_item_name=='golden_axe' || query.get_equipped_item_name=='diamond_axe' || query.get_equipped_item_name=='netherite_axe' || query.get_equipped_item_name=='wooden_sword' || query.get_equipped_item_name=='stone_sword' || query.get_equipped_item_name=='iron_sword' || query.get_equipped_item_name=='golden_sword' || query.get_equipped_item_name=='diamond_sword' || query.get_equipped_item_name=='netherite_sword' || query.get_equipped_item_name=='guilty_thorn' || query.get_equipped_item_name('main_hand') =='e_d' || query.get_equipped_item_name=='liberator' || query.get_equipped_item_name=='lambent_light' || query.get_equipped_item_name=='excalibur' || query.get_equipped_item_name=='elucidator' || query.get_equipped_item_name=='dark_repulser' || query.get_equipped_item_name=='anneal_blade' && query.is_sprinting && variable.is_third_person" },
    { "attack": "query.get_equipped_item_name=='wooden_axe' || query.get_equipped_item_name=='stone_axe' || query.get_equipped_item_name=='iron_axe' || query.get_equipped_item_name=='golden_axe' || query.get_equipped_item_name=='diamond_axe' || query.get_equipped_item_name=='netherite_axe' || query.get_equipped_item_name=='wooden_sword' || query.get_equipped_item_name=='stone_sword' || query.get_equipped_item_name=='iron_sword' || query.get_equipped_item_name=='golden_sword' || query.get_equipped_item_name=='diamond_sword' || query.get_equipped_item_name=='netherite_sword' || query.get_equipped_item_name=='guilty_thorn' || query.get_equipped_item_name=='liberator' || query.get_equipped_item_name=='lambent_light' || query.get_equipped_item_name=='excalibur' || query.get_equipped_item_name=='elucidator' || query.get_equipped_item_name=='dark_repulser' || query.get_equipped_item_name=='anneal_blade' && variable.attack_time > 0.0 && variable.is_third_person" }
    
        ]
      },
      "animations": {
        "cursor": "animation.cursor.rotation",
        "menu": "animation.menu.open",
        "hand": "animation.hand",
        "def": "animation.shield.def",
        "sprinting": "animation.sprinting.sword",
        "attack": "animation.attack.sword",
        "attack2": "animation.attack.sword2",
        "null": "animation.null",
        "ed_first": "animation.dual_blades.first_person",
        "ed_attack": "animation.dual_blades.attack",
        "ed_fattack": "animation.dual_blades.first_attack",

        "root": "controller.animation.player.root",
        "base_controller": "controller.animation.player.base",
        "hudplayer":  "controller.animation.player.hudplayer",
        "humanoid_base_pose": "animation.humanoid.base_pose",
        "look_at_target": "controller.animation.humanoid.look_at_target",
        "look_at_target_ui": "animation.player.look_at_target.ui",
        "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",
        "look_at_target_inverted": "animation.player.look_at_target.inverted",
        "cape": "animation.player.cape",
        "move.arms": "animation.player.move.arms",
        "move.legs": "animation.player.move.legs",
        "swimming": "animation.player.swim",
        "swimming.legs": "animation.player.swim.legs",
        "riding.arms": "animation.player.riding.arms",
        "riding.legs": "animation.player.riding.legs",
        "holding": "animation.player.holding",
        "brandish_spear": "animation.humanoid.brandish_spear",
        "charging": "animation.humanoid.charging",
        "attack.positions": "animation.player.attack.positions",
        "attack.rotations": "animation.player.attack.rotations",
        "sneaking": "animation.player.sneaking",
        "bob": "animation.player.bob",
        "damage_nearby_mobs": "animation.humanoid.damage_nearby_mobs",
        "bow_and_arrow": "animation.humanoid.bow_and_arrow",
        "fishing_rod": "animation.humanoid.fishing_rod",
        "use_item_progress": "animation.humanoid.use_item_progress",
        "skeleton_attack": "animation.skeleton.attack",
        "sleeping": "animation.player.sleeping",
        "first_person_base_pose": "animation.player.first_person.base_pose",
        "first_person_empty_hand": "animation.player.first_person.empty_hand",
        "first_person_swap_item": "animation.player.first_person.swap_item",
        "first_person_attack_controller": "controller.animation.player.first_person_attack",
        "first_person_attack_rotation": "animation.player.first_person.attack_rotation",
        "first_person_vr_attack_rotation": "animation.player.first_person.vr_attack_rotation",
        "first_person_walk": "animation.player.first_person.walk",
        "first_person_map_controller": "controller.animation.player.first_person_map",
        "first_person_map_hold": "animation.player.first_person.map_hold",
        "first_person_map_hold_attack": "animation.player.first_person.map_hold_attack",
        "first_person_map_hold_off_hand": "animation.player.first_person.map_hold_off_hand",
        "first_person_map_hold_main_hand": "animation.player.first_person.map_hold_main_hand",
        "first_person_crossbow_equipped": "animation.player.first_person.crossbow_equipped",
        "third_person_crossbow_equipped": "animation.player.crossbow_equipped",
        "third_person_bow_equipped": "animation.player.bow_equipped",
        "crossbow_hold": "animation.player.crossbow_hold",
        "crossbow_controller": "controller.animation.player.crossbow",
        "shield_block_main_hand": "animation.player.shield_block_main_hand",
        "shield_block_off_hand": "animation.player.shield_block_off_hand",
        "blink": "controller.animation.persona.blink"
      },
      "render_controllers": [
                   {
                    "controller.render.player.first_person": "variable.is_first_person"
                }, {
                    "controller.render.player.third_person": "!variable.is_first_person && !variable.map_face_icon"
                }, {
                    "controller.render.player.map": "variable.map_face_icon"
                },
                
{ "controller.render.player_costume": "q.equipped_item_all_tags('slot.armor.legs', 'player_costume') && variable.is_first_person" },
{ "controller.render.player_costume2": "q.equipped_item_all_tags('slot.armor.legs', 'player_costume2') && variable.is_first_person" },
{ "controller.render.black_cloak": "q.equipped_item_all_tags('slot.armor.chest', 'black_cloak') && variable.is_first_person" },
{ "controller.render.midnight_cloak": "q.equipped_item_all_tags('slot.armor.chest', 'midnight_cloak') && variable.is_first_person" },
{ "controller.render.knightoftbw_cloak": "q.equipped_item_all_tags('slot.armor.chest', 'knightoftbw_cloak') && variable.is_first_person" },
                
                
{ "controller.render.ED": "query.get_equipped_item_name('main_hand') == 'e_d' && variable.is_first_person" },

{ "controller.render.bainha": "q.equipped_item_all_tags('slot.weapon.mainhand', 'bainha_empty') && variable.is_third_person" },
{ "controller.render.bainha_dual": "q.equipped_item_all_tags('slot.weapon.mainhand', 'bainha_dual_empty') && variable.is_third_person" },

{ "controller.render.menu": "query.get_equipped_item_name=='aos_menu'" },
       { "controller.render.menu1": "query.get_equipped_item_name=='aos_menu1'" },
       { "controller.render.menu2": "query.get_equipped_item_name=='aos_menu2'" },
       { "controller.render.menu3": "query.get_equipped_item_name=='aos_menu3'" },
       { "controller.render.menu4": "query.get_equipped_item_name=='aos_menu4'" },
       { "controller.render.menu5": "query.get_equipped_item_name=='aos_menu5'" },
        {
          "controller.render.t_saoReputation1": "query.mark_variant == 0"
        },
        {
          "controller.render.t_saoReputation2": "query.mark_variant == 1"
        },
        {
          "controller.render.t_saoBar1": "variable.saoBar1"
        },
        {
          "controller.render.t_saoBar2": "variable.saoBar2"
        },
        {
          "controller.render.t_saoBar3": "variable.saoBar3"
        },
        {
          "controller.render.t_saoBar4": "variable.saoBar4"
        },
        {
          "controller.render.t_saoBar5": "variable.saoBar5"
        },
        {
          "controller.render.t_saoBar6": "variable.saoBar6"
        },
        {
          "controller.render.t_saoBar7": "variable.saoBar7"
        },
        {
          "controller.render.t_saoBar8": "variable.saoBar8"
        },
        {
          "controller.render.t_saoBar9": "variable.saoBar9"
        },
        {
          "controller.render.t_saoBar10": "variable.saoBar10"
        },
        {
          "controller.render.t_saoBar11": "variable.saoBar11"
        },
        {
          "controller.render.t_saoBar12": "variable.saoBar12"
        },
        {
          "controller.render.t_saoBar13": "variable.saoBar13"
        },
        {
          "controller.render.t_saoBar14": "variable.saoBar14"
        },
        {
          "controller.render.t_saoBar15": "variable.saoBar15"
        },
        {
          "controller.render.t_saoBar16": "variable.saoBar16"
        },
        {
          "controller.render.t_saoBar17": "variable.saoBar17"
        },
        {
          "controller.render.t_saoBar18": "variable.saoBar18"
        },
        {
          "controller.render.t_saoBar19": "variable.saoBar19"
        },
        {
          "controller.render.t_saoBar20": "variable.saoBar20"
        }
      ],
      "enable_attachables": true
    }
  }
}
