2023-07-03 00:36:55 -04:00
|
|
|
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
|
|
|
|
|
2024-08-11 21:12:24 -04:00
|
|
|
REM rename recipes to recipe, to support 1.21 format
|
|
|
|
move build\%1\data\minecraft\recipes build\%1\data\minecraft\recipe
|
|
|
|
|
2023-07-03 00:36:55 -04:00
|
|
|
REM now, zip everything up into a file, and delete remains
|
2023-07-03 00:41:10 -04:00
|
|
|
"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
|