Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
Double-tapping the forward key (W) to sprint sucks. Every time you brush against a block slightly the game removes your sprint, which isn't a big deal if you're holding down the sprint key (Ctrl) but it's absolutely unbearable if you are a double-tap sprint user because that means you're gonna have to double-tap again.
You can kinda solve this problem by enabling the sprint toggle option in the game's settings but that's not a proper solution. That's why I made this mod! Oh, and I've also fixed sprinting for those of you who sprint by tapping the sprint key (without holding it down).
Warning
This mod is not a "hack" and does not offer unfair advantages over other players. Therefore, in theory, it should not get you banned if used on a public multiplayer server. In practice, I'm not liable for any server ban you might receive while using this mod.
Key points
-
Double-tap sprinting has been changed to be purely input-based instead of being momentum-based.
-
Double-tap sprinting can now be used to start sprinting in situations where, in vanilla, you can only sprint with the sprint key (for example, when flying in creative mode).
-
The concept of attempting to sprint has been introduced: when you try to sprint in a situation where you can't (for example, when there's a block in right front of you), the game will remember it and put you in a sprinting state as soon as it becomes possible.
Available options
There are a few options that you can customize with Mod Menu:
-
Apply to sprint key
Whether or not the mod should work with the Sprint key. Disable this option if it's causing incompatibilities with other mods that affect the sprint key
-
"Walk, stop, sprint" double-tap sprint logic
An alternative double-tap sprint logic that some might prefer to the vanilla-styled one. While you're walking, simply release the Forward key and then quickly press it again to start sprinting/attempting to sprint.
-
Persist through GUI screens
When this option is enabled and you're in a sprinting/attempting-to-sprint state, opening a GUI screen (inventory, pause menu, chat, etc. Basically all menus where you can't move) won't make you stop attempting to sprint. What this means is that if you close the GUI screen while holding Forward you'll resume sprinting. If you find this behavior unintuitive, you might want to disable this option.
-
Keep vanilla double-tap sprint intact
By default this mod disables the vanilla double-tap sprint logic and adds its own. If you enable this option, however, both implementations shall remain active. This option might or might not improve compatibility with other mods that affect double-tap sprinting, but it could also potentially cause issues. If you're unsure, leave this option DISABLED.
-
Sprint attempt window
The maximum amount of time, expressed in ticks (20 ticks = 1 second), during which you can stay in an attempting-to-sprint state. After this time has passed, if you still aren't sprinting (for example, if you're too hungry to sprint) you'll revert to not being in an attempting-to-sprint state. Setting this option to zero disables the window.


