{
  "format_version": "1.10.0",
  "minecraft:attachable": {
    "description": {
      "identifier": "add:wood_shield",
      "materials": {
        "default": "entity_alphatest",
        "enchanted": "entity_alphatest_glint"
      },
      "textures": {
        "default": "textures/entity/shield_wood",
        "enchanted": "textures/misc/enchanted_item_glint"
      },
      "geometry": {
        "default": "geometry.spartan_shield",
        "no_blend": "geometry.spartan_shield2"
      },
      "animations": {
        "charged_offhand": "animation.spartan_charged2",
        "charged_mainhand": "animation.spartan_charged1",
        "binding": "animation.spartan_binding",
        "firstperson_charged_offhand": "animation.spartan2fp",
        "firstperson_charged_mainhand": "animation.spartan1fp",
        "position": "animation.spartan_shield_position"
      },
      "scripts": {
        "pre_animation": [
          "variable.no_blend1 = c.item_slot == 'main_hand';",
          "variable.no_blend2 = c.item_slot == 'off_hand';",
          "variable.disable_charge = (q.get_equipped_item_name('off_hand') == 'stone_shield' || q.get_equipped_item_name('off_hand') == 'gold_shield' || q.get_equipped_item_name('off_hand') == 'wood_shield' || q.get_equipped_item_name('off_hand') == 'obsidian_shield' || q.get_equipped_item_name('off_hand') == 'iron_shield' || q.get_equipped_item_name('off_hand') == 'diamond_shield' || q.get_equipped_item_name('off_hand') == 'netherite_shield') && variable.no_blend1;"
        ],
        "animate": [
          { "charged_offhand": "!c.is_first_person && variable.no_blend2 && q.is_sneaking && !(q.get_equipped_item_name('main_hand') == 'shield' || q.scoreboard('ataque') == 1)" },
          { "charged_mainhand": "!c.is_first_person && variable.no_blend1 && q.is_sneaking && !(q.get_equipped_item_name('off_hand') == 'shield' || variable.disable_charge || q.scoreboard('ataque') == 1)" },
          { "firstperson_charged_offhand": "c.is_first_person && q.is_sneaking && variable.no_blend2 && !(q.get_equipped_item_name('main_hand') == 'shield')" },
          { "position": "(variable.no_blend2 || variable.no_blend1) && c.is_first_person" },
          { "binding": "variable.no_blend1 || variable.no_blend2" },
          { "firstperson_charged_mainhand": "c.is_first_person && q.is_sneaking && variable.no_blend1 && !(q.get_equipped_item_name('off_hand') == 'shield' || variable.disable_charge)" }
        ]
      },
      "render_controllers": [ "controller.render.spartan_shield" ]
    }
  }
}
