ok final pack update for server scripts

This commit is contained in:
ursamina
2024-02-27 03:12:17 +00:00
parent 1ffe6183b4
commit 233c84b755
2 changed files with 19 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
FORGE_VERSION=1.20.1-47.1.84
FORGE_VERSION="1.20.1-47.2.0"
# Ensure java is installed
if ! command -v java >/dev/null 2>&1; then
@@ -22,13 +22,15 @@ download() {
# Install (Neo)Forge
if [ ! -f forge-$FORGE_VERSION-installer.jar ]; then
download "https://maven.neoforged.net/releases/net/neoforged/forge/$FORGE_VERSION/forge-$FORGE_VERSION-installer.jar"
# download "https://maven.neoforged.net/releases/net/neoforged/forge/$FORGE_VERSION/forge-$FORGE_VERSION-installer.jar"
download "https://maven.minecraftforge.net/net/minecraftforge/forge/$FORGE_VERSION/forge-$FORGE_VERSION-installer.jar"
java -jar forge-$FORGE_VERSION-installer.jar --installServer
rm run.sh run.bat
fi
# FindMe does not allow distribution on curseforge
if [ ! -f mods/findme-3.2.1-forge.jar ]; then
if [ ! -f mods/findme-3.1.1-forge.jar ]; then
mkdir -p mods
download "https://mediafilez.forgecdn.net/files/5074/609/findme-3.2.1-forge.jar" -O mods/findme-3.2.1-forge.jar
fi
@@ -40,4 +42,4 @@ fi
java -jar packwiz-installer-bootstrap.jar -g -s server https://raw.githubusercontent.com/GregTechCEu/GregTech-Modern-Community-Pack/main/pack.toml
java @user_jvm_args.txt @libraries/net/neoforged/forge/$FORGE_VERSION/unix_args.txt nogui
java @user_jvm_args.txt @libraries/net/minecraftforge/forge/$FORGE_VERSION/unix_args.txt nogui