diff --git a/README.md b/README.md index 3760ac4..ec23183 100644 --- a/README.md +++ b/README.md @@ -33,4 +33,6 @@ Y dejar la carpeta con el achivo asi: Tras eso, ejecutar el .bat en la carpeta de minecraft para instalar/actualizar los mods. Si salta algo de seguridad, darle a mas informacion y ejecutar igualmente. -Si el servidor da un error de que no se tienen los mismos mods, solo habria que hacer doble click y abrir el archivo updateMods.bat, eso los actualizara automaticamente. \ No newline at end of file +Si el servidor da un error de que no se tienen los mismos mods, solo habria que hacer doble click y abrir el archivo updateMods.bat, eso los actualizara automaticamente. + +## NOTA: NO ACTUALIZAR LOS MODS NUNCA DESDE MODRINTH \ No newline at end of file diff --git a/mods/Botania-1.20.1-451-FORGE.jar b/mods/Botania-1.20.1-451-FORGE.jar new file mode 100644 index 0000000..41f1926 Binary files /dev/null and b/mods/Botania-1.20.1-451-FORGE.jar differ diff --git a/mods/Patchouli-1.20.1-85-FORGE.jar b/mods/Patchouli-1.20.1-85-FORGE.jar new file mode 100644 index 0000000..3b72c0d Binary files /dev/null and b/mods/Patchouli-1.20.1-85-FORGE.jar differ diff --git a/mods/mechanicalbotania-1.0.2.jar b/mods/mechanicalbotania-1.0.2.jar new file mode 100644 index 0000000..091ff66 Binary files /dev/null and b/mods/mechanicalbotania-1.0.2.jar differ diff --git a/updateMods.sh b/updateMods.sh new file mode 100644 index 0000000..bdb7f53 --- /dev/null +++ b/updateMods.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +cd "$(dirname "$0")" || exit 1 +echo "Iniciando" +# Check if git is installed +if ! command -v git >/dev/null 2>&1; then + echo "Git no está instalado" + echo "Instálalo desde https://git-scm.com/downloads" + exit 1 +fi + +# If not already a git repo, initialize and fetch +if [ ! -d ".git" ]; then + echo "Git no esta inicializado" + git init + git remote add origin https://git.sfkao.net/SFKao/All-Of-Create.git + git fetch + git checkout -t origin/main -f +fi +echo "Bajando..." +# Fetch and pull updates +if ! git fetch --progress || ! git pull --rebase --autostash --progress; then + echo "Han habido errores actualizando, contactar con SFKao" + exit 1 +fi + +# Equivalent to pause (wait for user input before closing) +read -rp "Presiona Enter para salir..."