shuraa-lox/Spear-Swapper — reverse-engineered prompt

Reverse engineered prompt

Build me a simple Minecraft Fabric mod called Spear Swapper that makes lunge spear movement work smoothly by automatically swapping the spear the right way while I hold a key.

I want it to be easy to use in game. Add a keybind in Controls, default it to R, and when I hold it the mod should work as long as I have a lunge spear somewhere in my hotbar. It should be meant for fast movement, so it should play nicely when I’m on a low cooldown slot like bread, golden carrot, wind charge, or ender pearl, and not really be designed around heavy weapon slots like a mace or sword. If hunger or saturation is too low for it to work properly, handle that sensibly.

Please make it for the version shown in the repo, with Fabric API support, and leave the project in a buildable state with a jar I can drop into my mods folder. Also update the README with very basic install and use instructions. Look up current docs online if you need to.

Want more depth? Deep Reverse