User avatar
xranby
Posts: 540
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Re: Minecraft on Raspberry Pi ? (yes I m crazy)

Mon Oct 08, 2012 8:37 pm

I have started a thread where i have added some information on how to port an OpenGL ES enabled version of the LWJGL library for the Raspberry Pi.
http://www.raspberrypi.org/phpBB3/viewt ... 63#p190363
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

User avatar
xranby
Posts: 540
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Re: Minecraft on Raspberry Pi ? (yes I m crazy)

Fri Jul 10, 2015 3:21 pm

If i told the internet that you can use this system image to run the full Minecraft unmodified using OpenGL 2 on a raspberry pi... internet may go nuts :)
:arrow: viewtopic.php?f=81&t=115350
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6229
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Minecraft on Raspberry Pi ? (yes I m crazy)

Fri Jul 10, 2015 3:54 pm

Necromancy!

But okay, how well does it run? Can you blow up a stack of TNT without unintended bad things happening?

User avatar
DougieLawson
Posts: 39169
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Minecraft on Raspberry Pi ? (yes I m crazy)

Fri Jul 10, 2015 5:11 pm

Full Minecraft doesn't run on a Raspberry Pi, it fails as soon as the Java Native Interface (JNI) code attempts to run, there's no ARM6 or ARM7 version of the JNI stuff that's available.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
xranby
Posts: 540
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Re: Minecraft on Raspberry Pi ? (yes I m crazy)

Fri Jul 10, 2015 6:38 pm

I have posted a video of minecraft running on the raspberry pi using Eric Anholts new free software Mesa3D OpenGL 2 VC4 driver:
http://labb.zafena.se/minecraft/vc4/vid ... 107447.mp4

Image

Dougie is right that you have to compile the native librarys in this case lwjgl yourself, but that part is easy and do not require that you alter any of mojang's minecraft.jar
the process how you compile lwjgl and run minecraft on arm is well described online:
http://rogerallen.github.io/jetson/2014 ... etson-tk1/

this ends the discussion if full minecraft can run at all on the raspberry pi. the answer is yes :)
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6229
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Minecraft on Raspberry Pi ? (yes I m crazy)

Fri Jul 10, 2015 6:46 pm

For a sufficiently liberal definition or 'run'

User avatar
Snoop05
Posts: 14
Joined: Mon Mar 30, 2015 8:45 pm

Re: Minecraft on Raspberry Pi ? (yes I m crazy)

Sun Aug 16, 2015 10:24 pm

xranby wrote:I have posted a video of minecraft running on the raspberry pi using Eric Anholts new free software Mesa3D OpenGL 2 VC4 driver:
http://labb.zafena.se/minecraft/vc4/vid ... 107447.mp4

Image

Dougie is right that you have to compile the native librarys in this case lwjgl yourself, but that part is easy and do not require that you alter any of mojang's minecraft.jar
the process how you compile lwjgl and run minecraft on arm is well described online:
http://rogerallen.github.io/jetson/2014 ... etson-tk1/

this ends the discussion if full minecraft can run at all on the raspberry pi. the answer is yes :)
Did you used OpenJDK or Oracle?
Raspberry Pi 3, Raspberry Pi 2
32GB Samsung EVO Class 10 UHS-I
Arch Linux ARM, LibreELEC, RuneAudio

User avatar
xranby
Posts: 540
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Re: Minecraft on Raspberry Pi ? (yes I m crazy)

Sun Aug 16, 2015 10:36 pm

Snoop05 wrote:
xranby wrote:I have posted a video of minecraft running on the raspberry pi using Eric Anholts new free software Mesa3D OpenGL 2 VC4 driver:
http://labb.zafena.se/minecraft/vc4/vid ... 107447.mp4

Image

Dougie is right that you have to compile the native librarys in this case lwjgl yourself, but that part is easy and do not require that you alter any of mojang's minecraft.jar
the process how you compile lwjgl and run minecraft on arm is well described online:
http://rogerallen.github.io/jetson/2014 ... etson-tk1/

this ends the discussion if full minecraft can run at all on the raspberry pi. the answer is yes :)
Did you used OpenJDK or Oracle?
I was using the Oracle JDK8 when i recorded this video.
I have managed to get slightly improved framerates up to ~6fps if you run the minecraft server on a different machine and connect to it using "multiplayer" compared to run the server inside the full client on the same pi using "singleplayer".

Some new patches to improve the performance of the mesa3d vc4 OpenGL driver has been merged since i did this initial test.
a complete list of the latest changes can be found here: http://cgit.freedesktop.org/mesa/mesa/l ... rivers/vc4

I would not be surprised if you would get better performance using one of the latest pre-compiled system image containing the mesa3d vc4 OpenGL 2 driver.
prebuilt system images using the new driver is found here: http://sukzessiv.net/~gohai/vc4-buildbot/build/

There is a list of "significant performance projects", work items, that may be implemented into to this new vc4 OpenGL 2 driver:
http://dri.freedesktop.org/wiki/VC4/
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

bullen
Posts: 363
Joined: Sun Apr 28, 2013 2:52 pm

Re: Minecraft on Raspberry Pi ? (yes I m crazy)

Tue Jun 07, 2016 8:27 pm

This looks much better:

https://www.youtube.com/watch?v=RlQG9GY3RiQ

How did he make LWJGL work on the pi? nm:

viewtopic.php?p=911808
https://github.com/tinspin/rupy - A tiny Java async HTTP application server.

Return to “General discussion”