Skip to main content

How to play Minecraft Java Edition on Android using Termux proot

分類 Smartphone Termux Tutorial
標籤 Raspberry Pi Minecraft Termux
Table of Contents

🇹🇼 中文版

Playing Minecraft Java Edition in Termux Proot on Android. No root required.

But why? We already have “Pojav Launcher”… because why not? The advantage is, with proot Linux, it is technically possbile to run any PC Minecraft clients, from MulticMC to HMCL, on Android and install any modpacks as your wish.

Currently everything is very experimental, the FPS of Minecraft is not good, the device will heat quickly and the shader will not working.

Before starting, you need mouses and keyboard for controlling players since Minecraft Java Edition does not support touching controls. Also, 6GB RAM phone is the minimumm requriement for running Minecraft Java Edition on Android.

1. Install Termux and Proot-distro
#

First install Termux from F-Droid

Second, setup Termux X11

Third, install a proot-distro, such as Debian

Fourth, enable GPU acceleration in Termux

2. Install Prism Minecraft Launcher
#

Prism Launcher is a third-party launcher for Minecraft, which is the fork of PolyMC (which is the fork of MultiMC). It can run multiple Minecraft instances so it will be easier to manage mods for different Minecraft versions.

Prism Launcher is avaiable in Pi-Apps. Pi-Apps is a helper script for installing apps on Raspberry Pi.

  1. Start virgl server. Log into Proot-distro. Start Termux X11. Start desktop environment.

  2. Install Pi-Apps in proot.

wget -qO- https://raw.githubusercontent.com/Botspot/pi-apps/master/install | bash
  1. Press Enter to continue.

  2. Install Prism Launcher

~/pi-apps/manage install 'Minecraft Java Prism Launcher'
  1. The script will install Prism Launcher and OpenJDK for you. However you may see “OpenJDK is not found”

  2. If OpenJDK is missing or downloading failed, install OpenJDK17 (for Minecraft 1.17+):

sudo apt install openjdk-17-jdk
  1. Check Java version: java -version

3. Launch Minecraft 1.19.3
#

For the detailed instrcution of setting up Prism Launcher, see official wiki.

  1. Launch Prism Launcher with the following parameters:
GALLIUM_DRIVER=virpipe MESA_GL_VERSION_OVERRIDE=4.0 prismlauncher
  1. Click Accounts at top-right. Log into your Microsoft account.

  2. Create a new instance for Minecraft 1.19.3. (Optionally) Install fabric and Sodium mod to improve graphics performance.

  3. Start the game. Go to Settings → Controls and turn off Mouse raw input.

  4. Press F3 in game to see if the virgl driver is in use.

4. Launch Minecraft versions older than 1.12.2
#

Older Minecraft versions (<= 1.12.2) require old openJDK versions.

  1. Go to Adoptium to download openJDK 8 binares for aarch64 Linux.

  2. After downloading, extract the archive and move it to system path:

tar -zxv OpenJDK8U-jdk_aarch64_linux_hotspot_8u352b08.tar.gz
sudo mv jdk8u352-b08 /usr/lib/jvm
  1. Launch Prism Launcher with the following parameters. Do not add MESA_GL_VERSION_OVERRIDE=4.0.
GALLIUM_DRIVER=virpipe prismlauncher
  1. Create a Minecraft 1.12.2 instance. (Optionally) Install Forge and Optifine for better performance.

  2. Right-click and edit the instance, set the Java 8 path:

  3. Launch the game. Press F3 to see if virgl driver is working.

5. Import and export game data
#

The game data of Prism Launcher is located at ~/.local/share/PrismLauncher/.

Termux proot-distro should have mounted the internal storage of the phone to /sdcard directory in proot. Thus you could transfer files from your phone to proot using file manager in Proot.

Related


此處提供二種留言板。點選按鈕,選擇您覺得方便的留言板。

(留言板載入中)這是Giscus留言板,需要Github帳號才能留言。支援Markdown語法,若要上傳圖片請善用外部圖床。您的留言會在Github Discussions向所有人公開。

Click here to edit your comments.

(留言板載入中)這是Disqus留言板,您可能會看到Disqus強制投放的廣告。為防止垃圾內容,有時留言可能會被系統判定需審核,導致延遲顯示,請見諒。若要上傳圖片請善用外部圖床網站。