Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ℹ️ [GUIDE]: Getting Minecraft Java on arm64 #213

Open
thenameisluk opened this issue May 31, 2024 · 2 comments
Open

ℹ️ [GUIDE]: Getting Minecraft Java on arm64 #213

thenameisluk opened this issue May 31, 2024 · 2 comments

Comments

@thenameisluk
Copy link
Collaborator

thenameisluk commented May 31, 2024

Version 1.16.5

Note. this only works (well) on devices with gpu support/drivers

  1. Compile install gl4es(only required for mali gpu's)
    git clone https://github.com/ptitSeb/gl4es.git
    cd gl4es
    mkdir build
    cd build
    cmake .. -DODROID=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
    make -j8
    sudo make install
    Note. U can also use /scripts/install-gl4es.sh provided with the image but it doesn't seam to work currently
    Sidenote. multiline codeblocks break number lists on github, so i used single line ones ^
  2. Export gl4es libGL.so
    export LD_LIBRARY_PATH=/usr/lib/gl4es/
  3. Install minecraft arm64
    Install arm64 JRE from apt or anywhere else. Personally hallo1 recommends using the dragonwell JDK 67 for a free 20% performance boost and 30% less memory usage.
    Install minecraft. You can use any launcher that supports ARM64 version of Minecraft. I am using HMCL 71 that is confirmed working.
  4. Install mods (optional)
    The vanilla Minecraft works but performance is very poor(~30fps unstable)
    Use the 1.16.5 version and install these mods:
  • fabric
  • fabric api 0.42.0
  • sodium 0.2.0
  • reese’s sodium options 1.4.7
    Note. these versions is confirmed working but you can use others as well.
    Important: Change some settings
    Launch your game and turn off the “Use compact vertex format” option in the video settings, or the game will crash when entering any world.
  1. Enjoy Minecraft!
    obraz
    Confirmed to work on chromebook lenovo 10e (debian trixie)
    Credits for this part : hallo1

Latest Version (1.20.6)

Note: this only work on devices with opengl 3.3+ support (so no mali gpu for now)

  1. Install Java 21
  • sudo apt install openjdk-21-jdk (assuming u r on debian trixie or sid)
    or
  • get dragonwell JDK 67
  1. Install launcher
    download and install .deb file from link on 4th line of this file
    similar to this one https://github.com/Pi-Apps-Coders/files/releases/download/large-files/GDLauncher-linux-arm64-1.1.30-setup.deb
    Note. why? in case there is a new version
    This version of launcher has special meta repo needed to work on arm
  2. Set the Java path inside launcher settings
    obraz
    put path to ur java 21 in java 17 section (if u used apt method it should be /usr/lib/jvm/java-21-openjdk-arm64/bin/java)
    Note. why? because newer versions of minecraft run on java 21
  3. Enjoy Minecraft!
    obraz
    Confirmed to work on chromebook lenovo IdeaPad Duet 5 (debian trixie)

Note. in theory we can use software renderer to run versions of mc on any system but the performance would be very poor

Sidenote. in theory it is possible to run minecraft bedrock edition on devices with gpu support/drivers (opengl 3.1 and even lower so yes mali) with this project but the comunity was unable to help me with that. So ig that's for me to figure out

PS. for the powerful gaming devices which chromebooks definitely are :3 have a fun time playing
~luk

edit:
update on minecraft bedrock edition
it requires ipv6 to be enabled which is currently disabled by default for images hexdump0815/linux-mainline-and-mali-generic-stable-kernel#13 (comment)
so if someone really wants to play it, it for now requires to build kelner from source and modify kelner cmdline to not disable ipv6
after that just use an appimage or apt repo

@thenameisluk thenameisluk changed the title ℹ️ [GUIDE]: Getting Minecraft Java ℹ️ [GUIDE]: Getting Minecraft Java on arm64 Jun 2, 2024
@linsyking
Copy link

Why using gl4es instead of using the default mesa gl library?

@thenameisluk
Copy link
Collaborator Author

thenameisluk commented Jul 14, 2024

@linsyking for adreno gpu's it's not required (and can be skipped) since these r very well supported
but for mali gpu's it won't work without gl4es

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants