Newon GoogleMake CraftRank a preferred source in Google SearchAdd on Google ›
CraftRank SitesA free website and store for your server Make yours ›AshlarFree server software built on Paper, with DDoS and backdoor protection See Ashlar ›Security RadarA free check of your server's login, anti-bot and proxy settings, only with your OK See how it works ›CommunityAsk questions, share builds and find people to play with Join the forum ›
Resources / Mods / FixCursor

FixCursor

Fixes the mispositioned cursor when opening inventory and container screens (MC-261980). Either centres the cursor reliably, or restores the position it had…

ModsFree1.21
by somik007 · listed from Modrinth
Download ›

Direct download from Modrinth · 8 downloads

Legal notice

Source and ownership. This page was generated automatically from public data that Modrinth provides through its public API. The name, descriptions, images, trademarks and all other content of this project belong to somik007 and their respective owners. CraftRank is not the author of this project and is not affiliated with, endorsed or sponsored by its author or by Modrinth.

Hosting and distribution. CraftRank does not host, store, upload or distribute the download files of this project, and no such file is kept on CraftRank's servers. Every download is provided directly by Modrinth from its own servers; the Download button only links to the file there. The license stated on Modrinth is MIT.

Use of public APIs. Modrinth, Hangar (PaperMC) and SpigotMC (through the Spiget API) make their APIs publicly available to third-party websites and applications. Modrinth's Terms of Use give API users a license to download, display and query content through their own services (section “API Usage”), and creators who publish on Modrinth grant Modrinth and its licensees the right to display and distribute their content to third parties (section “User Contributions”). CraftRank uses these APIs in line with the platforms' published rules: it identifies itself in every request and respects their rate limits.

No warranty. The information on this page is provided "as is", without any warranty. Downloading and using this project is at your own risk and subject to the license and terms of its author.

Copyright notices (DMCA). Only the copyright owner or someone authorised to act for them may file a notice, and it must come from a person of legal age or from their parent or legal guardian. A valid notice sent to abuse@craftrank.org must contain: the link of this page; the work claimed to be infringed; your full name, postal address, phone number and e-mail; a statement that you believe in good faith that the use is not authorised by the owner, its agent or the law; a statement, under penalty of perjury, that the notice is accurate and that you are the owner or authorised to act for them; and your physical or electronic signature. Incomplete notices are not processed. Valid notices are acted on within 48 hours, with no need to go through Google.

False notices. Anyone who knowingly misrepresents that material is infringing is liable for the damages caused, including costs and attorneys' fees (17 U.S.C. § 512(f)). Notices filed in bad faith or by someone who does not hold the rights are kept on record and will be contested.

What it does

FixCursor is a mod made by somik007. Fixes the mispositioned cursor when opening inventory and container screens (MC-261980). Either centres the cursor reliably, or restores the position it had…

It supports Minecraft 1.21. It has been downloaded 8 times on Modrinth. The last update came out on Sep 21, 2026.

Supported versions

1.21

Release history

The newest is 1.21.11, released on Sep 21, 2026. It is made for Minecraft 1.21.11. It runs on Fabric. The download is 26 KB.

VersionReleasedMinecraftType
1.21.11Sep 21, 20261.21.11Release
Description from the author on Modrinth

FixCursor

The cursor lands in a random spot when you open your inventory. This fixes it.

You know the one. You alt-tab, come back, press E, and the mouse is somewhere off in
a corner — or on your second monitor. You have to go find it before you can click
anything. That is MC-261980, and it has been
around for years.

FixCursor puts the cursor where it belongs. Client-side, no server component, nothing
else touched.

Two modes

Mode · What it does
Centre (default) · Every container opens with the cursor in the middle of the window. The reliable version of what vanilla already tries to do.
Restore · Remembers where the cursor was when you last closed a given screen, and puts it back there next time.

In Restore mode the inventory, a chest and a crafting table each keep their own position,
and positions are stored as a fraction of the window (0..1) — so changing GUI scale,
resolution or window size does not throw them off.

Why vanilla gets it wrong

The call order is inverted. Vanilla sets the cursor position *while the cursor is still
captured*, and only releases it afterwards:

GLFW.glfwSetCursorPos(handle, x, y); // cursor still captured
GLFW.glfwSetInputMode(handle, GLFW_CURSOR, mode); // released only now

GLFW drops a position that is set while the cursor is captured. The call silently does
nothing, the mode switches without coordinates, and the cursor shows up wherever the OS
last left it. FixCursor swaps the two calls for the released modes and leaves the capture
path untouched. Verified against the 1.21.11 client bytecode.

Client-side only

  • No packets. Nothing is sent to the server.
  • No item, inventory or click-timing logic.
  • No gameplay changes of any kind.
  • Works on any server, vanilla or modded.

The only calls it makes are glfwSetCursorPos, glfwSetInputMode, glfwGetCursorPos,
glfwGetWindowSize and glfwGetInputMode. If you have ever hesitated over a cursor mod
because of anticheat: there is nothing here for one to look at.

Requirements

Minecraft · 1.21.11
Fabric Loader · 0.19.2+
Java · 21+
Fabric API · required
Mod Menu · required
Cloth Config API · required

Mod Menu and Cloth Config are hard requirements because they are the only way to change
the mode in game.

Configuration

Everything lives in Mod Menu → FixCursor. Two extra toggles:

  • Remember per screen type — on by default. Turn it off for one position shared by

every screen.

  • Apply to every screen — off by default. Container screens are the ones that matter;

turn this on if you also want it on chat and menus.

Settings are stored in config/fixcursor.json. In Centre mode the mod never writes to
disk at all. Delete the file to forget every stored position.

License

MIT.

Курсор улетает в случайное место при открытии инвентаря. Это лечит.

Знакомая ситуация: свернул игру, вернулся, нажал E — а мышь где-то в углу или
вообще на втором мониторе. Это MC-261980,
и живёт он годами.

FixCursor ставит курсор туда, где ему место. Только клиент, никакой серверной части.

Два режима:

  • Центр (по умолчанию) — каждый контейнер открывается с курсором в середине окна.

Надёжная версия того, что ваниль и так пытается сделать.

  • Восстановить — помнит, где курсор был при закрытии конкретного экрана, и

возвращает его туда в следующий раз. Инвентарь, сундук и верстак помнят каждый своё.

Позиции хранятся в долях окна (0..1), поэтому смена GUI scale, разрешения и размера
окна их не сбивает.

Почему ваниль ломается: порядок вызовов перевёрнут — позиция ставится пока курсор
ещё захвачен, а GLFW такую позицию отбрасывает. Вызов молча проваливается, и курсор
появляется там, где его оставила ОС.

Только клиентская часть: ни пакетов, ни логики предметов и инвентаря, ни таймингов
кликов. Работает на любом сервере.

Требуется: Minecraft 1.21.11, Fabric Loader 0.19.2+, Java 21+, Fabric API,
Mod Menu и Cloth Config API — последние два обязательны, через них переключается режим.

Настройки: Mod Menu → FixCursor.

Written by somik007. Read it with pictures on Modrinth.

How to install FixCursor

  1. This mod runs only on your own game. Servers do not need it, so you can use it on any server.

  2. Install Fabric for Minecraft 1.21.

  3. Add the mods it needs: Cloth Config API, Mod Menu and Fabric API.

  4. Download the .jar file from Modrinth and put it in the mods folder of your .minecraft directory.

  5. Start Minecraft with the Fabric profile.

  6. Easier: in Prism Launcher or the Modrinth App, search for FixCursor in your instance's mods and click Install. It adds the loader and the mods it needs for you.

Full guide: How to install Minecraft mods

Compatibility

Minecraft versions
1.21
Runs on
Fabric
Where it runs
Client only (your game)
Edition
Java
Needs
Cloth Config API, Mod Menu, Fabric API
License
MIT
Price
Free
Upkeep
Actively updated (Nov 23, 2026)

FixCursor compared with similar ones Compare all alternatives

ResourceDownloadsVersionsLast updatePrice
FixCursorthe one you looked at81.21Sep 21, 2026Free
Cursor CrosshairJacobStar_16126.xSep 27, 2026Free
Projection Opens Genshin / Crashtianhongya611.21 – 26.xAug 9, 2026Free
FlashbackContainersDinaster8520026.x9 days agoFree

Questions

Does FixCursor work on Minecraft 26.x?

Not yet. The newest version it supports is Minecraft 1.21.

Is FixCursor free?

Yes. FixCursor is free to download from Modrinth.

Is FixCursor client-side or server-side?

Client-side. FixCursor goes in your own mods folder and works on any server, including servers without mods.

Does FixCursor need anything else?

Yes: Cloth Config API, Mod Menu, Fabric API. Install it before FixCursor.

Is FixCursor still updated?

Yes. The last update came out in the past day.

What are the best alternatives to FixCursor?

The closest ones are Cursor Crosshair, Projection Opens Genshin / Crash and FlashbackContainers. Compare all alternatives

Alternatives to FixCursor

Cursor CrosshairMods · 26.x

Free your crosshair from the center of the screen and control it with your mouse—interact with blocks, entities, and hotbar slots without moving the camera.

Free161 downloads
FlashbackContainersMods · 26.x

Flashback Containers An addon for Flashback that records the containers you open (chests, furnaces, crafting tables, your own inventory...) and shows them in…

Free200 downloads
Compare all alternatives ›

Reviews

–★★★★★
0 reviews
50
40
30
20
10

Log in to leave a review.