Skip to content

Instantly share code, notes, and snippets.

@Mumberthrax Mumberthrax/togglesneak
Last active Aug 29, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.