Created
August 8, 2025 20:35
-
-
Save tizu69/d44d5f01436eb6d97d4e4bf3172e32ae to your computer and use it in GitHub Desktop.
Minimal Mod Sync script for Prism and local server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## --- CONFIG --- ## | |
PORT=33333 | |
JVM_FLAGS="-Xmx8G" | |
LOADER=fabric | |
GAME_VERSION=1.20.1 | |
LOADER_VERSION=0.17.2 | |
## --- --- ## | |
mkdir server | |
cd server | |
rm -rf mods | |
cp -r ../minecraft/mods ./mods | |
if [ "$LOADER" = "fabric" ]; then | |
curl -o server.jar https://meta.fabricmc.net/v2/versions/loader/$GAME_VERSION/$LOADER_VERSION/1.1.0/server/jar | |
java $JVM_FLAGS -jar server.jar nogui --port $PORT | |
else | |
echo "Unsupported server" | |
exit 1 | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment