Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Tags
Creators
Details
Sprint Lock is a lightweight, client-side quality-of-life Fabric mod designed to solve one of Minecraft's most persistent minor annoyances: the constant resetting of your Toggle Sprint preference.
In vanilla Minecraft, your Toggle Sprint state is incredibly fragile. The game clears your sprint state whenever you die and respawn, cross dimensions (like entering the Nether or End), log out of a world, disconnect from a server, or even accidentally tap the sprint key again. Having to manually re-activate sprinting after every common event breaks game flow and is highly disruptive.
Sprint Lock resolves this issue permanently by patching the underlying key mapping and reset logic directly. Instead of forcing sprinting through raw input injection every tick, it preserves the native Toggle Sprint state across all player recreation events. Once you enable the mod and toggle your sprint on, it stays locked on.
Key Features
- Indestructible Sprint State: Stays active through player deaths, dimension changes, server disconnects, and re-logging.
- No Accidental Toggles: Prevents pressing the sprint key from toggling it off while playing.
- Seamless Settings Integration: Works perfectly regardless of whether your vanilla setting is set to Hold or Toggle.
- Highly Optimized: Pure mixin implementation with zero performance overhead.
- Mod Menu Config: Includes a clean, simple toggle button in Mod Menu to turn the mod off and instantly restore vanilla behavior.


