headlessmc
v3.0.0-RC9
Published
A command line launcher for Minecraft: Java Edition, runs the game headless, handles mod loaders, mods and servers.
Maintainers
Readme
headlessmc.js
HeadlessMc is a command line launcher for Minecraft: Java Edition. It can run the Minecraft client in headless mode, e.g. on CI/CD runners, handles mod loaders, modpacks, mods, resourcepacks, shaderpacks and datapacks, and manages servers. This Javascript package allows you to install and run HeadlessMc through node.
npm install -g headlessmc
headlessmc login
headlessmc launch fabric 26.3Or:
npx headlessmc launch fabric 26.3 -lwjglnpm installs the native HeadlessMc executable for your platform as an optional dependency, no Java installation is
needed for HeadlessMc itself. On Linux x64 with musl libc (e.g. Alpine Linux) this is a fully static executable.
It also runs where the regular Linux executable cannot, with glibc older than 2.34 or without the glibc loader (e.g. NixOS),
but there npm does not install it automatically, headlessmc prints the command to install it.
