25 lines
879 B
Batchfile
25 lines
879 B
Batchfile
REM https://gitlab.com/UltraWelfare/mcrecipescrambler
|
|
|
|
cd .\mcrecipescrambler\
|
|
python .\scrambler.py .\out.zip
|
|
cd ..\loot_randomizer\
|
|
python randomize.py
|
|
cd ..
|
|
|
|
REM Wait for files to be generated (since it's writing asynchronously?)
|
|
timeout 1
|
|
|
|
REM make corresponding directory and unzip files into it, first loot tables, then recipes
|
|
mkdir .\build\%1\
|
|
"C:\Program Files\7-Zip\7z.exe" x loot_randomizer\random_loot.zip -o.\build\%1\ -r -y
|
|
"C:\Program Files\7-Zip\7z.exe" x mcrecipescrambler\out.zip -o.\build\%1\ -r -y
|
|
|
|
REM rename recipes to recipe, to support 1.21 format
|
|
move build\%1\data\minecraft\recipes build\%1\data\minecraft\recipe
|
|
|
|
REM now, zip everything up into a file, and delete remains
|
|
"C:\Program Files\7-Zip\7z.exe" a -tzip .\build\randomizer_%1.zip .\build\%1\*
|
|
rmdir /s /q .\build\%1\
|
|
del /q .\mcrecipescrambler\out.zip
|
|
del /q .\loot_randomizer\random_loot.zip
|