forked from Anvilcraft/Notex-3
Init
This commit is contained in:
commit
657a6860e0
3 changed files with 1972 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
.mpt
|
||||
build
|
43
mpt
Normal file
43
mpt
Normal file
|
@ -0,0 +1,43 @@
|
|||
#!/bin/sh
|
||||
cd "$(dirname "$0")" || exit
|
||||
case $1 in
|
||||
install)
|
||||
if ! [ -d "$HOME/.mpt" ];
|
||||
then mkdir $HOME/.mpt
|
||||
fi
|
||||
if ! [ -f "$HOME/.mpt/mpt.jar" ];
|
||||
then
|
||||
dl=$(curl https://data.tilera.xyz/api/mpt.php/latest)
|
||||
echo Downloading $dl ...
|
||||
curl $dl --output $HOME/.mpt/mpt.jar
|
||||
fi
|
||||
;;
|
||||
update)
|
||||
dl=$(curl https://data.tilera.xyz/api/mpt.php/latest)
|
||||
echo Downloading $dl ...
|
||||
if [ -f ".mpt/mpt.jar" ]
|
||||
then
|
||||
curl $dl --output .mpt/mpt.jar
|
||||
else
|
||||
curl $dl --output $HOME/.mpt/mpt.jar
|
||||
fi
|
||||
echo Updating Script
|
||||
curl https://data.tilera.xyz/api/mpt.php/script > mpt
|
||||
;;
|
||||
*)
|
||||
if ! [ -d ".mpt" ];
|
||||
then mkdir .mpt
|
||||
fi
|
||||
if [ -f ".mpt/mpt.jar" ];
|
||||
then jar=.mpt/mpt.jar
|
||||
elif [ -f "$HOME.mpt/mpt.jar" ];
|
||||
then jar=$HOME.mpt/mpt.jar
|
||||
else
|
||||
dl=$(curl https://data.tilera.xyz/api/mpt.php/latest)
|
||||
echo Downloading $dl ...
|
||||
curl $dl --output .mpt/mpt.jar
|
||||
jar=.mpt/mpt.jar
|
||||
fi
|
||||
java -jar $jar $*
|
||||
;;
|
||||
esac
|
1927
src/modpack.json
Normal file
1927
src/modpack.json
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue