User avatar
HawaiianPi
Posts: 4235
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Mon Mar 18, 2019 12:13 am

whyme193 wrote:
Sun Mar 17, 2019 2:19 pm
hello everybody me and my brother just bought RPi 3 b+ with cases, heatsinks, fans and sd cards.Following the tutorial i have managed to get minecraft 1.12.1 running smooth with little to no lag. However the plan was for us to get modded minecraft up and running...
The Pi can barely run Minecraft as it is. Other than mods that make it run faster (Optifine), I think your goals may be too ambitious.
Firstly the way i understand it...
As I recall, copying and pasting that one line was all I needed to do to get 1.12.2 running. I did fiddle with the memory settings near the end of the script to try and get a longer render distance stable, and I managed to get it running at render distance 3, but only at low resolution. Other than that, I didn't play with it much.

I messed around on my Creeper Pie SMP server a bit, just because I could. It was a briefly amusing novelty to play Minecraft on a Pi, on a multi-player server also run on a Pi, but the Raspberry Pi is a really poor client machine for playing the game (works quite well as a server, though).

Good luck, but be sure to manage your expectations, because adding too many mods will likely make the game unplayable.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

whyme193
Posts: 4
Joined: Sun Mar 17, 2019 12:51 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Mon Mar 18, 2019 12:43 am

HawaiianPi wrote:
Mon Mar 18, 2019 12:13 am
whyme193 wrote:
Sun Mar 17, 2019 2:19 pm
hello everybody me and my brother just bought RPi 3 b+ with cases, heatsinks, fans and sd cards.Following the tutorial i have managed to get minecraft 1.12.1 running smooth with little to no lag. However the plan was for us to get modded minecraft up and running...
The Pi can barely run Minecraft as it is. Other than mods that make it run faster (Optifine), I think your goals may be too ambitious.
Firstly the way i understand it...
As I recall, copying and pasting that one line was all I needed to do to get 1.12.2 running. I did fiddle with the memory settings near the end of the script to try and get a longer render distance stable, and I managed to get it running at render distance 3, but only at low resolution. Other than that, I didn't play with it much.

I messed around on my Creeper Pie SMP server a bit, just because I could. It was a briefly amusing novelty to play Minecraft on a Pi, on a multi-player server also run on a Pi, but the Raspberry Pi is a really poor client machine for playing the game (works quite well as a server, though).

Good luck, but be sure to manage your expectations, because adding too many mods will likely make the game unplayable.
My modding expectations are very low but it would be nice to add a small amount of light weight mods.
I unistalled minecraft completely restarted. trying for 1.12.2 from the start and using rpiMike's second run script thats already set for 1.12.2 as before it still wont launch but seems to be new error

Code: Select all

 ./runOptifine1_12_2.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   796  100   625  100   171    873    238 --:--:-- --:--:-- --:--:--   872
todays access token = 1e748edd5fe44b0bb1d101b84620cd38
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    75  100    63  100    12    148     28 --:--:-- --:--:-- --:--:--   148
MINECRAFT_UUID=21db5fafd18c4cb3999276c413b58178
Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
[20:31:30] [main/INFO]: Loading tweak class name optifine.OptiFineTweaker
[20:31:30] [main/ERROR]: Unable to launch
java.lang.ClassNotFoundException: optifine.OptiFineTweaker
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_65]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_65]
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[?:1.8.0_65]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_65]
	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:106) ~[launchwrapper-1.12.jar:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_65]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_65]
	at java.lang.Class.forName0(Native Method) ~[?:1.8.0_65]
	at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_65]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:98) [launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
However once again if i switch to try and run 1.12.1 it works with no issues 60 FPS and no lag.

whyme193
Posts: 4
Joined: Sun Mar 17, 2019 12:51 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Mon Mar 18, 2019 2:59 am

I now have minecraft 1.12.2 up and running, I successfully installed forge, I copied Mikesome13's run script and named it runforge1_12_2.sh now I run the .sh in the terminal and

Code: Select all

pi@raspberrypi:~/Minecraft $ ./runforge1_12_2.sh  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   796  100   625  100   171    812    222 --:--:-- --:--:-- --:--:--   812
todays access token = cdce55df042041edbbe83fabf76fe4b6
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    75  100    63  100    12    110     21 --:--:-- --:--:-- --:--:--   110
MINECRAFT_UUID=21db5fafd18c4cb3999276c413b58178
Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
[22:57:16] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[22:57:16] [main/ERROR]: Unable to launch
java.lang.ClassNotFoundException: net.minecraftforge.fml.common.launcher.FMLTweaker
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_65]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_65]
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[?:1.8.0_65]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_65]
	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:106) ~[launchwrapper-1.12.jar:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_65]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_65]
	at java.lang.Class.forName0(Native Method) ~[?:1.8.0_65]
	at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_65]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:98) [launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]

Maybe there is something i should do prior to starting the run script? idk every step along this set up has given some kind of issues but atleast of already started learning a fair bit about raspian now.
Thanks in advanced for any help. :)

User avatar
HawaiianPi
Posts: 4235
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Mon Mar 18, 2019 5:23 am

Look further back in this thread. I'm pretty sure there were others trying to get Forge working, but I don't recall the outcome.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

Gess1t
Posts: 16
Joined: Tue Oct 02, 2018 8:24 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Mon Mar 18, 2019 6:24 am

rpiMike wrote:
Mon Mar 11, 2019 9:01 pm
I think something else is missing from Stretch Lite that is stopping the GL driver from working.

Have you got a spare SD Card you can install Stretch with Desktop?
Done what you suggested, but now, Minecraft need permission for me to click play when wanting to download the last bit of data for optifine.

Code: Select all

java.io.FileNotFoundException: /home/pi/.minecraft/versions/1.12.1-OptiFine_HD_U_C5/1.12.1-OptiFine_HD_U_C5.json (Permission non accordée)
	at java.io.FileOutputStream.open0(Native Method) ~[?:1.8.0_65]
	at java.io.FileOutputStream.open(FileOutputStream.java:270) ~[?:1.8.0_65]
	at java.io.FileOutputStream.<init>(FileOutputStream.java:213) ~[?:1.8.0_65]
	at java.io.FileOutputStream.<init>(FileOutputStream.java:162) ~[?:1.8.0_65]
	at java.io.PrintWriter.<init>(PrintWriter.java:263) ~[?:1.8.0_65]
	at net.minecraft.launcher.updater.LocalVersionList.saveVersion(LocalVersionList.java:77) ~[launcher.jar:1.6.89-j]
	at net.minecraft.launcher.updater.MinecraftVersionManager.installVersion(MinecraftVersionManager.java:340) ~[launcher.jar:1.6.89-j]
	at com.mojang.launcher.game.runner.AbstractGameRunner.playGame(AbstractGameRunner.java:101) [launcher.jar:1.6.89-j]
	at net.minecraft.launcher.game.GameLaunchDispatcher$1.run(GameLaunchDispatcher.java:111) [launcher.jar:1.6.89-j]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_65]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_65]
	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65]
Permission non arccordée = Access Denied

EDIT: ok, i definitly had permissions issues on my raspberry pi, that i've fixed by editing them manually i followed the exact setup, and this isn't working anymore

Ok, i get the same issue than before i reflashed the OS, so i guess a kid broke the code, however, i'm wandering if the game is working for the others.

Edit 2 : fixed! I just started again from step 7 to step 11, and it was sucessful!

Apparently, the script will need you to fill the username in order for the script to recover the player's UUID from mojangs servers.
Last edited by Gess1t on Mon Mar 18, 2019 5:20 pm, edited 2 times in total.

Frederk
Posts: 26
Joined: Wed Aug 02, 2017 8:56 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Mon Mar 18, 2019 3:57 pm

Sometimes i get these errors:

Code: Select all

AL lib: (EE) ALCplaybackAlsa_mixerProc: available update failed: Broken pipe 
AL lib: (EE) ALCplaybackAlsa_mixerProc: mmap commit error: Broken pipe
and my FPS drop to below 1. This occurs randomly and it is really annoying sometimes bc. I have to restart minecraft. I already tried turning down all sounds and using a resource pack without sounds without a result.

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Tue Mar 19, 2019 2:46 pm

HawaiianPi wrote:
Mon Mar 18, 2019 5:23 am
Look further back in this thread. I'm pretty sure there were others trying to get Forge working, but I don't recall the outcome.
I had forge working. I had to try different versions though as it was hard to get mods paired with it.
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

whyme193
Posts: 4
Joined: Sun Mar 17, 2019 12:51 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Tue Mar 19, 2019 9:47 pm

HawaiianPi wrote:
Mon Mar 18, 2019 5:23 am
Look further back in this thread. I'm pretty sure there were others trying to get Forge working, but I don't recall the outcome.
Before even creating my account I've read this thread over completely at least twice. I'm only making posts because I've done everything mentioned in this thread and it did not yield the same result for me, probably through an error of mine but what error I have no clue. But anyways yes there were others trying to get forge working and they did, Mikesome13 also mentioned it only works with version 1.12.2.

ZombieTiTan
Posts: 4
Joined: Thu Dec 27, 2018 4:19 am

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Mon Apr 08, 2019 10:01 pm

When I put the ./runOptifine1_12_1.sh into the terminal this is what I get

Code: Select all

Unrecognized option: --username
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Can someone help. I have found the "--username" is in the runOptifine1_12_1.sh file but I dont know what to do with it. I am really new to this stuff and have no idea what to do. :cry: Please Help :cry:

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Mon Apr 08, 2019 10:09 pm

Did you amend the following with your details without changing the variable names?

MINECRAFT_LOGIN=aaa@bbb.ccc
MINECRAFT_USERNAME=abcdefghi
MINECRAFT_PASSWORD=xxxxxxxx

If you've got any unusual characters you may need double quotes.

ZombieTiTan
Posts: 4
Joined: Thu Dec 27, 2018 4:19 am

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Mon Apr 08, 2019 10:21 pm

rpiMike wrote:
Mon Apr 08, 2019 10:09 pm
Did you amend the following with your details without changing the variable names?

MINECRAFT_LOGIN=aaa@bbb.ccc
MINECRAFT_USERNAME=abcdefghi
MINECRAFT_PASSWORD=xxxxxxxx

If you've got any unusual characters you may need double quotes.
I already have, I don't know if I have any unusual characters but I did just to be safe, I found out what I did when you said at the bottom of the whole tutorial
1 Install required version using java -jar Minecraft.jar - and allow to crash
2 Scroll up in terminal window and find last ../jre/bin/java command, scroll across and find ‘-cp ’, copy this path list until ‘ net.minecraft.launchwrapper.Launch’
3 Paste this text into the cp= in the run.sh script
Well I copied the -cp aswell I just deleted that and now it works! Thanks! :D :D

ZombieTiTan
Posts: 4
Joined: Thu Dec 27, 2018 4:19 am

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Mon Apr 08, 2019 10:58 pm

Hey @rpiMike, I have no idea if @ works but what the heck. Just a quick question what is the latest version of Minecraft running on the pi?

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Mon Apr 08, 2019 11:01 pm

The latest version that is currently possible is 1.12.2

1.13 and above requires lwjgl3 which is not available on the Pi - yet

https://github.com/LWJGL/lwjgl3/issues/206

ancba
Posts: 2
Joined: Sat Apr 13, 2019 8:57 am

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sat Apr 13, 2019 9:03 am

Why i cannot use the last command,it says no permission

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sat Apr 13, 2019 3:05 pm

Do you mean you get permission denied running './runOptifine1_12_1.sh' ?

Did you 'sudo chmod +x runOptifine1_12_1.sh' (end of step 12)

ancba
Posts: 2
Joined: Sat Apr 13, 2019 8:57 am

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Fri Apr 26, 2019 9:43 am

rpiMike wrote:
Sat Apr 13, 2019 3:05 pm
Do you mean you get permission denied running './runOptifine1_12_1.sh' ?

Did you 'sudo chmod +x runOptifine1_12_1.sh' (end of step 12)
yes ,and I cannot use this command.but I update my system,they can work.thank you :D

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Fri May 03, 2019 11:26 am

I made a post on my site on how to get Forge 1.12.2 working. Thanks for your script rpiMike!

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

Raspberry Pi forums post: viewtopic.php?f=78&t=239592
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

jack jobby
Posts: 1
Joined: Fri May 17, 2019 2:19 pm

Trying to make pi run minecraft 1.14.1

Fri May 17, 2019 2:22 pm

I found the cp path list for 1.14.1 but could not find ‘ net.minecraft.launchwrapper.Launch’ in it so would it be possible for somebody to send me the correct cp ?

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

Re: Trying to make pi run minecraft 1.14.1

Fri May 17, 2019 3:36 pm

jack jobby wrote:
Fri May 17, 2019 2:22 pm
I found the cp path list for 1.14.1 but could not find ‘ net.minecraft.launchwrapper.Launch’ in it so would it be possible for somebody to send me the correct cp ?
Not possible unless you can get LWJGL3 compiling for ARM.

https://github.com/LWJGL/lwjgl3/issues/206

User avatar
HawaiianPi
Posts: 4235
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Trying to make pi run minecraft 1.14.1

Fri May 17, 2019 6:12 pm

jack jobby wrote:
Fri May 17, 2019 2:22 pm
I found the cp path list for 1.14.1 but could not find ‘ net.minecraft.launchwrapper.Launch’ in it so would it be possible for somebody to send me the correct cp ?
Version 1.12.2 is the latest version you can run on a Raspberry Pi.

Even if you could get LWJGL3 compiled for ARM it's highly doubtful newer versions would be playable on a Pi. My budget gaming laptop with a quad-core i7, 16GB RAM and Nvidia GPU is pushed hard playing 1.13.2 or 1.14.1, so I can't imagine our little Pi computers running them at anything more than slideshow frame rates.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

BigrahamLincoln
Posts: 2
Joined: Wed May 22, 2019 10:20 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Wed May 22, 2019 10:24 pm

every time I try to download glxgears it doesn't work and so in the end on the last step it won't work! please help

BigrahamLincoln
Posts: 2
Joined: Wed May 22, 2019 10:20 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Thu May 23, 2019 1:09 am

what do I do if it says unmet dependancies

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Thu May 23, 2019 10:00 am

BigrahamLincoln wrote:
Thu May 23, 2019 1:09 am
what do I do if it says unmet dependancies
What says unmet dependancies ?

Did you get glxgears working?

Which Pi are you using? Are you using the latest Raspbian Stretch? Are you using the official power supply? Are you using a 1080p HDMI screen?

User avatar
paulwratt
Posts: 83
Joined: Fri Jun 12, 2015 12:15 am

Re: Trying to make pi run minecraft 1.14.1

Thu Jun 20, 2019 12:57 pm

rpiMike wrote:
Fri May 17, 2019 3:36 pm
jack jobby wrote:
Fri May 17, 2019 2:22 pm
I found the cp path list for 1.14.1 but could not find ‘ net.minecraft.launchwrapper.Launch’ in it so would it be possible for somebody to send me the correct cp ?
Not possible unless you can get LWJGL3 compiling for ARM.

https://github.com/LWJGL/lwjgl3/issues/206
This should be working now according to:
https://github.com/LWJGL/lwjgl3/issues/ ... -496018922

I suggest (based on @HawaiianPi comments) that fullscreen 640x480 + kms-full and draw distance of 2 might get you v1.14 playable

Worth a crack just to see if it will run without crashing, even if the FPS is low.

Cheers, and thanks for all the effort put into this thread

Paul

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Thu Jun 20, 2019 5:36 pm

I have had 1.14.2 running but only lasted about 1 minute before crashing.

1.13.2 seems better: https://www.youtube.com/watch?v=TNCQXd1QzAc

Return to “Gaming”