Toggle sprint for Minecraft 1.8.9 (Forge, works in Lunar Client). Tap your sprint key once and you keep sprinting without holding it. Tap it again to stop.
ToggleSprint only holds the vanilla sprint key down for you, so Minecraft still decides when you can actually sprint: you have to be moving forward, have more than 3 hunger bars (6 food points), not be using an item and not be blind. It works the same in singleplayer and on any server.
- Download
togglesprint-1.0.jarfrom the releases page. - Put it in your Forge 1.8.9 mods folder. For Lunar Client that is
%USERPROFILE%\.lunarclient\profiles\1.8\mods\forge-1.8.9\. - Start the game and tap your sprint key.
If you have toggle sprint turned on in one of Lunar's own mods, turn it off there so the two don't fight over the key.
| What you do | What happens |
|---|---|
| Tap the sprint key | Sprint toggle turns on. The key stays held until you tap it again |
| Tap the sprint key again | Sprint toggle turns off and the key goes back to your real button |
| Open a menu or chat | Taps there don't toggle. The toggle picks up again when the menu closes |
| Restart the game | The toggle is in the same state you left it in |
It uses whatever key or mouse button you bound to Sprint under Controls, so there is no separate key to set up.
While the toggle is on, the top-left corner shows [Sprinting (Toggled)] when you are sprinting and [Sprint Toggled] when you aren't (standing still, out of food and so on). The text is hidden while the F3 screen is open.
There is no settings screen. The settings are in .minecraft\config\togglesprint.cfg:
| Setting | Default | What it does |
|---|---|---|
toggled |
false | Whether the toggle is on. ToggleSprint saves this every time you tap the key |
showHud |
true | Show the [Sprinting (Toggled)] text in the top-left corner |
Edit the file while the game is closed, or your changes are overwritten the next time you tap the key.
Needs JDK 8. Run gradlew build in this folder. The jar ends up in build\libs\.
MIT. See LICENSE.