Skip to content

CursorCentered Fix Mod para Minecraft 1.20.1, 1.21.1

Un mod de Minecraft que corrige el problema de centrado del cursor que ocurre ocasionalmente al abrir una GUI.

descargas
8 descargas
visualizaciones
37 visualizaciones
Actualizado
Actualizado 04.10.2026

Acerca del mod CursorCentered Fix

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 ydotool or 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:

ALL=(ALL) NOPASSWD: //default path: /usr/local/bin/ydotoold ALL=(ALL) NOPASSWD: //default path: /usr/local/bin/ydotool

wdotool

wdotool is another great option of the feature which was released recently and is being actively developed. It is much easier to configure and you can directly head to their github page for a detailed configuration guide. (Note that you need to run sudo install -m 755 target/release/wdotool /usr/local/bin/wdotool additionally if building from source)

Once configured, you can use this tool as the backend of the mod by specifying the JVM argument -DuseWdotool=, where is based on your compositor.

Specify a move scaling value (Optional)

There is an internal problem of moving cursor on wayland programmatically - the actual moved position may be affected by some system values depending on your desktop environment. In other words, the default centering position is guaranteed correct only with default mouse sensitivity and mouse acceleration disabled (also requires default UI scale in some desktop environments). Fortunately, the requested position and actual position seem to always satisfy a liner function relationship, so we can use a double factor to correct it.

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= to apply it, this value should be always correct util you change the system mouse sensitivity/acceleration or UI scaling value.

Known Issue

A real Wayland (not XWayland) window cannot get its absolute position on screen, therefore the calculated central point is only correct if the position of the game window is (0,0).

Cómo instalar CursorCentered Fix

With Millida Launcher

  1. Install Millida Launcher

    The launcher is free: download it at millida.net/launcher and sign in with any nickname.

  2. Click “Install” on this page

    The launcher opens and installs the mod for Minecraft 1.14.4–26.2 on Fabric, Forge or NeoForge automatically.

  3. Launch the game

    A profile with it appears in the launcher: click “Play”.

Manually

  1. Install Fabric, Forge or NeoForge

    The loader must match the game version of the mod file, for example Minecraft 26.2. After installing it, a separate profile appears in your launcher.

  2. Download the file for your version

    In the version list above, pick the file cursorcenteredfix-1.4.1-fabric+26.1-26.2.jar (10 KB) for your game version and loader.

  3. Put it in the mods folder

    The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it.

  4. Launch the loader profile

    Open “Mods” in the main menu: CursorCentered Fix should be in the list.

CursorCentered Fix works on the player’s side only: there is no need to install it on a server.

Versiones

Con dependencias

MinecraftCargadorArchivoFechaAcciones
1.21.11Fabric1.21.1110.8 KB 4
1.16.5Forge1.16.510.3 KB
26.2Fabric26.210.4 KB 3
1.20.4Forge1.20.411.6 KB
26.2NeoForge26.210.5 KB 1
1.16.5Forge1.16.510.3 KB
26.2Fabric26.210.3 KB
26.2NeoForge26.210.4 KB

FAQ

Which Minecraft versions does CursorCentered Fix work on?

There are files for 1.14.4–26.2, 43 versions in total. The newest is 26.2.

Is CursorCentered Fix for Forge or Fabric?

There are files for Fabric: 1.14.4–26.2, for Forge: 1.16.5–1.20.4 and for NeoForge: 1.20.5–26.2.

Does CursorCentered Fix need other mods?

The author lists no required dependencies: the Fabric, Forge or NeoForge loader is enough.

Do I need to install CursorCentered Fix on a server?

No. CursorCentered Fix works on the player’s side only: there is no need to install it on a server.

Where can I download CursorCentered Fix safely?

On this page: the file cursorcenteredfix-1.4.1-fabric+26.1-26.2.jar (10 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: 891757a1c12164f930ef7e3af15d62b98af5f44d.

Reseñas

Sé el primero en valorar CursorCentered Fix

Comentarios 0

Inicia sesión para comentarIniciar sesión

Mods similares

Todos los mods

Más sobre esto

Autor: LitnhJacuzziLicencia: GPL-3.0-onlyCódigo fuente

¿Eres el autor? Escríbenos — lo retiraremos en 48 horas.