@echo off
setlocal enabledelayedexpansion

REM Check if mods.txt exists
if not exist mods.txt (
    echo mods.txt not found!
    exit /b 1
)

REM Read mods.txt line by line
for /f "usebackq tokens=* delims=" %%A in ("mods.txt") do (
    set "line=%%A"
    if not "!line!"=="" (
        echo ADDING !line!
        packwiz mr add -y !line!
    )
)

endlocal
