docker-minecraft-server/scripts/start-setupVanillaTweaks

20 lines
465 B
Plaintext
Raw Normal View History

2022-01-04 03:59:19 +00:00
#!/bin/bash
set -e -o pipefail
: "${VANILLATWEAKS_FILE:=}"
: "${VANILLATWEAKS_SHARECODE:=}"
# shellcheck source=start-utils
. "${SCRIPTS:-/}start-utils"
if [[ ${VANILLATWEAKS_FILE} || ${VANILLATWEAKS_SHARECODE} ]]; then
mc-image-helper vanillatweaks \
--output-directory="/data" \
--world-subdir="${LEVEL:-world}" \
--share-codes="$VANILLATWEAKS_SHARECODE" \
--pack-files="$VANILLATWEAKS_FILE"
2022-01-04 03:59:19 +00:00
fi
exec "${SCRIPTS:-/}start-setupDatapack" "$@"