Minecraft: Difference between revisions

Sen (talk | contribs)
m Improved "Beginning" section and formatting
m fix dead home-manager links
 
(5 intermediate revisions by 4 users not shown)
Line 21: Line 21:
   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 27:
</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 34: Line 34:


== Troubleshooting ==
== Troubleshooting ==
=== ATlauncher can't start instance ===
By default, ATlauncher installs its own Java runtime in <code>**USERSDIR**/runtimes/minecraft</code>, which gets selected in the settings' <code>Java Path</code>.
To fix this, make sure to select the java version installed in the system store from the <code>Settings > Java/Minecraft > Java Path</code> menu and also disable the <code>Use Java Provided By Minecraft?</code> option.
If your instance still doesn't start, check the instance settings and apply the same changes there.


=== Prismlauncher doesn't have Java Version XX. ===
=== Prismlauncher doesn't have Java Version XX. ===
Line 57: Line 64:
=== 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: Gaming]]