Initial commit
This commit is contained in:
parent
d844503d7b
commit
b0a06d472e
6 changed files with 45 additions and 0 deletions
22
load-script.sh
Normal file
22
load-script.sh
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
#/usr/bin/env bash
|
||||||
|
|
||||||
|
DIR=$(realpath $(dirname $0))
|
||||||
|
|
||||||
|
directory=$1
|
||||||
|
shift
|
||||||
|
script_name=$1
|
||||||
|
shift
|
||||||
|
|
||||||
|
if [[ "${script_name}x" != "x" ]]; then
|
||||||
|
script_file="${directory}/${script_name}.png"
|
||||||
|
else
|
||||||
|
script_file="${DIR}/templates/map_background.png"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Instantiate template
|
||||||
|
map_file="${DIR}/templates/texture-pack/assets/minecraft/textures/map/map_background.png"
|
||||||
|
rm ${map_file}
|
||||||
|
cp ${script_file} ${map_file}
|
||||||
|
# Package resource pack
|
||||||
|
rm ${SERVER_DIR}/botc-script-resource-pack.zip
|
||||||
|
zip -r ${SERVER_DIR}/botc-script-resource-pack.zip templates/texture-pack
|
13
startup.sh
Normal file
13
startup.sh
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# TODO Check venv, create if it doesn't exist
|
||||||
|
|
||||||
|
: "${ACTIVE_SCRIPT:=}"
|
||||||
|
|
||||||
|
SCRIPT_DIR="${SERVER_DIR}/scripts"
|
||||||
|
TOOL_SCRIPT_DIR="${SERVER_DIR}/.scripts"
|
||||||
|
|
||||||
|
"${TOOL_SCRIPT_DIR}"/load-script.sh "${SCRIPT_DIR}" "${ACTIVE_SCRIPT}"
|
||||||
|
|
||||||
|
# Taken directly from the CurseForge Generic egg. No touchy.
|
||||||
|
java $([[ -f user_jvm_args.txt ]] && printf %s "@user_jvm_args.txt") -Xms128M -Xmx{{SERVER_MEMORY}}M -Dterminal.jline=false -Dterminal.ansi=true $([[ ! -f unix_args.txt ]] && printf %s "-jar `cat .serverjar`" || printf %s "@unix_args.txt")
|
BIN
templates/map_background.png
Normal file
BIN
templates/map_background.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
10
templates/texture-pack/pack.mcmeta
Normal file
10
templates/texture-pack/pack.mcmeta
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"pack": {
|
||||||
|
"pack_format": 48,
|
||||||
|
"description": "",
|
||||||
|
"supported_formats": {
|
||||||
|
"min_inclusive": 30,
|
||||||
|
"max_inclusive": 99
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
templates/texture-pack/pack.png
Normal file
BIN
templates/texture-pack/pack.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 235 KiB |
Loading…
Reference in a new issue