HomeJavaModsSneakFix
SneakFix
ModsJava

SneakFix

by Lightningbulb · on Modrinth

Simple mod that ignores the visual acknowledgment packets for crouching because it desyncs and makes the player crouch twice on the client end.

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Fabric only.

⬇ Download for 1.21–1.21.4⬇ Download for 1.20.2
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
SneakFix — screenshot 1

Ever since the crouching animation was added this bug has existed: https://bugs.mojang.com/browse/MC-159163

It's because the server sends back the visual starting and stopping crouching animations when the player crouches, but information takes time to travel and it is trivial to crouch and uncrouch before the server sends those packets back. This causes a visual desync on the client end.

Don't believe me? (Speedbridgers know this all too well)

Load up a world or join a server after version 1.14 and tap your crouch key very quickly. (as in press crouch and quickly uncrouch, not spam it). You will notice and extra crouch animation much of the time.

BTW

This mod borrows code from sneak tweaking here:

https://www.curseforge.com/minecraft/mc-mods/sneak-tweak

so if you want more functionality to tweak how crouching works, then go there. I just wanted to fix a bug not a bigger mod with dependencies.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more