Mods / Toggle Sneak

Tags:
QoL Tweak
Author:
Primer81
Side:
Client
Created:
Mar 31st 2025 at 4:44 AM
Last modified:
Apr 18th 2025 at 3:44 AM
Downloads:
1358
Latest release (for Vintage Story 1.20.7, outdated):
togglesneak_1.1.0.zip  1-click install

Sneak is now toggleable. No need to hold the button for sneak. Only affects sneaking.

 

If you don't like testing the strength of your pinky (or your preferred phalange) while peering over a tall ledge, then this is the mod for you! πŸ˜„

 

Bugs

 

Active Bugs:

  • None! (that I know of πŸ˜‰)

 

Patched1 Bugs:

  • N/A

 

Fixed2 Bugs:

  • N/A

 

1 By patched, I mean the bug has been solved with a naive solution that should be replaced with a more robust solution later on. 🩹

2 By fixed, I mean the bug has been solved with a robust solution. πŸ› οΈ

Improvements

 

Improvements Made:

  • F01:
    • Description:
      • Given
        • sneak is toggled ON and
        • the "Mouse click modifiers locked to Sneak/Sprint keys" setting is toggled ON,
      • when the player interacts with right click,
      • then the right click interaction should be treated as a sneak right click interaction.
        • Note: Currently, the player's physical sneaking ability is toggleable, but NOT the interactions associated with sneaking. These include common interactions such as knapping that could benefit from making toggleable alongside physical sneak.
    • Added in v1.1.0 πŸŽ‰

 

Future Improvements:

  • F03: Add an independent setting for holding crouch versus toggling crouch
    • Kudos to @Tsukasa for suggesting this feature!
  • F02: Given the player is crouching, when the player gains mouse control (either manually with Alt key or automatically such as when a GUI opens), then the player stands up unexpectedly.
    • Kudos to @N0Stra_V0x for suggesting this feature!
    • Note: The same behavior is observed in Vanilla, but this mod aims to address this behavior regardless if possible.
  • None planned! (that I know of πŸ€”)

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
1.1.0 togglesneak 665 Apr 18th 2025 at 3:44 AM togglesneak_1.1.0.zip 1-click install

Improve sneak toggling by making it coincide with sneak interactions

Commit ID: ea71d3ed15507677e427ac1dc1d3912d88f5c103

1.0.5 togglesneak 152 Apr 7th 2025 at 4:12 AM togglesneak_1.0.5.zip 1-click install

Specify the mod is client side in `modinfo.json` to inform servers.

Commit ID: 3f4a59af3e7a8652c0c41a35993f004aca31713a

1.0.4 togglesneak 113 Apr 5th 2025 at 4:45 PM togglesneak_1.0.4.zip 1-click install

Apply fix from the Toggle Mouse Control mod to the Toggle Sneak mod. Note that in testing, v1.0.3 of the Toggle Sneak mod did NOT have the same issue as the Toggle Mouse Control mod which had world reload issues. However, the fix was applied despite that to align with best practices.

Commit ID: 8316ebc0d69a16ccf24930a0e680af34a665ffc7

1.0.3 togglesneak 115 Apr 3rd 2025 at 1:03 AM togglesneak_1.0.3.zip 1-click install

Update title in mod manager to be more readable.

Commit ID: c19a307

1.0.2 togglesneak 134 Apr 1st 2025 at 12:03 AM togglesneak_1.0.2.zip 1-click install

Add mod icon

Commit ID: 2e41e21

1.0.1 togglesneak 92 Mar 31st 2025 at 11:50 AM togglesneak_1.0.1.zip 1-click install

Update author and description

Commit ID: 177ccc3

1.0.0 togglesneak 87 Mar 31st 2025 at 4:48 AM togglesneak_1.0.0.zip 1-click install

Initial release

Commit ID: c83af09

Disclaimer

By downloading a mod you consent to our Terms of Use.

We tell you this specifically because we want to make sure you are aware that we cannot validate every mod, and you are responsible for any damages you might incur by installing or loading mods.

This prompt will not be shown to you again (for the current browser session) if you proceed.


16 Comments (oldest first | newest first) (threaded | flat)

Tsukasa, 5 days ago

Primer81 I patch this awesome mod, Toogle Sneak Patched, if you want me to remove the mod in any time let me know, tyvm for the kudos in the improvement, didn't see it before to thank you xD

Axebeard, Jun 9th at 2:24 AM

Please update for 1.22.3

FrostyOne94, May 25th at 12:40 PM

not working on 1.22

spacequeer, Feb 28th at 6:15 PM

Thank you for this mod! It seems to be working OK for me on 1.21.6 so far.

Kurazarrh, Jan 13th at 7:48 PM

First of all, love the mod; it has saved my pinky from soreness for far more hours than I can compute!

 

I do, however, need to report a bug. This mod has caused a couple crashes-to-desktop in the last week (once during a livestream, unfortunately). Luckily, the crash log has captured it, so I'll post the log here. So far it has happened twice: once while crouching to go down a ladder and once in creative mode while crouching to descend, and as soon as I touched a large gear, the game crashed.

 

Here is the crash log. Thanks, and I hope this helps track down any issues! Also just to note, I am using Linux (Bazzite 43) in case it matters here.

 

Crash Report
Game Version: v1.21.6 (Stable)
1/12/2026 5:04:16β€―PM: Critical error occurred in the following mod: togglesneak@1.1.0
Loaded Mods: birdseye@0.1.3, carpet@1.0.2, chiseltools@1.16.1, cobbleskulls@1.0.0, craftingjonas@1.0.6, dye_recipes_fix@1.1.0, leaflanternliningcontinued@1.1.2, manualquenching@1.0.10, moreparchment@1.0.0, nailsmold@1.0.2, noisybears@1.1.0, parchment-recipe@1.0.0, unpfix@1.0.0, shelfobsessed@1.9.5, temporal_gears_stack@1.0.0, translocatorengineeringredux@1.6.3, vanillaplus@1.4.0, game@1.21.6, wlts@1.0.0, zoombuttonreborn@2.0.1, egocaribautomapmarkers@4.0.3, awearablelight@1.1.4, betterfirepit@1.2.0, betterjonasdevicesfixed@2.1.4, betterruins@0.5.5, carryon@1.12.1, commonlib@2.8.0, Crateful@1.2.8, easylightlevels2025@1.1.0, farmlanddropssoil@1.4.0, farseer@1.3.3, flowerfarming@1.1.1, fromgoldencombs@1.9.4, hudclockpatch@1.1.2, improvedhandbookrecipescontinued@1.3.0, justanarrowheadmold@1.1.0, medievalexpansionpatch@1.3.4, simpleemotemenu@2.0.0, simpletailoring@1.1.6, stonebakeoven@1.2.0, todolist@2.2.4, togglesneak@1.1.0, vanity@2.4.6, creative@1.21.6, vsinstrumentsbase@2.0.6, survival@1.21.6, workbenchexpansionpatch@1.1.0, cheesemealbuff@1.0.0, tradercamps@1.1.7, em@3.4.1, slanted_display_cases@1.3.2, stonequarry@3.5.1, treetapping@1.0.0, bricklayers@3.1.5
Involved Harmony IDs: togglesneak
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Vintagestory.Client.NoObf.ClientMain.OnKeyUp(KeyEvent args) in VintagestoryLib\Client\ClientMain.cs:line 1849
at ToggleSneak.Patches.Before_ClientMain_OnKeyDown(ClientMain __instance, KeyEvent args) in C:\sw\all\vintage-story-mods\main\_src\src\ToggleSneak\ToggleSneak\ToggleSneakModSystem.cs:line 88
at Vintagestory.Client.NoObf.ClientMain.OnKeyDown_Patch1(ClientMain this, KeyEvent args)
at Vintagestory.Client.NoObf.ClientPlatformWindows.game_KeyDown(KeyboardKeyEventArgs e) in VintagestoryLib\Client\ClientPlatform\Input.cs:line 249
at OpenTK.Windowing.Desktop.NativeWindow.KeyCallback(Window* window, Keys key, Int32 scancode, InputAction action, KeyModifiers mods)
--- End of stack trace from previous location ---
at OpenTK.Windowing.Desktop.NativeWindow.RethrowCallbackExceptionsIfNeeded()
at OpenTK.Windowing.Desktop.GameWindow.Run()
at Vintagestory.Client.ClientProgram.Start(ClientProgramArgs args, String[] rawArgs) in VintagestoryLib\Client\ClientProgram.cs:line 347
at Vintagestory.Client.ClientProgram.<>c__DisplayClass10_0.<.ctor>b__1() in VintagestoryLib\Client\ClientProgram.cs:line 131
at Vintagestory.ClientNative.CrashReporter.Start(ThreadStart start) in VintagestoryLib\Client\ClientPlatform\ClientNative\CrashReporter.cs:line 95
Ill_Magnus, Dec 16th 2025 at 11:02 AM (modified Dec 16th 2025 at 11:14 AM)

really love this accessibility mod <3. i want to ask what you think about those suggestions and if you plan to do those:
- add toggle Ctrl/Sprint
- make the toggle option able to be turned on or off from the Accessibility settings, and also via a keybind
- something like this  (I've been used to this mod before)

Juppi, Oct 22nd 2025 at 5:53 AM

I can also confirm Toggle Sneak v1.1.0 is working fine in single player game v1.21.1 (stable).

lainbug, Sep 24th 2025 at 10:15 AM

Works fine in 1.21.1

FaeDaemon, Aug 8th 2025 at 1:41 PM (modified Aug 9th 2025 at 7:02 PM)

Running v1.20.12
I have ensured my options are as shown in screenshot (ie. sneak key is bound, "Mouse click modifierd locked..." option is ON), and sneak does not toggle, still hold-only.

Edit: unsure as of why, but after several restarts of the game, the mod is now working as intended.

Tsukasa, Apr 21st 2025 at 2:45 PM

Hello, tyvm for this mod, I got a doubt, it's posible to get the toggle on/off, so I can assing a mode to toggle it off for certain things, or mb have two bindings one from manual sneak and other for toggle, cause sometimes like in stairs or when I'm moving all the objects from/to toolbar, bag or storage sometimes it's just lock the object to the mouse, or I forgot have the sneak on and keep presing the sneak it just like spaming sneak, I don't know if I explain my self well

 

N0Stra_V0x, Apr 21st 2025 at 4:55 AM

If you're crouched and hit alt to use the immersive mouse it un crouches, would be cool to see that fixed somehow.

Primer81 , Apr 18th 2025 at 12:08 PM

Hey all - I just released v1.1.0 in which I took a totally new approach to toggling sneak that is closer to the root of the problem. This is what enables sneak right click interactions to be toggled alongside physical sneaking (F01). I hope you like the update as much as I do! 😊 

Primer81 , Apr 16th 2025 at 8:30 PM

@AzuliBluespots

Thank you! I gotta give credit for the profile Pic to a personal friend of mine, but I did use gimp to add those little icons. I'm glad someone appreciates them! ☺️

AzuliBluespots, Apr 16th 2025 at 12:19 PM

love the smug thumbnail with little qol control fixes, heh

Primer81 , Apr 2nd 2025 at 2:05 AM

Hey metasynthie - I just tested the "Charged Jump" mod and it seems compatible. I'm able to toggle sneak and transition into a charged jump no problem πŸ˜‰

 

I notice in your error it says "Assembly with same name is already loaded". Is it possible you have the "Toggle Sneak" mod installed in multiple locations? I would recommend checking the following directories:

C:\Users\<username>\AppData\Roaming\Vintagestory\Mods\

C:\Users\<username>\AppData\Roaming\VintagestoryData\Mods\

 

However, I did just try copying the mod into both directories on my end and it seems to still work - one of the duplicate instances gets disabled, but that's better than loading both!

metasynthie, Apr 1st 2025 at 6:15 PM

I got this error, but maybe it's due to compatibility with another mod? I also have "Charged Jump" installed which uses sneak to charge, so perhaps it is simply incompatible...?

1.4.2025 12:26:58 [Error] [togglesneak] An exception was thrown when trying to load assembly:
1.4.2025 12:26:58 [Error] [togglesneak] Exception: Assembly with same name is already loaded
at System.Runtime.Loader.AssemblyLoadContext.<LoadFromPath>g____PInvoke|5_0(IntPtr ptrNativeAssemblyBinder, UInt16* ilPath, UInt16* niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at System.Linq.Enumerable.SelectListIterator`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.ToList()
at Vintagestory.Common.ModContainer.LoadAssembly(ModCompilationContext compilationContext, ModAssemblyLoader loader) in VintagestoryLib\Common\API\ModContainer.cs:line 481