Tagsandroid apis arch linux art AWS backup bootstrap cloud command-line computercraft configuration cute cybernetics dead tree debian dovecot email finance git github gmail hacks hardware http jq linux lost purposes mailx minecraft phone piskell pixel art printer publishing rationality recipe self-improvement silly ssl system administration tls twitter website website update workshop
I’ve had a lot of trouble getting Minecraft Forge to run headless. They have a friendly installer option that I just can’t use in my situation, but one of the devs seems actively hostile around providing help to headless servers, so I didn’t bother asking forge for help. I thought I’d write up what I had to do to get things working. As a warning, it requires some local work; you can’t do everything headless with these directions.
I’m running Minecraft 1.6.4, with the latest version of forge for that, 184.108.40.2065.
- Locally, download and start the minecraft client for the correct version at least once. Not sure if you’ll need to ‘play online’ or not. If you have the current installer, you need to make a new profile with the correct minecraft version and play that.
- Copy ~/.minecraft/libraries to the headless machine.
- Download forge (the installer version, not the universal) from http://files.minecraftforge.net/. The non-adly version is the little star for non-interactive use.
1java -jar forge-1.6.4-220.127.116.115-installer.jar --installServer
- Delete the installer, you don’t need it any more.
- Install any mods you want to the ‘mods’ directory, edit server.properties, etc. Normal server setup.
- To execute the server, run the file indicated in the installer. In my case, I run
1java -jar minecraftforge-universal-1.6.4-18.104.22.1685-v164-pregradle.jar nogui
Alternatively, you can install the entire server locally and copy it over.