Nathidraws
Posts: 25
Joined: Tue Dec 04, 2018 8:26 am
Location: United Kingdom
Contact: Website

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Mon Dec 17, 2018 11:15 am

Hey.
I was thinking of using Minecraft 1.12.2 on a Raspberry Pi 3 Model B:

  • Would I just have to change every mention of 1.12.1 to 1.12.2 in your tutorial?


Also, I have watched your video where you showed the Model B+ running 1.12.2, and it got me wondering:

  • Can only the Model B+ run 1.12.2, or is it possible for the Model B to run it aswell?

I know that the Raspberry Pi can't run 1.13 so I won't bother trying that.

Btw, thank you so much for this tutorial. I think a lot of people have used it and really appreciate everything you've done. :D
Last edited by Nathidraws on Mon Dec 17, 2018 11:58 am, edited 1 time in total.
A curious folk.

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Mon Dec 17, 2018 11:31 am

There is a link to a Minecraft 1.12.2 with OptiFine-1.12.2_HD_U_C9 script in the thread:

viewtopic.php?f=78&t=186547&start=75#p1217953

Nathidraws
Posts: 25
Joined: Tue Dec 04, 2018 8:26 am
Location: United Kingdom
Contact: Website

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Mon Dec 17, 2018 12:00 pm

Oh. Thanks :D
A curious folk.

Nathidraws
Posts: 25
Joined: Tue Dec 04, 2018 8:26 am
Location: United Kingdom
Contact: Website

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Wed Dec 19, 2018 3:53 pm

Is it possible to create a desktop shortcut for this?
Instead of having to launch it using a terminal command.


After reading how to make shortcuts, I came across stuff like this:

Code: Select all

[Desktop Entry]
Version=1.0
Name=Shortcut
Comment=description of software
Icon=location of the icon
Exec=location of the executable
Terminal=false
Type=Application
Basically you just have to edit that to match what you're trying to run, then put it in a .desktop file.


I think editing it as a .txt file first, then renaming .txt to .desktop would work.
Not sure though. :P
A curious folk.

mephillips35
Posts: 2
Joined: Fri Dec 21, 2018 8:40 am

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Fri Dec 21, 2018 9:06 am

I successfully followed the tutorial to get 1.8.9 running on RPi 3. I started afresh with the method at the top of this thread, but adjusted to install 1.12.2.

I also get the problem reported at viewtopic.php?f=78&t=186547&start=25#p1190120 on trying to install OptiFine. So this is in step 11. The OptiFine installer opens, and is happy about the right version of Minecraft being there, but when I click the Install button I get the error as in the previous posting just linked to.

In step 10 I have tried downloading several different versions of OptiFine:

OptiFine 1.12.2 HD U C5
OptiFine 1.12.2 HD U E2
OptiFine 1.12.2 HD U E3

but I get the same error with all of them. Any ideas how to solve this one? I am using a Pi-Top on a RPi 3 with Raspbian GNU/Linux 9 (stretch).

Alternatively, if I skip the OptiFine steps, is it still possible to get 1.12.2 running? In which case what changes would I need to make to the run.sh file?

Dump of backtrace shown in full here:

java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:219)
at java.util.zip.ZipFile.<init>(ZipFile.java:149)
at java.util.zip.ZipFile.<init>(ZipFile.java:163)
at optifine.Patcher.process(Patcher.java:71)
at optifine.Installer.installOptiFineLibrary(Installer.java:370)
at optifine.Installer.doInstall(Installer.java:96)
at optifine.InstallerFrame.onInstall(InstallerFrame.java:425)
at optifine.InstallerFrame.connEtoC1(InstallerFrame.java:490)
at optifine.InstallerFrame.access$7(InstallerFrame.java:484)
at optifine.InstallerFrame$IvjEventHandler.actionPerformed(InstallerFrame.java:46)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6535)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6300)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4891)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2750)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

uncraftablecreeper
Posts: 12
Joined: Tue Oct 09, 2018 5:04 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sat Dec 22, 2018 9:26 am

This can be easier if you use wor (windows on raspberry) https://www.youtube.com/watch?v=xyLdAs_roIA then just run windows alternative download of minecraft https://launcher.mojang.com/download/Minecraft.exe
THE PI IS A LIE :D

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sat Dec 22, 2018 9:48 am

uncraftablecreeper wrote:
Sat Dec 22, 2018 9:26 am
This can be easier if you use wor (windows on raspberry) https://www.youtube.com/watch?v=xyLdAs_roIA then just run windows alternative download of minecraft https://launcher.mojang.com/download/Minecraft.exe
Have you tried this ?

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sat Dec 22, 2018 10:08 am

mephillips35 wrote:
Fri Dec 21, 2018 9:06 am
I successfully followed the tutorial to get 1.8.9 running on RPi 3. I started afresh with the method at the top of this thread, but adjusted to install 1.12.2.

I also get the problem reported at viewtopic.php?f=78&t=186547&start=25#p1190120 on trying to install OptiFine. So this is in step 11. The OptiFine installer opens, and is happy about the right version of Minecraft being there, but when I click the Install button I get the error as in the previous posting just linked to.

In step 10 I have tried downloading several different versions of OptiFine:

OptiFine 1.12.2 HD U C5
OptiFine 1.12.2 HD U E2
OptiFine 1.12.2 HD U E3

but I get the same error with all of them. Any ideas how to solve this one? I am using a Pi-Top on a RPi 3 with Raspbian GNU/Linux 9 (stretch).

Alternatively, if I skip the OptiFine steps, is it still possible to get 1.12.2 running? In which case what changes would I need to make to the run.sh file?

Dump of backtrace shown in full here:

java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
...
Have you tried any of the suggestions from googling 'java.util.zip.ZipException: error in opening zip file' ?

mephillips35
Posts: 2
Joined: Fri Dec 21, 2018 8:40 am

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sat Dec 22, 2018 1:28 pm

Have you tried any of the suggestions from googling 'java.util.zip.ZipException: error in opening zip file' ?
I did do a search but the pages I looked at either seemed more applicable to Java developers or I could not work out what the best advice was to follow. On Stack Overflow there was a suggestion to check log4j.jar and I think I'll have a go at following that up.

Good news is that after an hour or two trying different things I have managed to get 1.12.2 running without OptiFree by trying different possibilities based on a diff of the 1.8.9 run.sh I had succeeded with before, and the 1.12.1 run.sh script you posted further up the thread. So the immediate aim of getting two machines in the house running Minecraft for the Christmas holidays is satisfied, and I'll come back to the refinements later.

Thanks for your suggestions and for posting such good instructions in the first place.
This can be easier if you use wor (windows on raspberry)
I had a quick look at the video just now. The comments underneath suggest there is no network connectivity with this method, which would not suit my needs. That may be out of date though.

Nathidraws
Posts: 25
Joined: Tue Dec 04, 2018 8:26 am
Location: United Kingdom
Contact: Website

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sat Dec 22, 2018 1:53 pm

:? My question seemed to have been ignored:

Is it possible to create a desktop shortcut for this?
Instead of having to launch it using a terminal command.


if that's actually what you have to do.. You see, I don't have a Pi yet. :P
A curious folk.

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sat Dec 22, 2018 1:58 pm

Yes, its possible, I don't have a Pi to hand at the moment. You basically just need to create a desktop link to the run.sh script.

Nathidraws
Posts: 25
Joined: Tue Dec 04, 2018 8:26 am
Location: United Kingdom
Contact: Website

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sat Dec 22, 2018 3:59 pm

Would something like this work?
Entering the following text into a .desktop file:

Code: Select all

[Desktop Entry]
Version=1.12.2
Name=Minecraft
Comment=Minecraft - A game about blocks
Icon=location/of/icon
Exec=/home/pi/Minecraft/run.sh
Terminal=false
Type=Application
It'll probably need to be changed a bit.. :P
Can't try it out until Christmas, as that is when I am getting my Pi.
A curious folk.

jdonald
Posts: 413
Joined: Fri Nov 03, 2017 4:36 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Wed Dec 26, 2018 7:30 am

After some fixes that went in yesterday, Minecraft works with the legacy driver via gl4es. After one is familiar with the idea of gl4es, the brief instructions are to make sure to compile gl4es with -DBCMHOST=1 -DCMAKE_BUILD_TYPE=Release and run it around Minecraft with LIBGL_FB=1

As a follow-on I tried running Minecraft on a Pi Zero W (full OpenGL driver normally requires Pi 2 or 3). The world looked nice and the game didn't crash, but it crawled at about one frame per minute. I guess there's only so much that can be done with 512 MB shared across CPU and GPU.

gl4es mode might still be useful for users in other situations where they can't or won't run the open-source driver, such as RetroPie or BerryBoot.

Mostly unrelated: In my process of testing I messed with OpenAL at some point and that left me wondering, why do the instructions require downloading a special version fo libopenal.so? Why not use the installed one from /usr/lib/arm-linux-gnueabihf/?

Hamburger Pi
Posts: 8
Joined: Thu Dec 27, 2018 12:31 am

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Thu Dec 27, 2018 12:36 am

After following all of the steps, this happens when I try starting Minecraft at the command line:

Code: Select all

./runOptifine1_12_1.sh: 14: ./runOptifine1_12_1.sh: Macintosh: not found
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   265  100   107  100   158    263    389 --:--:-- --:--:-- --:--:--   390
todays access token = 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    81  100    66  100    15    306     69 --:--:-- --:--:-- --:--:--   308
MINECRAFT_UUID=ea0c412dd1d14bcbb29248dc60988ee4
./runOptifine1_12_1.sh: 52: ./runOptifine1_12_1.sh: /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java: not found
Why does it say Macintosh? I have java; Minicraft (A java 2D Minecraft by Notch) works, but this won't! This text is the only thing that happens. :|

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Thu Dec 27, 2018 7:51 am

Which Pi are you using? Are you using the latest Raspbian Stretch with Desktop? Did you get glxgears running st 60fps?

Hamburger Pi
Posts: 8
Joined: Thu Dec 27, 2018 12:31 am

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Thu Dec 27, 2018 4:47 pm

I'm using the Raspberry Pi 3B (not 3B+), and I have Raspbian Jessie w/ Desktop running on RetroPie.
GLXGears runs at ~48 FPS. My RPi cannot be overclocked tho. :(

gounthar
Posts: 26
Joined: Mon Jul 29, 2013 1:39 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sat Dec 29, 2018 12:04 pm

How can we backup the server? My kids have already lost their maps twice.
2*3B at home for the kids
7*3B+ at work for serious business (gitlab-runner, broadcasting conference, openSTF server...)
Hoping to get a few hats in the following weeks

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sat Dec 29, 2018 12:45 pm

If your talking about this Minecraft client the worlds are stored in ~/.minecraft/saves

Image

You should be able to copy these to a usb drive.

gounthar
Posts: 26
Joined: Mon Jul 29, 2013 1:39 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sat Dec 29, 2018 12:53 pm

Great, thanks, I'll make a cron to upload them to a ftp server.
2*3B at home for the kids
7*3B+ at work for serious business (gitlab-runner, broadcasting conference, openSTF server...)
Hoping to get a few hats in the following weeks

jdonald
Posts: 413
Joined: Fri Nov 03, 2017 4:36 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sun Dec 30, 2018 1:23 am

Hamburger Pi wrote:
Thu Dec 27, 2018 4:47 pm
I'm using the Raspberry Pi 3B (not 3B+), and I have Raspbian Jessie w/ Desktop running on RetroPie.
GLXGears runs at ~48 FPS.
I suspect your gears also have blinking colors rather than a smooth red, green, blue. In this case it doesn't sound like the OpenGL driver took effect when you ran sudo raspi-config. Run lsmod | grep vc4 to check.

To find the path to Java on your Jessie installation, run which java. Note that if it's the OpenJDK Java that won't be performant enough for Minecraft and you need to install Oracle Java.

Line 14 in runOptifine.sh is where your password goes, so it looks like you made a typo, perhaps a space right after the equals sign.

If you want to run Minecraft on Retropie with the legacy driver in theory you can use gl4es as I described above, but in your case I'd recommend first following the instructions and starting on Stretch!

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Mon Dec 31, 2018 5:45 pm

I always get 1 of 2 errors. Error: Could not find or load main class net.minecraft.launchwrapper.Launch. Or Error: Could not find or load main class net.minecraft.client.main.Main. Can you help?

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Mon Dec 31, 2018 6:06 pm

ZombieTiTan wrote:
Mon Dec 31, 2018 5:45 pm
I always get 1 of 2 errors. Error: Could not find or load main class net.minecraft.launchwrapper.Launch. Or Error: Could not find or load main class net.minecraft.client.main.Main. Can you help?
When installing Minecraft did you 'edit profile' and select use release - 'release 1.12.1', then 'save profile' ? Did you download the exact version of Optifine? Are you running the latest Raspbian Stretch?

gounthar
Posts: 26
Joined: Mon Jul 29, 2013 1:39 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Tue Jan 01, 2019 9:16 pm

Did anyone get to use a USB gamepad with Minecraft on the Pi?
I have a Retroflag Classic USB GamePro and a GameSir G3W but was not able to use them with Minecraft (even if the GamePro can be seen with xboxdrv and the G3W with lsusb).
MineControl can't see any of them by the way...
Thanks.
2*3B at home for the kids
7*3B+ at work for serious business (gitlab-runner, broadcasting conference, openSTF server...)
Hoping to get a few hats in the following weeks

RaspiUser213
Posts: 6
Joined: Thu Jan 03, 2019 2:46 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Fri Jan 04, 2019 9:08 pm

So, how do I get 1.8 working? I ran the launcher and it install 1.8, then it crashed. Now, I can't seem to figure out what to add to the runoptifine.sh file.

KoolDud3
Posts: 38
Joined: Thu Dec 20, 2018 5:07 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sat Jan 05, 2019 11:02 am

wow. this is cool! does it lag or take up space? can i run it off a usb stick?
I exist

Return to “Gaming”