#!/bin/sh # Copyright justjavac. All rights reserved. MIT license. # https://github.com/justjavac/deno_deploy_minecraft_bedrock # # curl -fsSL https://bedrock.deno.dev | sh # set -e if ! command -v unzip >/dev/null; then echo "Error: unzip is required to install Minecraft." 1>&2 exit 1 fi curl --fail --location --progress-bar --output bedrock-server-1.20.81.01.zip https://minecraft.azureedge.net/bin-linux/bedrock-server-1.20.81.01.zip unzip -d ./bedrock -o bedrock-server-1.20.81.01.zip chmod +x ./bedrock/bedrock_server # rm bedrock-server-1.20.81.01.zip echo "cd `pwd`/bedrock" > start.sh echo 'LD_LIBRARY_PATH=. ./bedrock_server' >> start.sh chmod +x ./start.sh echo "Minecraft was installed successfully." echo " Run './start.sh' to get started."