Dirky
Posts: 1
Joined: Wed Jan 30, 2019 11:34 am

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Wed Jan 30, 2019 11:39 am

Hello everyone.

I have follow all the instructions for installing Minecraft, but I have an error when starting the script for Minecraft with Optifine. Here is the error :
[12:13:02] [main/ERROR]: Unable to launch
java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
Caused by: java.lang.NoClassDefFoundError: cff
at net.minecraft.client.main.Main.main(SourceFile:38) ~[Main.class:?]
... 6 more
Caused by: java.lang.ClassNotFoundException: cff
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[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 net.minecraft.client.main.Main.main(SourceFile:38) ~[Main.class:?]
... 6 more
Caused by: java.lang.NoClassDefFoundError: com/google/gson/JsonDeserializer
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_65]
at java.lang.ClassLoader.defineClass(ClassLoader.java:760) ~[?:1.8.0_65]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_65]
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[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 net.minecraft.client.main.Main.main(SourceFile:38) ~[Main.class:?]
... 6 more
Caused by: java.lang.ClassNotFoundException: com.google.gson.JsonDeserializer
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[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.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_65]
at java.lang.ClassLoader.defineClass(ClassLoader.java:760) ~[?:1.8.0_65]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_65]
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[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 net.minecraft.client.main.Main.main(SourceFile:38) ~[Main.class:?]
... 6 more
Caused by: java.lang.NullPointerException
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[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.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_65]
at java.lang.ClassLoader.defineClass(ClassLoader.java:760) ~[?:1.8.0_65]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_65]
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[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 net.minecraft.client.main.Main.main(SourceFile:38) ~[Main.class:?]
... 6 more
I don't know what to do, can you please help me ? I have a raspberry pi 3b+.

Thanks !

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Wed Jan 30, 2019 12:06 pm

Are you using the latest Raspbian Stretch? Did you get glxgears running at 60fps? Did you edit your profile and specify release 1.12.1 when installing Minecraft? Did you download the correct Optifine?

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Wed Jan 30, 2019 1:22 pm

All errors people get is usually user error involved.
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

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sat Feb 09, 2019 10:57 am

rpiMike wrote:
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 ?
not yet since all my sd cards have died on me during installation
THE PI IS A LIE :D

xacker
Posts: 1
Joined: Thu Feb 14, 2019 6:23 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Thu Feb 14, 2019 6:30 pm

Hi!
I have achieved stable work of 1.12.2 with OptiFIne 12.2. Also Forge Mod is works but with lags. It is possible to make something like OptiForge? https://minecraft.gamepedia.com/Mods/In ... _Installer

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sun Feb 17, 2019 6:17 am

Fresh baked, 100% organic Minecraft Pie!

Client machine:
  • Raspberry Pi 3B+ (in Flirc case)
  • Official Raspberry Pi Universal Power Supply
  • SanDisk Ultra A1 micro SD card (32GB)
  • Raspbian Stretch Desktop
  • Oracle Java 1.8.0_65
  • Minecraft Java Edition 1.12.2
  • OptiFine 1.12.2 HD U E3
Server machine:
  • Raspberry Pi 3B+ (in Flirc case)
  • RAVPower charger (PSU) + Volutz micro USB cable (1ft/30.5CM)
  • SanDisk Ultra A1 micro SD card (32GB)
  • Raspbian Stretch Lite
  • Oracle Java 1.8.0_201 (jdk-8u201-linux-arm32-vfp-hflt.tar.gz)
  • SpigotMC git-Spigot-e8ded36-acbc348 (MC: 1.12.2) Implementing API version 1.12.2-R0.1-SNAPSHOT
Custom 16x16 resource pack based on New Default Beta V2 (with my own tweaks).
Image

5x ARMv7 Processor? Image When did my 3B+ grow an extra core?
And how can I make it grow 3 more... Image

FYI: it's really hard to fly Elytra at render distance 3. You're moving fast and things pop into view with little time to react. :shock:
Although the death message is funny (TinyZombie experienced kinetic energy).
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?

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sun Feb 17, 2019 11:12 am

Nice :D

Its_Azazel
Posts: 6
Joined: Mon Jan 21, 2019 4:11 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sun Mar 10, 2019 5:55 pm

Okay, so my GLXGears is acting strangely. It shows 120+ FPS, I've gone through the whole tutorial several times, and it keeps showing roughly the same numbers. I'm very sure I haven't missed anything, but I could just be missing the obvious. :?

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sun Mar 10, 2019 7:06 pm

Are you running latest Raspbian Stretch? Which model Pi? What psu? Set GL full KMS? 1080p hdmi screen?

Its_Azazel
Posts: 6
Joined: Mon Jan 21, 2019 4:11 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sun Mar 10, 2019 7:16 pm

I'm using the latest Raspbian downloaded from the downloads tab, a Raspberry Pi 3 B+, official 5V Raspberry Pi power supply, a projector for a screen if that makes any difference, and I'm using the full KMS. Is there anything causing problems in my setup?

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sun Mar 10, 2019 7:20 pm

What resolution is the projector? Official 5.1V 2.5A psu?

Its_Azazel
Posts: 6
Joined: Mon Jan 21, 2019 4:11 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sun Mar 10, 2019 7:33 pm

I don't know the resolution of the projector, but I have a 7" official touchscreen that I haven't tried it on yet. the power supply I'm using is here: https://www.raspberrypi.org/products/ra ... er-supply/

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sun Mar 10, 2019 7:38 pm

Try using GL Fake KMS.

Its_Azazel
Posts: 6
Joined: Mon Jan 21, 2019 4:11 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sun Mar 10, 2019 7:40 pm

Okay, I'll try that and come back to you if it works or not. Thanks!

Its_Azazel
Posts: 6
Joined: Mon Jan 21, 2019 4:11 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sun Mar 10, 2019 7:59 pm

Just went through the process again, seems like the Fake KMS did the trick. :D

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 11, 2019 7:58 pm

Hi everyone, installed successfully minecraft, but when i run it, i get 1 FPS in main menu and ingame + character move alone and most of the time, the game will crash.

I activated the full kms drivers, installed mesa, all this stuff, i saw when installing the game that glxgears had flickering colors and was running at 53 FPS.
My Pi's 3B+ CPU is OC at 1550 Mhz, Gpu and memory is also OC, but at 500 Mhz.
128 MB is being allocated for the GPU
When the game start, the cpu is being used at 100% and 300 Mb/512 Mb is used.
My PSU is 5V / 2.5A.
Had to install java 1.8.0_65 manually because it isn't installed on strech lite.
Desktop envirronment is Pixel.
Tried fake KMs drivers, same problem.
Any idea on how to fix it?

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

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?

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Tue Mar 12, 2019 5:38 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?
Don't have any left here, will have to buy one.

Is there is anyway that i can check logs?

Edit: will try doing the same as the topic you sent me in couple hours, i hope it will work.
I finished downloading strech w/ desktop.
And i will probably buy anothrr 32 GB sd card soon, just in case.
Last edited by Gess1t on Tue Mar 12, 2019 5:50 pm, edited 1 time in total.

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Tue Mar 12, 2019 1:09 pm

This might help, haven't tried it myself:

viewtopic.php?t=221131

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Tue Mar 12, 2019 6:57 pm

first, Thx you for redirecting me to this topic.
Glxgears don't have flickering colors anymore, and for minecraft, i have to run the command 2 times to make the game run, but it run smooth !!! :D

For other that have this problem with about the same setup as me, try deleting 99-fbturbo.conf
to do so:

Code: Select all

cd /usr/share/X11/xorg.conf.d/
then,

Code: Select all

sudo rm 99-fbturbo.conf
Will have to fix another problem about VNC now, but i'll do it on another thread, thx again.
BTW, i can't play fullscreen for 2 min without crashing.

EDIT: Well, that's a rip, minecraft won't start without crashing my pi now, probably because i left it on full screen, i don't see any config file in the minecraft folder, can i even find it?

EDIT2: Well apparently, it happen sometimes, it's working for now, for some reason, glxgears is running fine at 60 FPS, but minecraft run at 8 FPS sometimes, and other times, at around 40-45 FPS, i set a 60 FPS limit, just in case i hit 60 one day.
Most of the time, the game will also crash couple minutes after joining a world / server, or it will even make crash the whole pi (that last issue happen more frequently than other).

ZackDaTitan
Posts: 2
Joined: Tue Jul 03, 2018 4:09 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Thu Mar 14, 2019 2:26 pm

I've followed this tutorial exactly many times and copied the -cp... for my 1.13.2 Optifine and changed the run script accordingly but it keeps crashing from terminal w/ "Java.lang.UnsatisfiedLinkError: Failed to locate library: liblwjgl32.so" and I know the "32" library doesn't exist in this tutorial. Can someone please help me to get the latest Minecraft version running?

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Thu Mar 14, 2019 2:29 pm

Minecraft 1.13 and above will not work unless someone can help build the lwjgl3 library for the Pi:

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

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sat Mar 16, 2019 12:40 am

Hi, i'm back, because it's not working anymore !

i reinstalled all the packages, ect... running glxgears at 125 FPS on full KMS

got this when running the runOptifine sh file :

crash report : https://pastebin.com/D1JMy51M
Logs : https://pastebin.com/BFD007KE

Had couple of crash (Game and raspberry crash as described before) when playing the game + my config.txt content got deleted, fortunately, i had a backup.

MorfiuszCedula
Posts: 1
Joined: Sat Mar 16, 2019 11:46 am

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sun Mar 17, 2019 9:27 am

Great guide, thanks for that, Minecraft 1.12.2 works fine with acceptable performance on a RPI3 for the kids!
Tried to modify the run script for OptiFine 1.12.2 HD U E3 but got extremely slow fpss after modifying, suspect did something wrong.
Anybody has the script for OptiFine 1.12.2 HD U E3?

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

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 however i am extremely new to linux based Os and i am having a few issues.
Firstly the way i understand it i need to update to minecraft 1.12.2 to get forge to work? i followed these instructions
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

my new run.sh

Code: Select all

#!/bin/sh
#
# script to run minecraft on ARM linux.  for reference:
#
#   http://rogerallen.github.io/jetson/2014/07/31/minecraft-on-jetson-tk1/
#   https://devtalk.nvidia.com/default/topic/764821/embedded-systems/minecraft-on-the-jetson-tk1/
#   https://gist.github.com/rogerallen/91526c9c8be1a82881e0
#

# !!! YOU MUST PERSONALIZE ALL OF THIS INFO !!!
# your personal login/password.  chmod 700 to keep this private
MINECRAFT_LOGIN=123
MINECRAFT_USERNAME=123
MINECRAFT_PASSWORD=123
# where did you store the native liblwjgl.so and libopenal.so?
MINECRAFT_NATIVE_PATH=~/Minecraft/Natives
# info from initial run data in .minecraft/launcher_profiles.json
MINECRAFT_CLIENTTOKEN=b61fb8e9-97bf-435f-8354-1feaba0ce734
MINECRAFT_UUID=12345678-1234-1234-1234-123456789abc
MINECRAFT_VERSION=1.12


# SHOULD NOT NEED TO EDIT BELOW THIS LINE

# long list of paths from the minecraft logged commandline
CP=/home/pi/.minecraft/libraries/optifine/OptiFine/1.12.2_HD_U_E3/OptiFine-1.12.2_HD_U_E3.jar:/home/pi/.minecraft/libraries/net/minecraft/launchwrapper/1.12/launchwrapper-1.12.jar:/home/pi/.minecraft/libraries/com/mojang/patchy/1.1/patchy-1.1.jar:/home/pi/.minecraft/libraries/oshi-project/oshi-core/1.1/oshi-core-1.1.jar:/home/pi/.minecraft/libraries/net/java/dev/jna/jna/4.4.0/jna-4.4.0.jar:/home/pi/.minecraft/libraries/net/java/dev/jna/platform/3.4.0/platform-3.4.0.jar:/home/pi/.minecraft/libraries/com/ibm/icu/icu4j-core-mojang/51.2/icu4j-core-mojang-51.2.jar:/home/pi/.minecraft/libraries/net/sf/jopt-simple/jopt-simple/5.0.3/jopt-simple-5.0.3.jar:/home/pi/.minecraft/libraries/com/paulscode/codecjorbis/20101023/codecjorbis-20101023.jar:/home/pi/.minecraft/libraries/com/paulscode/codecwav/20101023/codecwav-20101023.jar:/home/pi/.minecraft/libraries/com/paulscode/libraryjavasound/20101123/libraryjavasound-20101123.jar:/home/pi/.minecraft/libraries/com/paulscode/librarylwjglopenal/20100824/librarylwjglopenal-20100824.jar:/home/pi/.minecraft/libraries/com/paulscode/soundsystem/20120107/soundsystem-20120107.jar:/home/pi/.minecraft/libraries/io/netty/netty-all/4.1.9.Final/netty-all-4.1.9.Final.jar:/home/pi/.minecraft/libraries/com/google/guava/guava/21.0/guava-21.0.jar:/home/pi/.minecraft/libraries/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar:/home/pi/.minecraft/libraries/commons-io/commons-io/2.5/commons-io-2.5.jar:/home/pi/.minecraft/libraries/commons-codec/commons-codec/1.10/commons-codec-1.10.jar:/home/pi/.minecraft/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar:/home/pi/.minecraft/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar:/home/pi/.minecraft/libraries/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar:/home/pi/.minecraft/libraries/com/mojang/authlib/1.5.25/authlib-1.5.25.jar:/home/pi/.minecraft/libraries/com/mojang/realms/1.10.22/realms-1.10.22.jar:/home/pi/.minecraft/libraries/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar:/home/pi/.minecraft/libraries/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar:/home/pi/.minecraft/libraries/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/home/pi/.minecraft/libraries/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar:/home/pi/.minecraft/libraries/it/unimi/dsi/fastutil/7.1.0/fastutil-7.1.0.jar:/home/pi/.minecraft/libraries/org/apache/logging/log4j/log4j-api/2.8.1/log4j-api-2.8.1.jar:/home/pi/.minecraft/libraries/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1.jar:/home/pi/.minecraft/libraries/org/lwjgl/lwjgl/lwjgl/2.9.4-nightly-20150209/lwjgl-2.9.4-nightly-20150209.jar:/home/pi/.minecraft/libraries/org/lwjgl/lwjgl/lwjgl_util/2.9.4-nightly-20150209/lwjgl_util-2.9.4-nightly-20150209.jar:/home/pi/.minecraft/libraries/com/mojang/text2speech/1.10.3/text2speech-1.10.3.jar:/home/pi/.minecraft/versions/1.12.2-OptiFine_HD_U_E3/1.12.2-OptiFine_HD_U_E3.jar
# thanks to xRoyx on the nvidia dev forums for this update.
# the authtoken changes daily, so we need to login to authenticate
MINECRAFT_ATOKEN="$(\
curl -i \
  -H "Accept:application/json" \
  -H "content-Type:application/json" \
  https://authserver.mojang.com/authenticate \
  -X POST \
  --data '{"agent": {"name": "Minecraft","version": 1}, "username": "'$MINECRAFT_LOGIN'", "password": "'$MINECRAFT_PASSWORD'",  "clientToken": "'$MINECRAFT_CLIENTTOKEN'" }' \
  | sed '/accessToken":"/!d;s//&\n/;s/.*\n//;:a;/",/bb;$!{n;ba};:b;s//\n&/;P;D' \
)"
# '

echo "todays access token = "$MINECRAFT_ATOKEN

MINECRAFT_UUID="$(\
curl -X POST -H 'Content-Type: application/json' https://api.mojang.com/profiles/minecraft --data '"'$MINECRAFT_USERNAME'"' \
| sed '/id":"/!d;s//&\n/;s/.*\n//;:a;/",/bb;$!{n;ba};:b;s//\n&/;P;D' \
)"

echo "MINECRAFT_UUID="$MINECRAFT_UUID

# run minecraft with all the right commandline options
/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java \
    -Xmn128M -Xmx1024M \
    -XX:+UseConcMarkSweepGC \
    -XX:+CMSIncrementalMode \
    -XX:-UseAdaptiveSizePolicy \
    -Djava.library.path=$MINECRAFT_NATIVE_PATH \
    -cp $CP \
  net.minecraft.launchwrapper.Launch \
    --username $MINECRAFT_USERNAME \
    --accessToken "$MINECRAFT_ATOKEN" \
    --uuid "$MINECRAFT_UUID" \
    --version $MINECRAFT_VERSION \
    --userProperties {} \
    --gameDir ~/.minecraft \
    --assetsDir ~/.minecraft/assets \
    --assetIndex $MINECRAFT_VERSION \
    --tweakClass $TWEAK_CLASS
Here's what happens when i run it

Code: Select all

pi@raspberrypi:~/Minecraft $ ./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    306     83  0:00:02  0:00:02 --:--:--   306
todays access token = c628680e6d6e46479b049b4d44699509
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    75  100    63  100    12    122     23 --:--:-- --:--:-- --:--:--   122
MINECRAFT_UUID=21db5fafd18c4cb3999276c413b58178
Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Exception in thread "main" joptsimple.OptionMissingRequiredArgumentException: Option tweakClass requires an argument
	at joptsimple.RequiredArgumentOptionSpec.detectOptionArgument(RequiredArgumentOptionSpec.java:48)
	at joptsimple.ArgumentAcceptingOptionSpec.handleOption(ArgumentAcceptingOptionSpec.java:257)
	at joptsimple.OptionParser.handleLongOptionToken(OptionParser.java:513)
	at joptsimple.OptionParserState$2.handleArgument(OptionParserState.java:56)
	at joptsimple.OptionParser.parse(OptionParser.java:396)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:50)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
and if/when i finally do get 1.12.2 this I'm not sure which forge download i need or how to install it once i get the right one i have tried the installer and universal but both just want to open like a .zip archive and i'm unsure what to do.

thanks in advanced for any help.

Return to “Gaming”