GitHub Alexivkinminecraftlauncher Offline Linux Minecraft Launcher In Pure Bash For Standard And Forge Versions

From Yoga Asanas
Jump to: navigation, search

A smarter way of managing multiple minecraft installations on Linux. It downloads and installs Minecraft version on demand, including all the appropriate libraries and assets. This works well with the minecraft launcher for Linux.



- Supports Forge Minecraft and vanilla/mainline versions on-demand. - Works with offline profiles - Allows multiple version, player profiles, and mod configurations to all be accessible simultaneously. - Keeps game assets separate from profiles and versioned libraries for easier file management



Prerequisites: Make sure you have the following installed: jq.unzip.curl. Rock it like a hurricane



Running: ./start



To run a Forge version, add the suffix '-forge' to the version. For instance,./start 1.17.20-forge player1. To see which versions of Forge are available, run the script using a non-existent version.



1. Re-run the program to delete the "versons version" subfolder and then download and rebuild everything. You can delete versions and player profiles from separate folders. 2. If #1 didn't work for a Forge Version, delete both the Forge folders and the mainline version folders and run it again to redownload everything.



How to add it to the KDE desktop



To get the minecraft icon and the desktop link clone this repo, To install the icon run



sudo install -Dm644 minecraft-launcher.svg /usr/share/icons/hicolor/symbolic/apps/minecraft-launcher.svg



Next, change the desktop file to run the launcher and make it local



cp minecraft-launcher.desktop ~/.local/share/plasma_icons/



How to reproduce manually the launcher's actions



- Run the official Java launcher. Log in and start the game. The launcher will download the necessary files to the new version. These files are listed in the manifest. - Find the native libraries in the process name with ps -ef Then copy that folder cp -a /tmp/folder $HOME/.minecraft/versions/$ver/$ver-natives. You can find the native library here. Copy-paste all of the -cp arguments from the Java process along with the Java args to a Run script. Run the script. Include assets, libraries and version folders.