With Christmas just a couple of weeks away, there’s a chance that you might end up getting a Raspberry Pi 3 or maybe even a Raspberry Pi 4. You might be wondering what to do with it, so I’m planning on doing a few videos and blog posts to give you some ideas.
In this blog post and video, we’re going to install Minecraft in just a few minutes. It took me less than 15 minutes on an RPi 4.
The source of the information for this can be found on the Raspberry Pi forums.
I’m using a Raspberry Pi 4 Max (thanks to CanaKit for providing it) with a fresh install of Raspbian Lite. I installed all the updates on mine before I started the video just to cut the video time down a bit.
If you haven’t done that yet, go to step 1.
If you have already run all the update, you can skip to step 2.
1. If you need to update an existing version use
sudo apt-get update && sudo apt-get -y upgrade
2. Pi3: In Menu\Preferences\Raspberry Pi Configuration:
- Performance Tab – set GPU Memory to 64MB if you have a Pi with 1GB of RAM. If you have more RAM, you can set this higher. I set mine to 128MB
- Reboot
3. Pi3: Enable ‘GL Driver’ from a terminal window
sudo raspi-config
- Select ‘Advanced Options’, then select ‘GL Driver’, then select ‘GL (Fake KMS)’, then select ‘Yes’ to reboot and enable the driver.
4. Download and run setupMC1 script
mkdir ~/Minecraft && cd ~/Minecraft && wget https://www.dropbox.com/s/4irv50ow07yxn65/setupMC1.sh && chmod +x setupMC1.sh && ./setupMC1.sh
5. Run Minecraft launcher:
cd ~/Minecraft && /opt/jdk/jdk1.8.0_211/bin/java -jar Minecraft.jar
- Login with Minecraft email and password
- Click ‘edit profile’ and select use release – ‘release 1.12.2’, then ‘save profile’
- Click Play to install game
- You will then receive an error
- Close launcher
Post Continues After This Ad Break:
Ad Break
Post Continues Here:
6. Install Optifine
cd ~/Minecraft && /opt/jdk/jdk1.8.0_211/bin/java -jar OptiFine_1.12.2_HD_U_F4.jar
- Click install
7. Run Minecraft launcher
cd ~/Minecraft && /opt/jdk/jdk1.8.0_211/bin/java -jar Minecraft.jar
- Select the OptiFine profile and click play. The launcher will crash.
8. Run setupMC2 script
cd ~/Minecraft && ./setupMC2.sh
9. Install leafpad
sudo apt install leafpad
10. Edit runMC1_12_2_OptifineE3.sh
leafpad runMC1_12_2_OptifineF4.sh
- Update MINECRAFT_LOGIN, MINECRAFT_USERNAME and MINECRAFT_PASSWORD to your own (may need “” for special characters)
11. Start Minecraft from terminal window
cd ~/Minecraft
./runMC1_12_2_OptifineF4.sh
Optional, but Suggested
- Change options in Minecraft to reduce render chunks to 2, this should avoid running out of memory.
- Turn everything down to low in the video settings (and turn on things like fast math)
- Suggest running in the default sized window for best performance.
That’s it! Minecraft should be running on your Raspberry Pi!
Music
I want to thank AudioSprite for the music in this video:
- Music: LoZ – Ocarina of Time – The Great Unknown
- Artist: Audio Sprite
- Twitter: https://twitter.com/TheAudioSprite
- YouTube: https://www.youtube.com/channel/UCtzKOQh-CpyvP5yYqEmRcAw
- SoundCloud: https://soundcloud.com/audiosprite87