Please note :
Do this at your own risk.
If you have any doubts use a spare SD card.
Pi4: I'm using the PoE Hat, with the Pi4 in a closed case and the PoE fan. The Pi 4's in my house are all 4GB models.
Minecraft is very RAM heavy. It freezes constantly on a 3B+ with 1GB of RAM. I expect a Pi4 with 1GB will be the same. I have no way of testing a 2GB model. The scripts here assume 4GB and will need to be modified for different versions. Specifically the Xmx and Xms values in the run file.
This tutorial was modified from rpiMike's post over in the Gentoo forum.
viewtopic.php?t=249875
Using the help provided further down by runholen
viewtopic.php?t=249875#p1546518
Pre-start, update your system, ensure everything is up to date
Code: Select all
sudo apt update
sudo apt upgrade
Code: Select all
sudo raspi-config
Select Advanced->GL Driver->GL (Fake KMS)
Finish and Reboot
1 Download and run setupMC1_14_4 script
This will take a few minutes, including installing Oracle Java 8 (32-bit).
Code: Select all
mkdir ~/Minecraft && cd ~/Minecraft && wget https://www.dropbox.com/s/gs9uza87elbzzg2/setupMC1_14_4.sh && chmod +x setupMC1_14_4.sh && ./setupMC1_14_4.sh
Code: Select all
cd ~/Minecraft && /opt/jdk/jdk1.8.0_211/bin/java -jar Minecraft.jar
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 (Ctrl+C once the Minecraft Launcher crashes)
3 Install Optifine
Code: Select all
cd ~/Minecraft && /opt/jdk/jdk1.8.0_211/bin/java -jar OptiFine_1.14.4_HD_U_F3.jar
4 Run Minecraft launcher
Code: Select all
cd ~/Minecraft && /opt/jdk/jdk1.8.0_211/bin/java -jar Minecraft.jar
5 Edit runMC1_14_4_OptifineF3.sh
Code: Select all
mousepad runMC1_14_4_OptifineF3.sh
If you are trying to install under any other user other than 'pi', you will need to edit the directories. Replace all "/home/pi/" references with "/home/<username>/" replacing <username> with the user's username.
6 Start Minecraft from terminal window
Code: Select all
cd ~/Minecraft
./runMC1_14_4_OptifineF3.sh
Hopefully Minecraft should run

The game works, though I've had it crash a few times with my 3 kids and I playing and a lot going on. I'm accessing a local network mcrcon Raspberry Pi 4 server also running on Raspbian Buster.
If you'd like to setup an icon in your menu, copy the Minecraft.desktop file from /home/pi/Minecraft to /usr/share/applications folder. It's using the Minecraft-Pi icon (won't work if you don't have Minecraft-Pi installed) and it assumes the application was installed with user Pi, but you can edit the file with a text editor to modify it as required.
Please let me know if you have any issues. I had to re-archive everything and use an old launcher to get past the null errors that the current launcher was afflicted with.
EDIT: Mods, this might be better in the Projects->Gaming Thread. Sorry, I was in the Other->Gentoo Forum and originally figured this was appropriate.