“spear” can be specified as an animation type for items through custom components. However, in first person, it will have no effect whatsoever, which makes it a bit pointless and also inconsistent with actual spears, which for some reason do display the animation correctly.
To reproduce, give yourself a stick with the following command: /give @s minecraft:stick[minecraft:consumable={animation:spear,has_consume_particles:false}]
Expected results: using this stick would play the same animation as using a spear, since the spear animation type is very explicitly specified in the command.
Actual results: there is no animation at all in first person, and you only see a shift in position in third person.
To fix: make this animation work correctly in first person.
Thank you for helping us improve Minecraft! We saved your files: