Bash Script for Creating Sponge Servers

Hello all, I’ve been slowly putting Sponge Support in SubServers for a while now, but now I’d like to make it a build able option in SubCreator. SubCreator uses a shell script to download/patch server jars so they can be ran once finished.

So I’m asking for the steps this script would have to take to build a Sponge Server successfully.

https://docs.spongepowered.org/en/server/getting-started/installation.html

Have a look at the docs, there should be instructions on how to install it via CLI.
When installing SpongeForge you install Forge first, then drop SpongeForge into the /mods/ folder and finally run forge.

How can I get the latest version of Sponge & Forge for version strings like “1.8”
(This can be done via java if it is needed to be)

You can parse the maven metadata file
SpongeForge
http://files.minecraftforge.net/maven/org/spongepowered/spongeforge/maven-metadata.xml
MinecraftForge
http://files.minecraftforge.net/maven/net/minecraftforge/forge/maven-metadata.xml
Forge also provides a JSON file
http://files.minecraftforge.net/maven/net/minecraftforge/forge/json

1 Like

You might be interested in SpongeForges naming scheme too:

https://docs.spongepowered.org/en/server/getting-started/implementations/spongeforge.html
Using the recommended Forge build with SpongeForge (-> version matching) is highly recommended.

It works! I grabbed the latest Sponge version containing the version string (and matching forge version) and passed the version strings to the script :smile:

1 Like