Skip to content

Instantly share code, notes, and snippets.

@Mumberthrax
Last active August 29, 2015 13:56
Show Gist options
  • Save Mumberthrax/8798865 to your computer and use it in GitHub Desktop.
Save Mumberthrax/8798865 to your computer and use it in GitHub Desktop.
Toggle Sneak for minecraft
/*
Togglesneak v.1.1
By Mumberthrax
License: cc-by-sa
changelog:
1.0 - herpaderp
1.1 - use left shift key to toggle sneak. Included commented-out option for using left control instead
Known bugs:
- cannot chat while sneaking is toggled
*/
/*
; Uncomment for people who use the left control key
LControl::
if GetKeyState("LControl") ; LControl is logically down. Release it.
Send {Blind}{LControl Up}
else ; LControl is logically up. Press it.
Send {Blind}{LControl Down}
return
*/
LShift::
if GetKeyState("LShift") ; LShift is logically down. Release it.
Send {Blind}{LShift Up}
else ; LShift is logically up. Press it.
Send {Blind}{LShift Down}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment