The PrismLauncher package provides a Minecraft Launcher.
libxkbcommon, OpenGL (libglvnd or Mesa; only the normal installation is required for either), OpenJDK-19.0.2 (or OpenJDK-20+), and Qt-6
While you can install the most recent version of OpenJDK (version 20 and above), you'll need to edit the build system of this package, tick an option in the launcher menu, and will lose support in older Minecraft versions, including mods and other things. This is because version 20 and above does not support Java 7, but version 19 does.
commonmark, ghc_filesystem, Git, QuaZip, scdoc, and tomlplusplus-3.4.0
If you have installed OpenJDK version 20 or above, edit the build system to allow building with Java 8 instead of 7:
sed -e 's/Java 1.7/Java 1.8/g' \ -e 's/-target 7/-target 8/g' \ -e 's/-source 7/-source 8/g' \ -i libraries/{javacheck,launcher}/CMakeLists.txt
Install PrismLauncher by running the following commands:
mkdir build && cd build && cmake -D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_BUILD_TYPE=Release \ -G Ninja -Wno-dev .. && ninja
Now, as the root
user:
ninja install
This launcher should walk you through how to set it up. However, one major thing needs to be done if you installed OpenJDK version 20 or above. After you create an instance, you will need to edit that instance, go to the “Settings” section, then tick “Skip Java Compatibility Checks” to avoid Minecraft from refusing to launch. This has to be done for every instance. If you installed OpenJDK-19.0.2, this doesn't need to be done at all.