-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
47 lines (45 loc) · 1.28 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
echo "Welcome to the Minecraft Resources Installer!"
while true; do
echo
echo "Please select the type of resource to install:"
echo "1) Texture Pack"
echo "2) Mod"
echo "3) Data Pack"
echo "4) Exit"
read -p "Enter your choice: " choice
case $choice in
1)
read -p "Enter the download URL for the texture pack: " url
dest="$HOME/.minecraft/resourcepacks"
echo "Downloading Texture Pack..."
mkdir -p "$dest"
curl -o "$dest/texturepack.zip" "$url"
echo "Texture Pack installed successfully in $dest."
;;
2)
read -p "Enter the download URL for the mod: " url
dest="$HOME/.minecraft/mods"
echo "Downloading Mod..."
mkdir -p "$dest"
curl -o "$dest/mod.jar" "$url"
echo "Mod installed successfully in $dest."
;;
3)
read -p "Enter the download URL for the data pack: " url
read -p "Enter the name of your Minecraft world: " world
dest="$HOME/.minecraft/saves/$world/datapacks"
echo "Downloading Data Pack..."
mkdir -p "$dest"
curl -o "$dest/datapack.zip" "$url"
echo "Data Pack installed successfully in $dest."
;;
4)
echo "Exiting installer."
break
;;
*)
echo "Invalid choice. Please try again."
;;
esac
done