Add AOE modpack 1.0.4 for minecraft 1.10.2

This commit is contained in:
Michael G
2017-07-27 11:57:43 +02:00
parent ddcda2c3ed
commit b61f96fd88
3 changed files with 29 additions and 9 deletions

23
dl_mods.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
function getJsonVal() {
python -c "import json,sys;sys.stdout.write(json.dumps(json.load(sys.stdin)$1))";
}
IFS=';'
files=$(cat /build/aoe/manifest.json | getJsonVal "['files']")
files=${files//'}, {'/';'}
files=${files//'[{'/''}
files=${files//'}]'/''}
for addr in $files
do
echo $addr
p=$(echo '{'$addr'}' | getJsonVal "['projectID']")
f=$(echo '{'$addr'}' | getJsonVal "['fileID']")
if [ -n "$p" ]; then
wget https://minecraft.curseforge.com/projects/$p/files/$f/download -O /minecraft/mods/${p}_${f}.jar
fi
done