3arthqu4ke / headlessmc

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

Xvfb, if lwjgl patching is too hacky for you #144

Closed 3arthqu4ke closed 3 months ago

3arthqu4ke commented 7 months ago

https://www.x.org/releases/X11R7.6/doc/man/man1/Xvfb.1.xhtml Simply start headlessmc inside xvfb-run and you can run the game in headless mode without the -lwjgl flag.

3arthqu4ke commented 6 months ago

Actually can we provide support inside headlessmc for this? Instead of using a java executable command, use the xvfb-run executable and call java on it? Then we would also have to support other window systems, so for now no.