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

How to setup Minecraft 1.16.1 on Pi4

Sat Jul 04, 2020 4:33 pm

How to setup Full Minecraft 1.16.1 (with Optifine preview) on Raspberry Pi4

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 in an open sided case with small fan (currently off).
Should work on 2GB,4GB and 8GB Pi4.
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)

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://www.dropbox.com/s/chdb4uts1fnm2bn/setupMC1_16_1_3264.sh && chmod +x setupMC1_16_1_3264.sh && ./setupMC1_16_1_3264.sh
2 Run Minecraft launcher :

Code: Select all

./runLauncher.sh
Login with Minecraft email and password
Click 'edit profile' and select use release - 'release 1.16.1', then 'save profile'
Click Play to install game
You will then receive an error ([... ERROR]: Game ended with bad state (exit code ...))
Close launcher, may need to press Ctrl-C to return to command prompt

3 Install Optifine

Code: Select all

./optifine1_16_1_G2_pre2Install.sh
Click install.

4 Run Minecraft launcher

Code: Select all

./runLauncher.sh
Select the OptiFine profile and click play. The launcher will crash, may need to press Ctrl-C to return to command prompt.

5 Edit runMC1_16_1_OptifineG2pre.sh

Code: Select all

mousepad runMC1_16_1_OptifineG2pre.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_16_1_OptifineG2pre.sh
Change options in Minecraft to reduce render chunks to 3.

Hopefully Minecraft should run :P

GulDukat
Posts: 1
Joined: Sat Jul 04, 2020 5:03 pm

Re: How to setup Minecraft 1.16.1 on Pi4

Sat Jul 04, 2020 5:07 pm

Thanks.
Worked perfectly, first time on fresh installation of;

2020-05-27-raspios-buster-arm64

on my RPi4 4G.

Pokemonbulbasaur
Posts: 49
Joined: Fri May 29, 2020 9:17 pm

Re: How to setup Minecraft 1.16.1 on Pi4

Sat Jul 04, 2020 5:19 pm

On Windows 10 on raspberry pi I got the regular launcher to run
116.1 will install then crash
I am converting .sh to bat

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

Re: How to setup Minecraft 1.16.1 on Pi4

Sat Jul 04, 2020 5:29 pm

Pokemonbulbasaur wrote:
Sat Jul 04, 2020 5:19 pm
On Windows 10 on raspberry pi I got the regular launcher to run
116.1 will install then crash
I am converting .sh to bat
I doubt you will get Minecraft running on Win10 on a Pi.

redapple115
Posts: 14
Joined: Sun Mar 15, 2020 10:05 pm

Re: How to setup Minecraft 1.16.1 on Pi4

Sat Jul 04, 2020 5:32 pm

Thanks for this. It runs great!

exchentrix
Posts: 5
Joined: Tue Jun 23, 2020 3:27 pm

Re: How to setup Minecraft 1.16.1 on Pi4

Sat Jul 04, 2020 6:13 pm

Works like a charm. Thank you.
Best,
Christian

Pokemonbulbasaur
Posts: 49
Joined: Fri May 29, 2020 9:17 pm

Re: How to setup Minecraft 1.16.1 on Pi4

Sun Jul 05, 2020 7:41 pm

I am going to make a youtube video on How to Install Minecraft Java Edition 1.16.1 on Pi4

Pokemonbulbasaur
Posts: 49
Joined: Fri May 29, 2020 9:17 pm

Re: How to setup Minecraft 1.16.1 on Pi4

Sun Jul 05, 2020 8:16 pm

My Screen Recorder wasn't recording corectly now have to reinstall raspberry pi os arm64

Pokemonbulbasaur
Posts: 49
Joined: Fri May 29, 2020 9:17 pm

Re: How to setup Minecraft 1.16.1 on Pi4

Sun Jul 05, 2020 9:35 pm

On youtube there was no videos on how to install minecraft 1.16.1 on the raspberry pi 4
I have uploaded a video to youtube
https://www.youtube.com/watch?v=qzfJVefHvFA

Oog
Posts: 15
Joined: Sat Jun 13, 2020 1:48 am

Re: How to setup Minecraft 1.16.1 on Pi4

Mon Jul 06, 2020 2:25 pm

It runs great, but i am often getting this error message in the Terminal window:
DRM_IOCTL_MODE_CREATE_DUMB failed: Cannot allocate memory
Failed to create scanout resource

How can i fix this?

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

Re: How to setup Minecraft 1.16.1 on Pi4

Mon Jul 06, 2020 2:27 pm

Oog wrote:
Mon Jul 06, 2020 2:25 pm
It runs great, but i am often getting this error message in the Terminal window:
DRM_IOCTL_MODE_CREATE_DUMB failed: Cannot allocate memory
Failed to create scanout resource

How can i fix this?
Which Pi? How much memory? Which OS? Are you running anything else? What screen resolution? What is monitor native resolution? Have you changed any Pi config settings from initial OS install?

Pokemonbulbasaur
Posts: 49
Joined: Fri May 29, 2020 9:17 pm

Re: How to setup Minecraft 1.16.1 on Pi4

Mon Jul 06, 2020 11:00 pm

On the raspberry pi os arm64 beta There was a lot of lag
I tested on raspberry pi 4 4GB model running at base clock speed
I overclocked the raspberry pi 4 to 2.0 ghz
Minecraft runs as well as 1.15.2 on the raspberry pi 4
To Overclock simply go to config.txt on a seperate computer
or seperate os on raspberry pi
Also I recomend useing a fan with raspberry pi 4 while overclocked as it can get reallly hot fast
Also overclock at your own risk this method has been tested on many raspberry pi 4's
and has worked fine
open in text editor
go to line about overclock replace lines with

over_voltage=6
arm_freq=2000
gpu_freq=750

Gamer4life1534
Posts: 13
Joined: Sat Jan 25, 2020 9:16 am

Re: How to setup Minecraft 1.16.1 on Pi4

Wed Jul 08, 2020 1:21 pm

rpiMike wrote:
Sat Jul 04, 2020 5:29 pm
Pokemonbulbasaur wrote:
Sat Jul 04, 2020 5:19 pm
On Windows 10 on raspberry pi I got the regular launcher to run
116.1 will install then crash
I am converting .sh to bat
I doubt you will get Minecraft running on Win10 on a Pi.

install windows 10 ARM 32

it is currentally working for me

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

Re: How to setup Minecraft 1.16.1 on Pi4

Wed Jul 08, 2020 1:23 pm

Gamer4life1534 wrote:
Wed Jul 08, 2020 1:21 pm
rpiMike wrote:
Sat Jul 04, 2020 5:29 pm
Pokemonbulbasaur wrote:
Sat Jul 04, 2020 5:19 pm
On Windows 10 on raspberry pi I got the regular launcher to run
116.1 will install then crash
I am converting .sh to bat
I doubt you will get Minecraft running on Win10 on a Pi.

install windows 10 ARM 32

it is currentally working for me
Are you running Minecraft on it? If so please post a video.

Gamer4life1534
Posts: 13
Joined: Sat Jan 25, 2020 9:16 am

Re: How to setup Minecraft 1.16.1 on Pi4

Thu Jul 09, 2020 12:25 am

i keep getting this crash report when playing servers
and normal worlds

please help me fix this


mmap of bo 3842 (offset 0x0000000022cf6000, size 532480) failed Aborted

LittleDonnieJ
Posts: 3
Joined: Thu Sep 14, 2017 5:44 pm

Re: How to setup Minecraft 1.16.1 on Pi4

Thu Jul 09, 2020 5:05 pm

Is Optifine required for this to run? Would it run better or worse without?

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

Re: How to setup Minecraft 1.16.1 on Pi4

Thu Jul 09, 2020 6:44 pm

Gamer4life1534 wrote:
Thu Jul 09, 2020 12:25 am
i keep getting this crash report when playing servers
and normal worlds

please help me fix this


mmap of bo 3842 (offset 0x0000000022cf6000, size 532480) failed Aborted
Which Pi? Which OS? Have you changed anything from base OS install? Any overclocking? Are you using your own valid MC licence?
Last edited by rpiMike on Thu Jul 09, 2020 6:47 pm, edited 1 time in total.

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

Re: How to setup Minecraft 1.16.1 on Pi4

Thu Jul 09, 2020 6:46 pm

LittleDonnieJ wrote:
Thu Jul 09, 2020 5:05 pm
Is Optifine required for this to run? Would it run better or worse without?
Yes, Optifine is required, I believe it will run worse without.

Gamer4life1534
Posts: 13
Joined: Sat Jan 25, 2020 9:16 am

Re: How to setup Minecraft 1.16.1 on Pi4

Fri Jul 10, 2020 1:45 pm

rpiMike wrote:
Thu Jul 09, 2020 6:44 pm
Gamer4life1534 wrote:
Thu Jul 09, 2020 12:25 am
i keep getting this crash report when playing servers
and normal worlds

please help me fix this


mmap of bo 3842 (offset 0x0000000022cf6000, size 532480) failed Aborted
Which Pi? Which OS? Have you changed anything from base OS install? Any overclocking? Are you using your own valid MC licence?


Im using the raspberry pi 4b, Raspberrian OS
Have you changed anything from base OS install? no i have not
Any overclocking? no
Are you using your own valid MC licence: yes

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

Re: How to setup Minecraft 1.16.1 on Pi4

Fri Jul 10, 2020 1:50 pm

Which Pi4 ? Is that 32 bit OS? Any more detail in the error message? Are you running anything else at the same time? What resolution monitor?

Gamer4life1534
Posts: 13
Joined: Sat Jan 25, 2020 9:16 am

Re: How to setup Minecraft 1.16.1 on Pi4

Fri Jul 10, 2020 1:54 pm

rpiMike wrote:
Fri Jul 10, 2020 1:50 pm
Which Pi4 ? Is that 32 bit OS? Any more detail in the error message? Are you running anything else at the same time? What resolution monitor?

Raspberry pi 4b 4gb ram
Is that 32 bit OS? Yeah
Any more detail in the error message? Not that I am aware of.
Are you running anything else at the same time? no i am not just this application
What resolution monitor? 1080p

Gamer4life1534
Posts: 13
Joined: Sat Jan 25, 2020 9:16 am

Re: How to setup Minecraft 1.16.1 on Pi4

Fri Jul 10, 2020 1:54 pm

do you want me to send in a crash report file from the files

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

Re: How to setup Minecraft 1.16.1 on Pi4

Fri Jul 10, 2020 2:06 pm

Can you paste it into code tags?

Code: Select all

Like this

Oog
Posts: 15
Joined: Sat Jun 13, 2020 1:48 am

Re: How to setup Minecraft 1.16.1 on Pi4

Fri Jul 10, 2020 2:24 pm

rpiMike wrote:
Mon Jul 06, 2020 2:27 pm
Oog wrote:
Mon Jul 06, 2020 2:25 pm
It runs great, but i am often getting this error message in the Terminal window:
DRM_IOCTL_MODE_CREATE_DUMB failed: Cannot allocate memory
Failed to create scanout resource

How can i fix this?
Which Pi? How much memory? Which OS? Are you running anything else? What screen resolution? What is monitor native resolution? Have you changed any Pi config settings from initial OS install?
After running it several times more, i stopped getting the error message. I have no idea what happened.

HenriZ
Posts: 54
Joined: Sun Feb 28, 2016 4:19 pm

Re: How to setup Minecraft 1.16.1 on Pi4

Fri Jul 10, 2020 5:14 pm

I did not read this posting, after I got it working using the 1.15.2 instructions and changing the files.

I run Minecraft on a 2Gb Pi4, with the official pi4 power supply and an active cooling setup (heatsink with 2 fans).

It takes INCREDIBLY long to load. Like start a new game, the world generation easily takes 20 minutes, but once you're in the world, it's perfectly playable.

You HAVE to use a 64 bit OS. I used Ubuntu 20.04 server, and installed ubuntu MATE desktop with lighdm on it.

The ppl with memory errors: try to create a swapfile. Default the script sais 1Gb max 2Gb mem, but a 2Gb pi doesn't have that kind of memory free. Creating a swapfile might solve the memory issues. Also look at the -xmms and -xmmg params, you might change those from 1G/2G default to 512M/1G.
Last edited by HenriZ on Sun Jul 12, 2020 8:57 pm, edited 2 times in total.

Return to “Gaming”