Minecraft server on Android (Termux)
to run Minecraft, we must first install Java version 17 from Termux repositories but considering that there is no Java Run Time in the Termux repositories, we should install Java Development Kit v17 (openjdk).
first, we update the repositories:
pkg update
and install openjdk-17:
pkg install openjdk-17
when the installation is complete, now we create a folder for minecraft. before that make sure you are in the $HOME path.
for that use this command :
cd
or
cd ~
make minecraft folder in termux :
mkdir minecraft
then go to the folder with :
cd minecraft
I used Fabric for my server because it is possible to install performance mods on it like Phosphor and Lithium and etc ...
download and run method mentione in the fabric site.
if your phone have low ram space just change -Xmx2G
to -Xmx1G
.
Connect to Minecraft server:
to connect to the Minecraft server, you must first find the IP address, which is different depending on the type of connection (USBcable, hotspot and etc ...).