MZ MZ Mouse System

I'm looking for a simple plugin that replaces the standard windows cursor with my png image.
Free for commercial use
This might work (untested):
Spoiler: plugin code
JavaScript:
/*:
 * @target MZ
 * @plugindesc Replace cursor with image.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/155619/
 * @help Free to use and/or modify for any project, no credit required.
 */
void (() => {
  // image location
  const url = "./icon/icon.png";
  // image anchor (px; default 0, 0)
  const x = 0;
  const y = 0;
  // system cursor style to use if image fails to load (required)
  const fallbackStyle = "pointer";
  document.body.style.cursor = `url("${url}") ${x} ${y}, ${fallbackStyle}`;
})();
To try it out - paste the code into a text editor, save as a .js file (Save As -> File Type: All Files, Filename: whatever.js), then import as a plugin.

Currently this points at the game's icon image (icon.png in the project's icon subfolder), anchored at its top-left corner (x = 0, y = 0). You can change those values in the code.

It basically just sets a CSS property when the plugin loads (i.e. on game boot). Technical reference:
Moved to: Plugin Requests
Thank you very much. But, there is one problem. The cursor is displayed only at the top of the screen, and at the bottom, switches to standard cursor windows. Perhaps this is due to my project resolution (1920 x 1080)?

And instead of the cursor that I threw the "icon" folder, I have an icon of the rpg maker mz project (3 screenshot)
The cursor is displayed only at the top of the screen, and at the bottom, switches to standard cursor windows.
This seems to be a browser limitation. Make sure your cursor image is no larger than 32x32 px:

instead of the cursor that I threw the "icon" folder, I have an icon of the rpg maker mz project
As I mentioned, you need to edit the code to change the image path - edit this line:
JavaScript:
  const url = "./icon/icon.png";
Your cursor image does not have to be in the icon folder. E.g. to use cursor.png from the img/system subfolder:
JavaScript:
  const url = "./img/system/cursor.png";
alternative, you can use this plugin [MimosaMouseCursor].

the base version is limited, but can use custom cursor and may
be used in free and commercial projects.

the pro version however has more features, but that is up to you.

Original thread: https://forums.rpgmakerweb.com/threads/mz-mouse-system.155619/