Skip to content

1MB minecraft.sh

Floris edited this page Dec 16, 2021 · 6 revisions

1MB-minecraft.sh

Information

The start shell script is made to help server owners run a Minecraft server with plugins.

We use this for our own (standalone) servers daily. We use the 'start' sh script to fork an instance to the background with screen. And we use the 'Minecraft' shell script to start an instance, without forking it.

You need both scripts to fork, you need just the minecraft .sh script to start things up.

So, how to use this?

I recommend to edit the .sh file and change some of the configuration settings. Mind you, this is made for our 1.18.1 builds, and hasn't been properly tested on other versions.

This is for Minecraft 1.18.1, Spigot / Buildtools. Not for Sponge, Forge, etc. This is made for our macOS / linux distros, it works for us. Your distro might be different (or a different version). We've tested the public version of this script on macOS High Sierra, Mojave, Catalina and Ubuntu 14/16/18/20 lts.

Put the start and minecraft .sh files into your spigot directory where the jar resides, with your terminal change to this directory. And if this is the first time you use it: chmod a+x 1MB-minecraft.sh (and chmod a+x 1MB-start.sh and then each time you wish to use this: ./1MB-minecraft.sh

Note: this will NOT fork an instance to the background (starts normally), if you wish to just start it with the option to fork, use just the start sh script.

If it errors, you probably need to edit the .sh script(s) properly.

Download?

You can view the source of the minecraft script here: 1MB-minecraft.sh You can view the source of the start script here: 1MB-start.sh

Support?

You can request basic support here: github.com/mrfdev/1MB/issues

What it checks for

This is a bash shell script, made for mainly my macOS solutions, but updated to work with Ubuntu, other operating systems .. eh, it's a gamble. If it doesn't work and you have a fix for a unified solution feel free to contribute.

The engines for the java edition of Minecraft require java, and this script will check what's installed on the os (or not) and either uses it or reports back it can't use it (and hopefully links to some info on how to install it for that os).

bash / java / if that all works, it can run the jvm per the configuration to start the minecraft server.

Clone this wiki locally