User avatar
DarkPlatinum
Posts: 822
Joined: Thu Nov 02, 2017 2:30 pm
Location: Unknown
Contact: Website

How to setup Minecraft 1.12.2 + Optifine + Forge On a Raspberry Pi 2B or later

Fri May 03, 2019 11:10 am

First off before we start, I want to thank RpiMike for making this possible.

Minecraft 1.12.2 + Optfine has sound. :)

Minecraft 1.12.2 + Forge does not have any sound. I have no idea how to fix it. :?

Tutorial on my website:
https://html.dynu.net/index.php/how-to- ... on-1-12-2/

Requirements:

Raspberry Pi 2B, 3B or 3A+


Update of OS and preparation for installation:

Update your Raspbian operating system to the latest version.

Code: Select all

sudo apt-get install update && sudo apt-get upgrade -y
Open the Raspberry Pi configuration application from Menu, Preferences, Raspberry Pi configuration.

Disable splashscreen, set GPU memory to 100 MB and if you are using a Raspberry Pi 2B, overclock to 1000 mhz (High).
Save the settings.

Open a new terminal window.

Code: Select all

sudo raspi-config
Scroll and select advanced options, GL driver, and enable Fake KMS.
Reboot.

Testing to see if drivers are active:

Open a terminal window:

Code: Select all

sudo apt-get -y install libalut0 libalut-dev && sudo apt-get -y install mesa-utils
Test the driver by opening a new window and typing

Code: Select all

glxgears
.
Glxgears should run around 60 fps. If you are getting hugely different values, try re-enabling the GL driver or test with the full KMS driver.

Downloading and installation of Minecraft:

Download:

Code: Select all

mkdir ~/Minecraft; mkdir ~/Minecraft/Natives; cd ~/Minecraft && wget https://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar
Running the Minecraft launcher:

Code: Select all

cd ~/Minecraft && java -jar Minecraft.jar
Log in with your Minecraft credentials.

Click ‘Edit profile’ and select the ‘1.12.2’ release.

Click save, and then play.

The game will output an error and crash. This is completely normal. Exit the launcher.

Downloading libraries:

Code: Select all

cd ~/Minecraft/Natives && wget https://www.dropbox.com/s/4oxcvz3ky7a3x6f/liblwjgl.so && wget https://www.dropbox.com/s/m0r8e01jg2og36z/libopenal.so
Updating LWJGL:

Code: Select all

cd ~/.minecraft/libraries/org/lwjgl/lwjgl/lwjgl/2.9.4-nightly-20150209 && rm lwjgl-2.9.4-nightly-20150209.jar; wget https://www.dropbox.com/s/mj15sz3bub4dmr6/lwjgl-2.9.4-nightly-20150209.jar
'
Download Forge 14.23.4.2713 installer (This Forge version is specific, some versions don’t work): https://files.minecraftforge.net/

Download Optifine HD_U_C5(Same as Forge, only certain versions work.):

Code: Select all

cd ~/Downloads && wget https://www.dropbox.com/s/0mjy5btnyr7v75g/OptiFine_1.12.2_HD_U_C5.jar
Copy run script for Optifine:

Code: Select all

cd ~/Minecraft/ && wget https://www.dropbox.com/s/4aj6rr26p0kib0l/runOptifine1_12_2.sh && sudo chmod +x runOptifine1_12_2.sh
Open the script in a text editor (don’t run it) and edit “EmailHere“, “UsernameHere” and “PasswordHere” to your Minecraft account details.

Save the file.

Install Optifine.

Code: Select all

cd ~/Downloads && java -jar OptiFine_1.12.2_HD_U_C5.jar
Run the Minecraft launcher again.

Code: Select all

cd ~/Minecraft && java -jar Minecraft.jar
Click edit profile, choose the Optifine profile, save and play. The game will crash once again.

To install Forge, skip to “Installing Forge” otherwise stay here if you want to only play Minecraft with Optifine (no other mods).

Run the runOptifine1_12_2.sh script:

Code: Select all

cd ~/Minecraft && ./runOptifine1_12_2.sh
Minecraft with Optifine should now open. Configure Optifine to get better FPS. Lower your render distance, turn on fast math, disable particles.

Installing Forge(Optional):
Once again. Minecraft with Forge on Raspberry Pi does not output any sound.

Run the Forge Installer:

Code: Select all

cd ~/Downloads/ && java -jar forge-1.12.2-14.23.4.2713-installer.jar
Install to the default location.

Reopen the Minecraft launcher:

Code: Select all

cd ~/Minecraft && java -jar Minecraft.jar
Open the profile for Forge. Choose the forge 1.12.2 profile, save and click play. The game will crash.

Download the Forge script:

Code: Select all

cd ~/Minecraft/ && wget https://www.dropbox.com/s/eefleliwpyuwqk3/runForge1.12.sh && chmod +x runForge1.12.sh
Edit the runForge1.12.sh script: “enter EMAIL for account here”, “enter USERNAME for account here” and “enter PASSWORD for account here” with your Minecraft account details.

Save.

Run Forge.

Code: Select all

cd ~/Minecraft/ && ./runForge1.12.sh
If Forge boots up fine, quit Minecraft, open up the mods folder for Forge and copy paste the Optifine.jar file in your Downloads section to it.


Hope you successfully installed Minecraft. :)
Last edited by DarkPlatinum on Sat May 11, 2019 3:50 pm, edited 1 time in total.
1 * Raspberry Pi Zero W, 1 * Raspberry Pi 2, 1 * Raspberry Pi 3 1 * Raspberry Pi 3B + :mrgreen:

Check Out My Raspberry Site (Run on a Raspberry Pi 3B :) ): Https://Html.dynu.net

User avatar
DarkPlatinum
Posts: 822
Joined: Thu Nov 02, 2017 2:30 pm
Location: Unknown
Contact: Website

Re: How to setup Minecraft 1.12.2 + Optifine + Forge

Fri May 03, 2019 3:12 pm

avensis wrote:
Fri May 03, 2019 2:27 pm
Thank you very much for sharing this tutorial, it is very well explained :)
Not a problem :) I did not see anyone who made a tutorial with forge so I decided to make my own. Part of the stuff is copied from rpiMike's tutorial, but I have edited the runScripts to allow Minecraft 1.12.2 Optifine and Forge.
1 * Raspberry Pi Zero W, 1 * Raspberry Pi 2, 1 * Raspberry Pi 3 1 * Raspberry Pi 3B + :mrgreen:

Check Out My Raspberry Site (Run on a Raspberry Pi 3B :) ): Https://Html.dynu.net

Wesman266373
Posts: 1
Joined: Wed Apr 18, 2018 10:11 pm

Re: How to setup Minecraft 1.12.2 + Optifine + Forge On a Raspberry Pi 2B or later

Sun May 19, 2019 2:03 pm

so I was trying to run it with Minecraft 1.8.9 but it doesn't seem to work, can someone help me?

User avatar
DarkPlatinum
Posts: 822
Joined: Thu Nov 02, 2017 2:30 pm
Location: Unknown
Contact: Website

Re: How to setup Minecraft 1.12.2 + Optifine + Forge On a Raspberry Pi 2B or later

Tue May 21, 2019 8:14 am

This was made for 1.12.2. You could edit the cp= command for 1.8.9 like in rpiMike's post, but you would not have multiplayer functionality. You would also have to personally test the version of forge that works.
1 * Raspberry Pi Zero W, 1 * Raspberry Pi 2, 1 * Raspberry Pi 3 1 * Raspberry Pi 3B + :mrgreen:

Check Out My Raspberry Site (Run on a Raspberry Pi 3B :) ): Https://Html.dynu.net

Nexus_Loa
Posts: 1
Joined: Sat Jul 13, 2019 9:01 pm

Re: How to setup Minecraft 1.12.2 + Optifine + Forge On a Raspberry Pi 2B or later

Sat Jul 13, 2019 9:08 pm

So here is my problem,
Today I tried installing minecraft on my Raspberry Pi 3 B+ and I got an error. It seemed normal except for the fact that the launcher would not reopen. I kept following the steps with everything seeming normal until I tried for real, opening up minecraft. Everything looked normal till I saw this error - ./runOptifine1_12_2.sh: 52: ./runOptifine1_12_2.sh: /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java: not found. I have no idea what to do, can someone please help!

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

Re: How to setup Minecraft 1.12.2 + Optifine + Forge On a Raspberry Pi 2B or later

Tue Jul 16, 2019 10:42 am

I suspect you are using Raspbian Buster which doesn’t have Oracle Java installed by default.

User avatar
DarkPlatinum
Posts: 822
Joined: Thu Nov 02, 2017 2:30 pm
Location: Unknown
Contact: Website

Re: How to setup Minecraft 1.12.2 + Optifine + Forge On a Raspberry Pi 2B or later

Tue Jul 16, 2019 1:54 pm

You would need to reinstall java onto raspbian buster. RpiMike should be able to give you the command :)
1 * Raspberry Pi Zero W, 1 * Raspberry Pi 2, 1 * Raspberry Pi 3 1 * Raspberry Pi 3B + :mrgreen:

Check Out My Raspberry Site (Run on a Raspberry Pi 3B :) ): Https://Html.dynu.net

Return to “Gaming”