8

In my never ending quest to try and get a Raspberry Pi to run the full PC version of Minecraft, I think I came across something that could help. I nearly have the program booting up on its own.

I'm using a tricked out version of LWJGL that disabled GL 1.3-1.4 support, and a project by Lunixbochs called GLShim, further forked by Ptitseb for use on the Open Pandora. He already has a proof of concept running on the Pandora, but when I tried to get it to run on Pi, Java crashes.

http://pastebin.com/ui4GneEK

Any ideas? As I am currently stuck on this.

goobering
  • 10,750
  • 4
  • 40
  • 64
moocow1452
  • 83
  • 1
  • 1
  • 6

3 Answers3

10

This was not possible at the time of the original question, but the full Java-based Minecraft can run on a Raspberry Pi 2 or higher today. With improvements to OpenGL on Raspbian over the years, LWJGL now just uses full OpenGL via the Mesa library.

Instructions with demo videos:

I can attest that the basic setup works out of the box on my Pi 3B+. You can get something up and running quickly even if the engine stutters and it renders at about 10 fps. From there, you can dramatically improve the experience via OptiFine, overclocking, or other tips that you'll find in those threads and related videos.

I'm sure the OP became well-aware of this along his neverending quest, but hopefully the answer helps others who stumble upon this question.

Note: The OP's idea of using a GL->GLES shim was on the right track at the time. gl4es can be used today to render Minecraft on boards such as the Pi Zero that do not support full OpenGL. However, for these niche cases the game remains unplayable due to the limited RAM.

jdonald
  • 2,972
  • 14
  • 39
3

From the log you pasted it seems that Pi's GPU doesn't know OpenGL. That's one of the reasons they've made a special version of the game.

EDIT: I tried to make LWJGL program an run it on pi. It failed. Pi's GPU definitely doesnt support LWJGL OpenGL implementation.

thekiwi5000
  • 651
  • 4
  • 14
1

Running Minecraft Java edition on a Pi does take a bit of work. It does require you to have a Minecraft account. The problem is that minecraft 1.12.2 is the latest version (currently) that can be run on a Pi. A Pi 2B or better is required to get decent fps. I have added forge and updated rpiMike's script (from raspberry pi forums) so that you can play Minecraft 1.12.2 + optifine or Minecraft 1.12.2 +forge (+ optifine). Optifine is recommended to be able to change more settings to get better FPS.

Tutorial: https://html.dynu.net/index.php/how-to-setup-minecraft-on-raspberry-pi-forge-version-1-12-2/