#!/bin/sh
mkdir -p config/txloader/forceload/thaumcraft/lang
curl -Lo config/txloader/forceload/thaumcraft/lang/uk_UA.lang https://github.com/GribanovIvan/tc4-ua/raw/master/assets/thaumcraft/lang/uk_UA.lang
cd scripts
curl -O https://mediafilez.forgecdn.net/files/4192/999/1.7.10-AetherLegacy-Aspects.zs
curl https://mediafilez.forgecdn.net/files/4205/755/1.7.10-ThaumcraftAspectsRetweaked.zs|sed '/\/\*/,/\*\//d'>1.7.10-ThaumcraftAspectsRetweaked_fixed.zs
curl -O https://mediafilez.forgecdn.net/files/2271/641/TwilightAspects.zs
curl https://mediafilez.forgecdn.net/files/2560/927/ChiselAspect.zs | grep -v bloodRune > ChiselAspect_withoutbloodRune.zs
curl -O https://mediafilez.forgecdn.net/files/2535/602/Legacy%20Scripts.zip
curl -O https://mediafilez.forgecdn.net/files/3598/583/ExtraTiC-patches-EnderIO-1.2.zs
unzip -o Legacy*Scripts.zip '8x Stairs - Applied Energistics 2 (1.7).zs' '8x Stairs - Biomes O'\'' Plenty (1.7).zs' '8x Stairs - Chisel (1.7).zs' '8x Stairs - Thaumcraft (1.7).zs' '8x Stairs - Vanilla (1.7).zs'
rm Legacy*Scripts.zip
#curl https://mediafilez.forgecdn.net/files/3598/340/ExtraTiC-patches-Thaumcraft-1.2.zs | grep -v mana >ExtraTiC-patches-Thaumcraft-1.2_withoutmana.zs
curl -O https://mediafilez.forgecdn.net/files/2313/159/IronChests%20%2B%20Extra%20Carts.zs
cd ..
curl -O https://legionfonts.com/storage/archives/Minecraft%201.1.zip
unzip Minecraft%201.1.zip
mkdir -p fontfiles
mv 'Minecraft 1.1.ttf' fontfiles
rm Minecraft%201.1.zip
cd config/txloader/forceload/potiklo/textures
magick bohdan.png -gravity west -chop 200x0 -gravity east -chop 240x0 bohdan_0.png
oxipng -o max bohdan_0.png || optipng -o7 bohdan_0.png || echo "Install oxipng and run init.sh again for better bohdan compression"
for f in {1..3};do ln -s bohdan_0.png bohdan_$f.png;done
ln -s bohdan_4.png bohdan_5.png
