Spear Swap

About

SpearSwap is a Minecraft Fabric mod that automates weapon swapping for spears. When holding a spear and left-clicking, the mod instantly swaps to another hotbar slot for one tick, then returns to the spear. This enables advanced combat techniques like shield-bashing or offhand attacks while maintaining spear priority. The feature activates only when a spear is equipped in the main hand, preventing accidental swaps with other weapons. The mod listens for attack keybind events, performs the temporary slot exchange, and restores the original spear position seamlessly.