Minecraft: Difference between revisions

Eljamm (talk | contribs)
Moraxyc (talk | contribs)
Added troubleshooting information for a GLFW initialization error affecting Minecraft on NVIDIA systems.
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{disambiguation|message=This page is about Minecraft <em>clients</em>, for server setup see [[Minecraft Server]].}}
[https://www.minecraft.net/about-minecraft Minecraft] is a sandbox game about building, surviving, fighting, and being creative, developed by Mojang Studios.<ref>[https://www.minecraft.net/en-us/about-minecraft https://www.minecraft.net/about-minecraft]</ref> [https://www.minecraft.net/about-minecraft Minecraft] currently has two supported variants known as:
[https://www.minecraft.net/about-minecraft Minecraft] is a sandbox game about building, surviving, fighting, and being creative, developed by Mojang Studios.<ref>[https://www.minecraft.net/en-us/about-minecraft https://www.minecraft.net/about-minecraft]</ref> [https://www.minecraft.net/about-minecraft Minecraft] currently has two supported variants known as:
* Minecraft: Java Edition is only available on Windows, MacOS and Linux and is known for modding.
* Minecraft: Java Edition is only available on Windows, MacOS and Linux and is known for modding.
Line 6: Line 8:
'''Offical Minecraft Launcher:''' [https://www.minecraft.net/download Website] — [https://search.nixos.org/packages?show=minecraft Package/pkgs.minecraft] {{warning|1.19 or higher is not working on NixOS, using alternative clients is strongly recommended.}}
'''Offical Minecraft Launcher:''' [https://www.minecraft.net/download Website] — [https://search.nixos.org/packages?show=minecraft Package/pkgs.minecraft] {{warning|1.19 or higher is not working on NixOS, using alternative clients is strongly recommended.}}


'''Prismlauncher:''' A free, open source launcher. [https://prismlauncher.org/ Website] — [https://search.nixos.org/packages?show=prismlauncher Package/pkgs.prismlauncher]
'''[[Prism Launcher]]:''' A free, open source launcher. [https://prismlauncher.org/ Website] — [https://search.nixos.org/packages?show=prismlauncher Package/pkgs.prismlauncher]


'''ATLauncher:''' A simple and easy to use Minecraft launcher which contains many different modpacks for you to choose from and play. [https://atlauncher.com/about Website] — [https://search.nixos.org/packages?show=atlauncher Package/pkgs.atlauncher]
'''ATLauncher:''' A simple and easy to use Minecraft launcher which contains many different modpacks for you to choose from and play. [https://atlauncher.com/about Website] — [https://search.nixos.org/packages?show=atlauncher Package/pkgs.atlauncher]
Line 21: Line 23:
   pkgs.<LAUNCHER>
   pkgs.<LAUNCHER>
];
];
</syntaxhighlight>Alternatively, the package can be installed per-user with <code>users.users.<USER>.packages</code> or [[home-manager]]. For nix native, use:<syntaxhighlight lang="nix">
</syntaxhighlight>Alternatively, the package can be installed per-user with <code>users.users.<USER>.packages</code> or [[Home Manager|home-manager]]. For nix native, use:<syntaxhighlight lang="nix">
users.users.<USER>.packages = [
users.users.<USER>.packages = [
   pkgs.<LAUNCHER>
   pkgs.<LAUNCHER>
Line 27: Line 29:
</syntaxhighlight>
</syntaxhighlight>


For [[home-manager]], use:<syntaxhighlight lang="nix">
For [[Home Manager|home-manager]], use:<syntaxhighlight lang="nix">
home.packages = [
home.packages = [
   pkgs.<LAUNCHER>
   pkgs.<LAUNCHER>
Line 42: Line 44:
If your instance still doesn't start, check the instance settings and apply the same changes there.
If your instance still doesn't start, check the instance settings and apply the same changes there.


=== Prismlauncher doesn't have Java Version XX. ===
=== Prism Launcher doesn't have Java Version XX. ===
The Prismlauncher package can be overridden with <code>(pkgs.prismlauncher.override { jdks = [ pkgs.<JAVA_PACKAGE> ]; })</code>. For example: <code>(pkgs.prismlauncher.override { jdks = [ pkgs.temurin-bin-21 pkgs.temurin-bin-8 pkgs.temurin-bin-17 ]; })</code>
The [[Prism Launcher]] package can be overridden to add additional [[Java]] runtimes. Check [[Prism_Launcher#Advanced]] to see an example.
 
=== Minecraft Launch Error with NVIDIA Graphics and System GLFW. ===
When using the system GLFW together with an NVIDIA graphics card in the launcher, Minecraft may fail to start and display the following error message: <code>GLFW error 65544: EGL: Failed to clear current context: An EGLDisplay argument does not name a valid EGL display connection</code>.
 
In this case, setting the environment variable <code>__GL_THREADED_OPTIMIZATIONS</code> to <code>0</code> resolves the issue.


=== Minecraft can’t start without Java Version XX. ===
=== Minecraft can’t start without Java Version XX. ===
Line 60: Line 67:
|>= 1.18
|>= 1.18
|17
|17
|-
|>= 1.20.5
|21
|}
|}


=== Official Minecraft Launcher fails to start the game. ===
=== Official Minecraft Launcher fails to start the game. ===
It is possible that you are attempting to start a version of Minecraft that is 1.19 or higher. Unfortunately, this is broken on NixOS. It is strongly recommended to use alternative launchers.
It is possible that you are attempting to start a version of Minecraft that is 1.19 or higher. '''Unfortunately, this is broken on NixOS'''. It is strongly recommended to use alternative launchers.'''


[[Category: Applications]]
[[Category: Applications]]
[[Category: Gaming]]
[[Category: Gaming]]