Edit 9/11/2020: Download files moved from dropbox to github
Thanks to HenriZ for his launcher tips.
Please note :
Do this at your own risk.
If you have any doubts use a spare SD card.
I'm using the official 5.1V 3.0A power supply, with the Pi4 4GB in an open sided case with small fan (currently off).
Should work on 2GB,4GB,8GB Pi4 and Pi400.
I do not advise trying to run this over VNC.
Please make sure you are using your own valid Minecraft account.
This tutorial should work on Raspberry Pi OS 32bit and 64bit(beta)
Video: Official launcher and MC 1.6.2 with Optifine - https://youtu.be/Qux-pIelY44
1 Download and run setup script
This will take a few minutes, including installing Oracle java.
Code: Select all
mkdir ~/Minecraft && cd ~/Minecraft && wget https://github.com/mikehooper/Minecraft/raw/main/setupMC.sh && chmod +x setupMC.sh && ./setupMC.sh
Code: Select all
cd ~/Minecraft
java -jar launcher.jar
3 Edit launcher profile
Click 'Edit Profile'

Select 'Use Version', choose the version you require.

- 32 bit
Tick 'JVM Arguments'
Add the following to the beginning of the arguments to specify lwjgl2 or lwjgl3 depending on version (if using a user other than 'pi' change accordingly):
< 1.13 :>= 1.13 :Code: Select all
-Dorg.lwjgl.librarypath=/home/pi/lwjgl2arm32
Code: Select all
-Dorg.lwjgl.librarypath=/home/pi/lwjgl3arm32
- 64 bit
Tick 'Executable'
Replace the open jdk path with the oracle jdk path:Tick 'JVM Arguments'Code: Select all
/opt/jdk/jdk1.8.0_251/bin/java
Add the following to the beginning of the arguments to specify lwjgl3 (if using a user other than 'pi' change accordingly):
>= 1.13 :Code: Select all
-Dorg.lwjgl.librarypath=/home/pi/lwjgl3arm64

4 Install Minecraft
Click 'Play' to install Minecraft.

5 Install Optifine (recommended)
If you wish to install Optifine, download the relevant version from https://optifine.net/downloads ,then install with:
Code: Select all
cd ~/Downloads
java -jar <file>
Click 'Install'
A new launcher profile called 'Optifine' will have been created, you will need to re-add the paths.
In the launcher click 'Play' to start Minecraft.
Hopefully Minecraft should run

Notes:
If you get 'Exception in thread "main" java.lang.UnsatisfiedLinkError: org.lwjgl.DefaultSysImplementation.getPointerSize()' check you have specified the correct lwjgl2arm32 or lwjgl3arm32 library path for your MC version in JVM arguments.