CursorCentered Fix
🟡 Updated this year⚠️ Install Order · 2 steps
Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.
Preview

🔍 Analysis
- 👍 0.0% endorsement rate
- 🏆 #1179 of 1284 fabric mods in this game by downloads
📋 About This Mod
This mod fixes the cursor centering issue that occasionally happens when opening a GUI, e.g. open a container GUI but the cursor doesn't appear from the center which could be dangerous when you need to pull something from a chest or inventory rapidly.
Vanilla has shipped to SDL backend after 26. 3 which completely resolved the cursor centering issues, so this mod will not be update to versions above 26. 2.
# For Wayland Users This mod supports centering the cursor on wayland using (https://github.com/ReimuNotMoe/ydotool) or (https://github.com/cushycush/wdotool), to enable this feature, you need to configure them properly, here are the basic setup steps: ## ydotool ### 1. Install ydotool from source The latest version of ydotool provides seamless centering experience, however it can only be built and installed from source at the moment. This tool is only effective with XWayland.
To build an install it, just execute these commands in terminal under any directory: ``` //install command may vary on different platforms sudo apt install git cmake scdoc
git clone https://github.com/ReimuNotMoe/ydotool.git
cd ydotool
mkdir build
cd build
cmake ..
make -j "$(nproc)"
sudo make install
```
Running `ydotoold -V` to verify your installation.
### 2. Add your user to sudo exceptions
The only way to successfully center the cursor using ydotool in Minecraft is running ydotool command with `sudo` privilege. Thus you need to make your user be able to run ydotool command with sudo without password: edit /etc/sudoers, add two lines:
```
Once configured, you can use this tool as the backend of the mod by specifying the JVM argument `-DuseWdotool=
To determine this value, run the game with this mod and open any container GUI, the mod will center the cursor using default scaling value (1. 0), then keep your cursor at that position and take out your ruler, put it on your monitor to measure its absolute position, record `x` or `y` as `x1` or `y1`. Next, keep the position of your game window and determine the actual central point, also measure its absolute position with your ruler, record `x` or `y` as `x2` or `y2`, then the scaling value should be `x2 / x1` or `y2 / y1`. Note that the game window is better to be small (1/2 screen width/height is ok) and close to top-left to ensure the cursor will not go outside the screen, or its position is not reliable (be constrained to screen border). This step can also be done by taking screenshots and measuring the position using a painting software that displays pixel coordinates, which is more accurate. You can round the value if necessary.
After determining the scaling value, you can restart the game with a JVM argument `-DcursorMoveScalingValue=
📊 Mod Details
- Game
- Minecraft Mods
- Author
- LitnhJacuzzi
- Version
- 1.4.0
- Downloads
- 499,974
- Endorsements
- 85
- Category
- fabric
- Created
- 4/7/2023
- Updated
- 8/17/2026
- Game Versions
- 26.1, 26.1.1, 26.1.2, 26.2
- Tags
- game-mechanics, utility
🔧 How to Install Minecraft Mods Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
📖 Full step-by-step install guide for Minecraft Mods →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.
❓ Frequently Asked Questions
Which Minecraft Mods versions does CursorCentered Fix support?
The author lists 26.1, 26.1.1, 26.1.2, 26.2. Other versions may work but are untested by the author.
What is the latest version of CursorCentered Fix?
Version 1.4.0, published 2026-08-17 with 499,974 downloads recorded at the source.
Keep browsing — more Minecraft Mods mods await