{"id":52594,"date":"2026-06-03T00:38:39","date_gmt":"2026-06-02T21:38:39","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/cursorcentered-fix\/"},"modified":"2026-06-03T00:38:39","modified_gmt":"2026-06-02T21:38:39","slug":"cursorcentered-fix","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/cursorcentered-fix\/","title":{"rendered":"CursorCentered Fix"},"content":{"rendered":"<p>This mod fixes the cursor centering issue that occasionally happens when opening a GUI, e.g. open a container GUI but the cursor doesn&#8217;t appear from the center which could be dangerous when you need to pull something from a chest or inventory rapidly.<\/p>\n<p># For Wayland Users<br \/>\nThis mod supports centering the cursor on wayland using ydotool (an automation tool on  wayland), to enable this feature, you need to configure this tool properly, here are the basic setup steps:<br \/>\n## 1. Install ydotool from source<br \/>\nThe latest version of ydotool provides seamless centering experience, however it can only be built and installed from source at the moment (the mod was using an outdated ydotool previously).  <\/p>\n<p>To build an install it, just execute these commands in terminal under any directory:<br \/>\n&#8220;`<br \/>\n\/\/install command may vary on different platforms<br \/>\nsudo apt install git cmake scdoc<\/p>\n<p>git clone https:\/\/github.com\/ReimuNotMoe\/ydotool.git<br \/>\ncd ydotool<br \/>\nmkdir build<br \/>\ncd build<br \/>\ncmake ..<br \/>\nmake -j &#8220;$(nproc)&#8221;<br \/>\nsudo make install<br \/>\n&#8220;`<br \/>\nRunning `ydotoold -V` to verify your installation.<br \/>\n## 2. Add your user to sudo exceptions<br \/>\nThe **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:<br \/>\n&#8220;`<br \/>\n<yourusername> ALL=(ALL) NOPASSWD:<ydotoold_path> \/\/default path: \/usr\/local\/bin\/ydotoold<br \/>\n<yourusername> ALL=(ALL) NOPASSWD:<ydotool_path> \/\/default path: \/usr\/local\/bin\/ydotool<br \/>\n&#8220;`<br \/>\n## 3. Specify a move scaling value (Optional)<br \/>\nThere is an internal problem of moving cursor on wayland programmatically &#8211; 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.<\/p>\n<p>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.<\/p>\n<p>After determining the scaling value, you can restart the game with a JVM argument `-DcursorMoveScalingValue=<value>` to apply it, this value should be always correct util you change the system mouse sensitivity\/acceleration or UI scaling value.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A Minecraft mod that fixes the cursor centering issue that occasionally happens when opening a GUI.<\/p>\n","protected":false},"featured_media":52595,"template":"","meta":{"_minecraft_slug":"cursorcentered-fix","_minecraft_project_id":"3Vf97jLY","_minecraft_author":"LitnhJacuzzi","_minecraft_license":"GPL-3.0-only","_minecraft_downloads":347968,"_minecraft_follows":71,"_minecraft_client_side":"required","_minecraft_server_side":"unsupported","_minecraft_storage_type":"zip","_minecraft_archive_name":"cursorcentered-fix.zip","_minecraft_size_bytes":47758,"_minecraft_version_count":8,"_minecraft_updated_at":"2026-05-16T18:22:45.737396Z","_minecraft_date_created":"2023-04-07T03:22:54.894615Z","_minecraft_date_modified":"2026-04-08T13:39:21.298607Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/cursorcentered-fix","_minecraft_icon_attachment_id":52595,"_minecraft_imported_at":"2026-06-02T21:38:39+00:00","_minecraft_import_hash":"bd901143af1b72039d786b315b3a4fe7","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[97,104,89,158,92],"mod_loader":[99,106],"minecraft_version":[110,111,112,113,114,115,116,117,118,119,120,46,47,48,49,50,51,52,53,54,55,56,57,58,59,36,60,93,94,101,102,62,37,40,41,73,74,38,78,79,80,81,82,83,167,163],"class_list":["post-52594","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-fabric","mod_category-forge","mod_category-game-mechanics","mod_category-neoforge","mod_category-utility","mod_loader-fabric","mod_loader-forge","minecraft_version-1-14","minecraft_version-1-14-1","minecraft_version-1-14-2","minecraft_version-1-14-3","minecraft_version-1-14-4","minecraft_version-1-15","minecraft_version-1-15-1","minecraft_version-1-15-2","minecraft_version-1-16","minecraft_version-1-16-1","minecraft_version-1-16-2","minecraft_version-1-16-3","minecraft_version-1-16-4","minecraft_version-1-16-5","minecraft_version-1-17","minecraft_version-1-17-1","minecraft_version-1-18","minecraft_version-1-18-1","minecraft_version-1-18-2","minecraft_version-1-19","minecraft_version-1-19-1","minecraft_version-1-19-2","minecraft_version-1-19-3","minecraft_version-1-19-4","minecraft_version-1-20","minecraft_version-1-20-1","minecraft_version-1-20-2","minecraft_version-1-20-3","minecraft_version-1-20-4","minecraft_version-1-20-5","minecraft_version-1-20-6","minecraft_version-1-21","minecraft_version-1-21-1","minecraft_version-1-21-10","minecraft_version-1-21-11","minecraft_version-1-21-2","minecraft_version-1-21-3","minecraft_version-1-21-4","minecraft_version-1-21-5","minecraft_version-1-21-6","minecraft_version-1-21-7","minecraft_version-1-21-8","minecraft_version-1-21-9","minecraft_version-26-1","minecraft_version-26-1-1","minecraft_version-26-1-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>CursorCentered Fix - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/cursorcentered-fix\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CursorCentered Fix - Minecraft\" \/>\n<meta property=\"og:description\" content=\"A Minecraft mod that fixes the cursor centering issue that occasionally happens when opening a GUI.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/cursorcentered-fix\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/cursorcentered-fix\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/cursorcentered-fix\\\/\",\"name\":\"CursorCentered Fix - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/cursorcentered-fix\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/cursorcentered-fix\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/cursorcentered-fix-icon-cf7de00e4556d40066c11f1424f5f712dde768c4_96.webp\",\"datePublished\":\"2026-06-02T21:38:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/cursorcentered-fix\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/cursorcentered-fix\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/cursorcentered-fix\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/cursorcentered-fix-icon-cf7de00e4556d40066c11f1424f5f712dde768c4_96.webp\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/cursorcentered-fix-icon-cf7de00e4556d40066c11f1424f5f712dde768c4_96.webp\",\"width\":96,\"height\":96},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/cursorcentered-fix\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"CursorCentered Fix\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CursorCentered Fix - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/cursorcentered-fix\/","og_locale":"en_US","og_type":"article","og_title":"CursorCentered Fix - Minecraft","og_description":"A Minecraft mod that fixes the cursor centering issue that occasionally happens when opening a GUI.","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/cursorcentered-fix\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/cursorcentered-fix\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/cursorcentered-fix\/","name":"CursorCentered Fix - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/cursorcentered-fix\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/cursorcentered-fix\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/cursorcentered-fix-icon-cf7de00e4556d40066c11f1424f5f712dde768c4_96.webp","datePublished":"2026-06-02T21:38:39+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/cursorcentered-fix\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/cursorcentered-fix\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/cursorcentered-fix\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/cursorcentered-fix-icon-cf7de00e4556d40066c11f1424f5f712dde768c4_96.webp","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/cursorcentered-fix-icon-cf7de00e4556d40066c11f1424f5f712dde768c4_96.webp","width":96,"height":96},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/cursorcentered-fix\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"CursorCentered Fix"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/52594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/52595"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=52594"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=52594"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=52594"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=52594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}