Files
eggs/egg-gt-new-horizons.yaml
T
2026-09-25 21:25:05 +03:00

78 lines
2.1 KiB
YAML

meta:
version: PLCN_v3
update_url: null
name: 'GT New Horizons'
author: 'local'
uuid: 'd7d8b302-5dfc-4d7d-9ac2-5d78a7a3e7cc'
description: 'GT New Horizons 2.8.4 Java 17-25 server. Change Server Pack URL and reinstall to use a stable, beta, or release-candidate pack.'
tags:
- minecraft
- modded
- gtnh
features:
- eula
- java_version
- pid_limit
docker_images:
'Java 21': 'ghcr.io/pelican-eggs/yolks:java_21'
'Java 17': 'ghcr.io/pelican-eggs/yolks:java_17'
file_denylist: { }
startup_commands:
Default: 'java -Xms128M -XX:MaxRAMPercentage=95.0 -Dfml.readTimeout=180 @java9args.txt -jar lwjgl3ify-forgePatches.jar nogui'
config:
files:
server.properties:
parser: properties
find:
server-ip: '0.0.0.0'
server-port: '{{server.allocations.default.port}}'
query.port: '{{server.allocations.default.port}}'
startup:
done: 'Done ('
logs: { }
stop: stop
scripts:
installation:
script: |-
#!/bin/ash
set -eu
case "$SERVER_PACK_URL" in
http://*|https://*) ;;
*)
echo 'Server Pack URL must use HTTP or HTTPS.' >&2
exit 1
;;
esac
apk add --no-cache curl unzip
mkdir -p /mnt/server
cd /mnt/server
archive="$(mktemp)"
trap 'rm -f "$archive"' EXIT
echo "Downloading GT New Horizons server pack from: $SERVER_PACK_URL"
curl --fail --location --retry 3 --output "$archive" "$SERVER_PACK_URL"
echo 'Extracting GT New Horizons server pack...'
unzip -qo "$archive"
test -f java9args.txt
test -f lwjgl3ify-forgePatches.jar
echo 'Install complete.'
container: 'ghcr.io/pelican-eggs/installers:alpine'
entrypoint: ash
variables:
- name: 'Server Pack URL'
description: 'HTTP(S) URL for the Java 17-25 GT New Horizons server-pack ZIP. Change it, then reinstall to apply a stable, beta, or release-candidate pack.'
env_variable: SERVER_PACK_URL
default_value: 'https://downloads.gtnewhorizons.com/ServerPacks/GT_New_Horizons_2.8.4_Server_Java_17-25.zip'
user_viewable: true
user_editable: true
rules:
- required
- url
- 'max:2048'
sort: 1