{
  "format_version": "1.10.0",
  "minecraft:attachable": {
    "description": {
      "identifier": "pixel:stone_spear",
      "materials": {
        "default": "entity_alphatest",
        "enchanted": "entity_alphatest_glint"
      },
      "textures": {
        "default": "textures/entity/stone_spear",
        "enchanted": "textures/misc/enchanted_item_glint"
      },
      "geometry": {
        "mainhand": "geometry.spear",
        "offhand": "geometry.spear"
      },
      "animations": {
        "defi": "controller.animation.spear.attack"
      },
      "scripts": {
        "animate": [
          { "defi": "c.is_first_person && c.item_slot == 'main_hand' && q.get_equipped_item_name('main_hand') == 'stone_spear'"
          }
        ]
      },
      "render_controllers": [ { "controller.render.weaponk": "c.item_slot == 'main_hand'" } ]
    }
  }
}
