legacy-lwjgl3

legacy-lwjgl3

Mod

An ornithe mod to run old versions (<1.13) using LWJGL 3 instead of LWJGL 2 and fix/work around wayland bugs

Client CursedUtility

982 downloads
11 followers
Created5 months ago
Updated3 months ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

Legacy-lwjgl3

Features

  • makes the game use lwjgl3 on old (<1.13) versions
  • redirects clipboard access to glfw
  • makes glfw use its wayland backend if possible:
    • Injects a .desktop file and the icon in the correct locations for them to function correctly
    • Loads & Displays a virtual cursor on in-game screens to support setting the cursor position

See the "Accessed Paths" and "Accessed Programs" sections if you're running the game in a sandbox (e.g. through a launcher installed as a flatpak) and make sure to allow the minecraft process to access these!

Dependencies

  • This mod is best used in combination with OSL, but doesn't depend on it. OSL is required in case any resourcepack resource-overriding functionality is wanted.

Options

  • (Wayland Only) the property virtual_mouse.export can be passed as true to export the loaded cursor to a cursors directory in the instance folder. It will contain all images contained in the cursor as well as all metadata. It will also create a human-readable metadata file for each image, and a cursor.cursor file in the cursor config format. This file may be used to generate a new X11 cursor out of the images with the xcursorgen program.

Accessed Paths (Wayland Only)

  • $HOME/.local/share/applications/com.mojang.minecraft.desktop
  • $HOME/.local/share/icons/hicolor/apps/{16x16, 32x32}/minecraft.png
  • $HOME/.local/share/icons/<theme>/cursors/left_ptr
  • $HOME/.icons/<theme>/cursors/left_ptr
  • /usr/share/icons/<theme>/cursors/left_ptr

Accessed Programs

  • xdg-icon-resource (to update the icon system)
  • gsettings (to query for cursor theme & size)

Compatibility

  • Compatible with OptiFabric (incl. Shaders)
  • Should be compatible with about any other mod there is as long as the minecraft version is

If a mod isn't, make sure to report it on the issue tracker!

Gallery

In the best case you won't even notice this mod is installed. Due to this, there are no menus or anything else obvious this mod adds. Therefore, gallery images are not very useful to add since there is nothing important for them to show.

Credits

  • gudenau (Original Forge Mod Author) Original Source
  • Zarzelcow (Original Legacyfabric Mod Author, port of gudenau's mod) Original Source
  • KDE visual design group (the fallback cursor file shipped with the mod is from KDE's breeze cursor theme)
Changes over the original Legacyfabric Mod
  • Improve the original function of the mod (translation of lwjgl2 to lwjgl3)
  • Fix compatibility with other mods
  • Add compatibility with Shaders/Optifabric
  • Add improvements for usage on wayland

Source comparison

External resources



Project members

moehreag

Owner


Technical information

License
LGPL-2.1-only
Client side
required
Server side
unsupported
Project ID