Fix the thing™️

pull/683/head
Alvarito050506 3 years ago
parent f9d229b644
commit fd79c7b1b3

@ -1,4 +1,4 @@
Game mods made by TheBrokenRail#5376 on Discord
Launcher made by Alvarito050506#8207 on Discord
Game mods and jMCPIL made by TheBrokenRail#5376 on Discord
gMCPIL made by Alvarito050506#8207 on Discord
Ported to pi-apps by TheBrokenRail#5376 on Discord with a little help from Botspot.
Ported to Pi-Apps by TheBrokenRail#5376 on Discord with a little help from Botspot.

@ -1,5 +1,5 @@
A modded version of Minecraft: Pi Edition with things like survival mode, multiplayer support and more!
A modded version of Minecraft: Pi Edition with things like survival mode, multiplayer support, and more!
To open the launcher: Menu > Games > MCPIL. Use the launcher to set up mods and multiplayer.
To open the launcher: Menu > Games > gMCPIL or jMCPIL, depending on which version you chose at install time. Use the launcher to set up mods and multiplayer.
Need help? Consider asking on MCPI Modded's Discord server instead: https://discord.gg/3wXu3xtr

@ -19,32 +19,31 @@ function error {
##
if [[ "$(lsb_release -cs)" != "buster" && "$(lsb_release -cs)" != "bullseye" && "$(lsb_release -cs)" != "sid" ]]; then
error "Unsupported RPi OS Version! Your RPi OS version is $(lsb_release -cs), but supported versions are Buster, Bullseye, or Sid. Consider searching how to upgrade your version to RPi OS Buster!"
error "Unsupported RPi OS Version! Your RPi OS version is $(lsb_release -cs), but supported versions are Buster, Bullseye, or Sid. Consider searching how to upgrade your version to RPi OS Buster!"
fi
# Remove Old Minecraft Pi
sudo apt-get remove -y minecraft-pi &>/dev/null || true
sudo apt-get remove -y mcpil-r &>/dev/null || true
sudo apt-get remove -y minecraft-pi-reborn-native &>/dev/null || true
sudo apt-get remove -y mcpil-r mcpil &>/dev/null || true
wget -qO- https://raw.githubusercontent.com/MCPI-Revival/mcpi-packages/master/install.sh || bash || error "Failed to install apt repo!"
wget -qO- https://raw.githubusercontent.com/MCPI-Revival/mcpi-packages/master/install.sh | bash &>/dev/null || error "Failed to install apt repo!"
# Choose MCPIL to use
PS3='Which launcher for MCPI Modded would you like to use? (Need help deciding? Ask here: https://discord.com/invite/aDqejQGMMy): '
options=("gMCPIL (more features) (recommended)" "jMCPIL (better looking UI) (requires ~100mb installation of JRE)" "Quit")
options=("gMCPIL (recommended)" "jMCPIL (better GUI)" "Quit")
select opt in "${options[@]}"
do
case $opt in
"gMCPIL (reccomended)")
"${DIRECTORY}/pkg-install" "gmcpil minecraft-pi-reborn-native" "$(dirname "$0")" || exit 1
break;;
"jMCPIL (better looking UI)")
"${DIRECTORY}/pkg-install" "jmcpil minecraft-pi-reborn-native" "$(dirname "$0")" || exit 1
break;;
"Quit")
break;;
*) echo "invalid option $REPLY";;
esac
case $opt in
"${options[0]}")
"${DIRECTORY}/pkg-install" "minecraft-pi-reborn-native gmcpil" "$(dirname "$0")" || exit 1
break;;
"${options[1]}")
"${DIRECTORY}/pkg-install" "minecraft-pi-reborn-native jmcpil" "$(dirname "$0")" || exit 1
break;;
"${options[2]}")
break;;
*) echo "Invalid option: $REPLY";;
esac
done
pip3 install mcpi

Loading…
Cancel
Save