HomeJavaModstweak mouse sensitivity
tweak mouse sensitivity
ModsJava

tweak mouse sensitivity

by Prohect · on Modrinth

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 26.1–26.2⬇ Download for 1.21–1.21.11⬇ Download for 1.20.5–1.20.6⬇ Download for 1.20.1–1.20.4
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.

1.0.0.3

Version id with suffix 'a' means it works like cs series or Apex while 'b' means it's original idea. I'll update both when new mc version release. Chose the version on your own.

1.0.0.2

make the sensitivity procedule same as counterStrike2

1.0.0.1 or below

the dpi range provided by the mouse is going higher and higher, the origin mouse sensitivity procedure is not working cool when u set dpi to value like 20000. this mod only do one simple thing: multiply the origin mouse sensitivity by itself when processing

Original Code:

Double value = that.client.options.getMouseSensitivity().getValue();
double d = value * 0.6F + 0.2F;
double e = d * d * d;
double f = e * 8.0;
i = that.cursorDeltaX * f;
j = that.cursorDeltaY * f;

Modified Code:

for versionID with suffix b

Double value = that.client.options.getMouseSensitivity().getValue();
double d = value * 0.6F + 0.2F;
double e = d * d * d * value; // Multiply e by mouseSensitivity
double f = e * 8.0;
i = that.cursorDeltaX * f;
j = that.cursorDeltaY * f;

for versionID with suffix a somehow make it finnally same as cs2 which is 0.022 * cursorDeltaX|Y

The variables i and j are ultimately added to your look direction. f is used for non-spyglass views, while e is used for spyglass views.

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