Spear Lunge Swap

About

Client-side Minecraft mod for Fabric 1.21.11 that enables spear lunging mechanics. When the player presses the R key, the mod automatically switches to slot 7 (where the spear is equipped) and performs a lunge attack. The mod tracks the player's previous hotbar slot and restores it after the lunge completes. It integrates with vanilla attack mechanics, requiring both R and left mouse button presses to trigger the lunge, preventing it from being considered a cheat. The mod uses keybindings, packet handling, and client-side movement simulation to execute the lunge action smoothly.