User avatar
rpiMike
Posts: 909
Joined: Fri Aug 10, 2012 12:38 pm
Location: Cumbria, UK

How to setup Minecraft 1.14.4 on Pi4 (Gentoo 64bit)

Sun Aug 25, 2019 6:06 pm

How to setup Full Minecraft 1.14.4 (with Optifine) on Raspberry or Pi4 (using Gentoo 64bit)

Please note :
Do this at your own risk.
If you have any doubts use a spare SD card.
Pi4: I'm using the official 5.1V 3.0A power supply, with the Pi4 in an open sided case with small fan.

This tutorial was tested using sakaki's Gentoo 64bit 1.5.0
https://www.raspberrypi.org/forums/view ... 4&t=188448

1 Download and run setupMC1_14_4 script
This will take a few minutes, including installing Oracle java 8.

Code: Select all

mkdir ~/Minecraft && cd ~/Minecraft && wget https://www.dropbox.com/s/awi0eczcq2645sc/setupMC1_14_4.sh && chmod +x setupMC1_14_4.sh && ./setupMC1_14_4.sh
2 Run Minecraft launcher :

Code: Select all

cd ~/Minecraft && java -jar Minecraft.jar
Login with Minecraft email and password
Click 'edit profile' and select use release - 'release 1.14.4', then 'save profile'
Click Play to install game
You will then receive an error
Close launcher

3 Install Optifine

Code: Select all

cd ~/Minecraft && java -jar OptiFine_1.14.4_HD_U_F3.jar
Click install.

4 Run Minecraft launcher

Code: Select all

cd ~/Minecraft && java -jar Minecraft.jar
Select the OptiFine profile and click play. The launcher will crash.

5 Edit runMC1_14_4_OptifineF3.sh

Code: Select all

mousepad runMC1_14_4_OptifineF3.sh
Update MINECRAFT_LOGIN, MINECRAFT_USERNAME and MINECRAFT_PASSWORD to your own (may need "" for special characters)

6 Start Minecraft from terminal window

Code: Select all

cd ~/Minecraft
./runMC1_14_4_OptifineF3.sh
Change options in Minecraft to reduce render chunks to 3.

Hopefully Minecraft should run :P

MamiyaOtaru
Posts: 15
Joined: Fri Aug 02, 2019 9:42 am

Re: How to setup Minecraft 1.14.4 on Pi4 (Gentoo 64bit)

Mon Aug 26, 2019 10:19 pm

the run script the setup script points to ( https://www.dropbox.com/s/5fwvf5vnvbi7g ... ifineF3.sh ) seems to actually be a run script for 1.12.2.

Code: Select all

MINECRAFT_VERSION=1.12
 
 
# SHOULD NOT NEED TO EDIT BELOW THIS LINE
 
# long list of paths from the minecraft logged commandline
CP=/home/pi/.minecraft/libraries/optifine/OptiFine/1.12.2_HD_U_E3/OptiFine-1.12.2_HD_U_E3.jar:/home/pi/.minecraft/libraries/net/minecraft/launchwrapper/1.12/launchwrapper-1.12.jar:/home/pi/.minecraft/libraries/com/mojang/patchy/1.1/patchy-1.1.jar:/home/pi/.minecraft/libraries/oshi-project/oshi-core/1.1/oshi-core-1.1.jar:/home/pi/.minecraft/libraries/net/java/dev/jna/jna/4.4.0/jna-4.4.0.jar:/home/pi/.minecraft/libraries/net/java/dev/jna/platform/3.4.0/platform-3.4.0.jar:/home/pi/.minecraft/libraries/com/ibm/icu/icu4j-core-mojang/51.2/icu4j-core-mojang-51.2.jar:/home/pi/.minecraft/libraries/net/sf/jopt-simple/jopt-simple/5.0.3/jopt-simple-5.0.3.jar:/home/pi/.minecraft/libraries/com/paulscode/codecjorbis/20101023/codecjorbis-20101023.jar:/home/pi/.minecraft/libraries/com/paulscode/codecwav/20101023/codecwav-20101023.jar:/home/pi/.minecraft/libraries/com/paulscode/libraryjavasound/20101123/libraryjavasound-20101123.jar:/home/pi/.minecraft/libraries/com/paulscode/librarylwjglopenal/20100824/librarylwjglopenal-20100824.jar:/home/pi/.minecraft/libraries/com/paulscode/soundsystem/20120107/soundsystem-20120107.jar:/home/pi/.minecraft/libraries/io/netty/netty-all/4.1.9.Final/netty-all-4.1.9.Final.jar:/home/pi/.minecraft/libraries/com/google/guava/guava/21.0/guava-21.0.jar:/home/pi/.minecraft/libraries/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar:/home/pi/.minecraft/libraries/commons-io/commons-io/2.5/commons-io-2.5.jar:/home/pi/.minecraft/libraries/commons-codec/commons-codec/1.10/commons-codec-1.10.jar:/home/pi/.minecraft/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar:/home/pi/.minecraft/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar:/home/pi/.minecraft/libraries/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar:/home/pi/.minecraft/libraries/com/mojang/authlib/1.5.25/authlib-1.5.25.jar:/home/pi/.minecraft/libraries/com/mojang/realms/1.10.22/realms-1.10.22.jar:/home/pi/.minecraft/libraries/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar:/home/pi/.minecraft/libraries/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar:/home/pi/.minecraft/libraries/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/home/pi/.minecraft/libraries/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar:/home/pi/.minecraft/libraries/it/unimi/dsi/fastutil/7.1.0/fastutil-7.1.0.jar:/home/pi/.minecraft/libraries/org/apache/logging/log4j/log4j-api/2.8.1/log4j-api-2.8.1.jar:/home/pi/.minecraft/libraries/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1.jar:/home/pi/.minecraft/libraries/org/lwjgl/lwjgl/lwjgl/2.9.4-nightly-20150209/lwjgl-2.9.4-nightly-20150209.jar:/home/pi/.minecraft/libraries/org/lwjgl/lwjgl/lwjgl_util/2.9.4-nightly-20150209/lwjgl_util-2.9.4-nightly-20150209.jar:/home/pi/.minecraft/libraries/com/mojang/text2speech/1.10.3/text2speech-1.10.3.jar:/home/pi/.minecraft/versions/1.12.2-OptiFine_HD_U_E3/1.12.2-OptiFine_HD_U_E3.jar 
 
etc. Doubt that's gonna launch 1.14.4

User avatar
rpiMike
Posts: 909
Joined: Fri Aug 10, 2012 12:38 pm
Location: Cumbria, UK

Re: How to setup Minecraft 1.14.4 on Pi4 (Gentoo 64bit)

Mon Aug 26, 2019 10:50 pm

Sorry, I left a link in to my last run script.

Try now.


rox97
Posts: 3
Joined: Fri Aug 30, 2019 6:32 pm

Re: How to setup Minecraft 1.14.4 on Pi4 (Gentoo 64bit)

Fri Aug 30, 2019 6:35 pm

I followed all the steps of the guide but at the last command I get this as output

Code: Select all

[pi@raspberrypi:~/Minecraft $ ./runMC1_14_4_OptifineF3.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   785  100   619  100   166   2091    560 --:--:-- --:--:-- --:--:--  2652
todays access token = 29a87cdc570a4391b0e739cb3a0d7a2b
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    67  100    59  100     8    152     20 --:--:-- --:--:-- --:--:--   173
MINECRAFT_UUID=08f621352ef147e5a0af7b97bc07c670
./runMC1_14_4_OptifineF3.sh: 46: ./runMC1_14_4_OptifineF3.sh: /opt/jdk/jdk1.8.0_221/bin/java: Exec format error
]

Notupus
Posts: 37
Joined: Tue Jun 19, 2018 9:57 am

Re: How to setup Minecraft 1.14.4 on Pi4 (Gentoo 64bit)

Sat Aug 31, 2019 4:17 pm

rox97 wrote:
Fri Aug 30, 2019 6:35 pm
I followed all the steps of the guide but at the last command I get this as output

Code: Select all

[pi@raspberrypi:~/Minecraft $ ./runMC1_14_4_OptifineF3.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   785  100   619  100   166   2091    560 --:--:-- --:--:-- --:--:--  2652
todays access token = 29a87cdc570a4391b0e739cb3a0d7a2b
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    67  100    59  100     8    152     20 --:--:-- --:--:-- --:--:--   173
MINECRAFT_UUID=08f621352ef147e5a0af7b97bc07c670
./runMC1_14_4_OptifineF3.sh: 46: ./runMC1_14_4_OptifineF3.sh: /opt/jdk/jdk1.8.0_221/bin/java: Exec format error
]
[/quote]
You don't do it on raspian you do it on  sakaki's Gentoo 64bit 1.5.0
https://www.raspberrypi.org/forums/view ... 4&t=188448 or any other 64bit arm  operating systems that work with the pi 4/3

333337LEE
Posts: 1
Joined: Mon Sep 02, 2019 7:35 pm

Re: How to setup Minecraft 1.14.4 on Pi4 (Gentoo 64bit)

Mon Sep 02, 2019 7:43 pm

Thanks,

Worked great for me.

The issues I had were being impatient or not reading the guide fully. My first attempt was in Raspbian when it clearly states Gentoo Linux. The other issues I had was closing terminal too soon after the Minecraft launcher crashes or quits out. If you wait 1-3 minutes terminal becomes useable again after the launcher crashes. You need to wait for terminal to finish what it’s doing.

I made a video

https://youtu.be/cKOxh3fUE4M

rox97
Posts: 3
Joined: Fri Aug 30, 2019 6:32 pm

Re: How to setup Minecraft 1.14.4 on Pi4 (Gentoo 64bit)

Tue Sep 03, 2019 1:43 pm

sorry I hadn't read that it only worked for gentoo64.
but now I tried to install it on gentoo and I have a different problem:

Code: Select all

./runMC1_14_4_OptifineF3.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   785  100   619  100   166   1637    439 --:--:-- --:--:-- --:--:--  2565
todays access token = 72f591b88ba9412981fbec222ab0b169
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    67  100    59  100     8    226     30 --:--:-- --:--:-- --:--:--   345
MINECRAFT_UUID=08f621352ef147e5a0af7b97bc07c670
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Error: Could not find or load main class net.minecraft.launchwrapper.Launch

rox97
Posts: 3
Joined: Fri Aug 30, 2019 6:32 pm

Re: How to setup Minecraft 1.14.4 on Pi4 (Gentoo 64bit)

Tue Sep 03, 2019 1:57 pm

ok i found the problem, i write how i solved it in case it happened to someone else.
when I installed gentoo64, I created a new user and I deleted the demouser, but in the "runMC1_14_4_OptifineF3.sh" file the demouser is used in the various paths. so to solve the problem simply change all the demousers with the personal username with mousepad

mmg
Posts: 4
Joined: Thu Oct 25, 2018 10:12 pm

Re: How to setup Minecraft 1.14.4 on Pi4 (Gentoo 64bit)

Fri Sep 06, 2019 3:05 pm

Screenshot_2019-09-06_15-53-56.png
Screenshot_2019-09-06_15-53-56.png (243.25 KiB) Viewed 3216 times
Hi,

Grateful if anyone can tell me what's wrong?

jdonald
Posts: 413
Joined: Fri Nov 03, 2017 4:36 pm

Re: How to setup Minecraft 1.14.4 on Pi4 (Gentoo 64bit)

Fri Sep 06, 2019 7:56 pm

Apparently something regressed in the launcher metadata manifest 48 hours ago: https://www.minecraftforum.net/forums/s ... -preparing

Users have reported the problem with multiple launchers on multiple operating systems. Supposedly the error happens when launching 1.14.4 but not 1.14.3 and earlier.

This is the kind of problem to hope gets fixed on the server end soon. If not, would need to modify the old launchers or spoof the JSON metadata so that it doesn't contain these null values.

Guy_With_a_Pi
Posts: 4
Joined: Sat Mar 23, 2019 11:26 pm

Re: How to setup Minecraft 1.14.4 on Pi4 (Gentoo 64bit)

Sun Sep 08, 2019 6:53 pm

Would it be possible to download an older version of the launcher to install Minecraft and avoid the "Preparing" bug?

jdonald
Posts: 413
Joined: Fri Nov 03, 2017 4:36 pm

Re: How to setup Minecraft 1.14.4 on Pi4 (Gentoo 64bit)

Mon Sep 16, 2019 3:00 am

I tried this today and ran into the duplicate null error. Looks like they don't plan on fixing this on the backend after all, thereby breaking all unofficial launchers.

bullen suggested using the new launcher at http://move.rupy.se/file/launcher.jar and that was sufficient to get everything running. I was in a Debian arm64 chroot on Raspbian but I expect this to be the same for Gentoo. Just download this newer launcher and change the two Minecraft.jar references to launcher.jar

Reminder: anyone not on Gentoo or is using a different username, in runMC1_14_4_OptifineF3.sh change all instances of /home/demouser to $HOME

mmg
Posts: 4
Joined: Thu Oct 25, 2018 10:12 pm

Re: How to setup Minecraft 1.14.4 on Pi4 (Gentoo 64bit)

Tue Sep 17, 2019 10:32 am

jdonald wrote:
Mon Sep 16, 2019 3:00 am
I tried this today and ran into the duplicate null error. Looks like they don't plan on fixing this on the backend after all, thereby breaking all unofficial launchers.

bullen suggested using the new launcher at http://move.rupy.se/file/launcher.jar and that was sufficient to get everything running. I was in a Debian arm64 chroot on Raspbian but I expect this to be the same for Gentoo. Just download this newer launcher and change the two Minecraft.jar references to launcher.jar

Reminder: anyone not on Gentoo or is using a different username, in runMC1_14_4_OptifineF3.sh change all instances of /home/demouser to $HOME
Hi,
Is there anyone who can write a clear guide for beginners like me? Very grateful for your time.

Jye
Posts: 1
Joined: Sat Sep 21, 2019 2:03 pm

Re: How to setup Minecraft 1.14.4 on Pi4 (Gentoo 64bit)

Sun Sep 22, 2019 4:36 am

Hey mike ! I followed all the instructions but when I downloaded minecraft and open it I log in. But when I click play to download the files it stuck on preparing I’ve tried everything even resetting the SD card.

G2-Gaming
Posts: 1
Joined: Sun Sep 22, 2019 11:57 pm

Re: How to setup Minecraft 1.14.4 on Pi4 (Gentoo 64bit)

Thu Oct 03, 2019 1:30 am

Try using http://move.rupy.se/file/launcher.jar. Download it and rename it to Minecraft.jar. Then go to the /home/*username*/Minecraft folder, delete Minecraft.jar, and replace it with the new one. It should work! :D

runholen
Posts: 1
Joined: Thu Oct 03, 2019 5:34 pm

Re: How to setup Minecraft 1.14.4 on Pi4 (Gentoo 64bit)

Thu Oct 03, 2019 5:39 pm

With some tinkering, I managed to make minecraft 1.14.4 run on the standard raspberrian image! No need to install gentoo then if you don't have a spare sd card, have raspberrian already and want to keep it. Ok, I will now try to explain what I did, hopefully remembering everything. (Only follow the following if you are using standard raspberrian, use original post if you are using gentoo)

I started off with increasing GPU memory from defaul 64 to 256MB in settings, and rebooted.
I then think I ran step 1 and 2 in this tutorial.
I then did this either after step 2 or in step 4: As said in the other post, I then had to download the old launcher from from http://move.rupy.se/file/launcher.jar and I then ran java -jar launcher.jar instead of java -jar Minecraft.jar
I installed Optifine like in step 3
In step 4, remember to use launcher.jar instead of Minecraft.jar
In step 5, use nano or emacs instead of mousepad if you don't have it (It wasn't included by default in my raspberrian)
As the other post said, you must here also do a search and replace to replace all occurences of "/home/demouser" with "$HOME"
In step 6, you will now probably get a java Exec format error. That seems to be because the installer installed a gentoo 64-bit version of java instead of a 32-bit version for raspberrian. I fixed it by doing the following:
sudo apt install openjdk-8-jdk openjdk-8-jre
The correct java then seemed to be installed on /usr/lib/jvm/java-8-openjdk-armhf/bin/java
Now, you must open runMC1_14_4_OptifineF3.sh in your favourite editor again.
Enter /usr/lib/jvm/java-8-openjdk-armhf/bin/java just before the old java path before "-Xmx2G"
So that's it then. NOOO you said?? No you get an error message complaining about "Failed to locate library: liblwjgl.so"?
After a lot of googling, it seems that the arm64-version of liblwjgl3 that was downloaded is not compatible with 32-bit raspberrian. Finally I fount out from viewtopic.php?t=218742 that I could download compatible files from https://www.dropbox.com/s/y6gaickl7daob ... ar.xz?dl=0
Download these files, and place them in a new directory /home/pi/lwjgl3arm32/
Then, again open runMC1_14_4_OptifineF3.sh yet again. This time, you must do a search and replace, replacing all occurences of $HOME/lwjgl3arm64/ with $HOME/lwjgl3arm32/
So now finally the game is up and running. Wait, it is not?
Oh, the lwjgl-files we downloaded seems to just include the system-specific so-files, and not the jar-files. We can then just do the following:
cp $HOME/lwjgl3arm64/*.jar $HOME/lwjgl3arm32/
And finally, the game actually starts up, and is even playable (I reduced render chunks etc in options)
Hopefully you got this far too :-)

Return to “Other”