3arthqu4ke / headlessmc

Minecraft on the command line
https://3arthqu4ke.github.io/headlessmc/
MIT License
155 stars 18 forks source link

Fix parseVersion to make it compatible with Termux #121

Closed nedisy closed 9 months ago

nedisy commented 9 months ago

I don't know if it will break anything. But so far it works well on my Termux with openjdk-17 and opengl installed.

My setup:

  1. Install Termux
  2. Open Termux
  3. Run pkg upgrade, then apt-get upgrade
  4. Run pkg install openjdk-17, pkg install opengl
  5. Download Termux release to my phone and put it in a new folder named hmc
  6. Run termux-setup-storage
  7. Go to hmc directory, something like cd $HOME/storage/shared/hmc
  8. Run java -jar <hmc release name>.jar
  9. Install a Minecraft and it's fabric version download <version>, fabric <version>
  10. Launch fabric version: versions, launch <version name> -command -lwjgl
  11. quit
  12. Download HMC-Specific mod to the fabric version
  13. Put the mod in $HOME/.minecraft/mods using cp command
  14. Re-run and launch the fabric version
  15. connect <server address>
  16. Done