泰
描述
挖掘、战斗、探索、建造!在这个充满动作的冒险游戏中,一切皆有可能。
201 浏览
22 下载
2026-07-01
更新于 43 分钟前
预设配置详情
泰拉瑞亚
支持“旅途终点”的原版泰拉瑞亚服务端预设。当前支持最高版本为1.4.0.2,但未来的补丁将需要对安装脚本进行更新。
最小内存警告
建议为服务器分配至少768 MB内存,因为首次启动生成世界时会使用约650 MB。
所需服务器端口
泰拉瑞亚只需要一个端口即可运行。默认端口为7777
| 端口 | 默认值 |
|---|---|
| 游戏 | 7777 |
插件可能需要向服务器添加端口
registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:debian
./TerrariaServer.bin.x86_64 -config serverconfig.txt
| 变量名 | 变量 | 描述 | 默认值 | 规则 | 可查看 | 可编辑 |
|---|---|---|---|---|---|---|
| 泰拉瑞亚版本 | TERRARIA_VERSION |
要使用的泰拉瑞亚版本。 您可以使用完整版本号或文件编号。(例如 1.3.5.3 或 1353) 在此处获取版本号 - https://terraria.wiki.gg/wiki/Server#Downloads | latest |
required|string|max:20
必填 字符串 最大 20
|
||
| 世界名称 | WORLD_NAME |
世界文件的名称。 | world |
required|string|max:20
必填 字符串 最大 20
|
||
| 最大玩家数 | MAX_PLAYERS |
服务器能容纳的最大玩家数量。 | 8 |
required|numeric|max:255
必填 数字 最大 255
|
||
| 世界大小 | WORLD_SIZE |
定义世界的尺寸。3种尺寸:1(小型)、2(中型)、3(大型)。 | 1 |
required|numeric|in:1,2,3
必填 数字 选项: 1,2,3
|
||
| 难度 | WORLD_DIFFICULTY |
世界难度 选项:0(普通),1(专家),2(大师),3(旅途) | 3 |
required|numeric|in:0,1,2,3
必填 数字 选项: 0,1,2,3
|
||
| MOTD | SERVER_MOTD |
服务器MOTD | Welcome! |
required|string|max:128
必填 字符串 最大 128
|
||
| 世界种子 | WORLD_SEED |
创建世界时使用的种子 | |
nullable|string|max:20
可选 字符串 最大 20
|
||
| 密码 | PASSWORD |
应该使用的密码。 | |
nullable|string
可选 字符串
|
||
| NPCStream | NPCSTREAM |
减少敌人跳跃但增加带宽使用。数值越低,跳跃现象越少,但发送的数据量越大。设为0则关闭。 | 0 |
required|int|between:0,60
必填 介于 0-60 之间
|
镜像
registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian
入口
bash
#!/bin/bash
# Vanilla Installation Script
#
# Server Files: /mnt/server
## install packages to get version and download links
apt update
apt install -y curl wget file unzip jq
DOWNLOAD_LINK=invalid
mkdir -p /mnt/server/
cd /mnt/server/
if [ "${TERRARIA_VERSION}" == "latest" ] || [ "${TERRARIA_VERSION}" == "" ] ; then
V=$(curl -sSL https://terraria.org/api/get/dedicated-servers-names | jq -r .[] | head -1)
DOWNLOAD_LINK="https://terraria.org/api/download/pc-dedicated-server/${V}"
else
CLEAN_VERSION=$(echo ${TERRARIA_VERSION} | sed 's/\.//g')
echo -e "Downloading terraria server files"
DOWNLOAD_LINK=$(curl -sSL https://terraria.wiki.gg/wiki/Server#Downloads | grep '>Terraria Server ' | grep -Eoi '<a [^>]+>' | grep -Eo 'href=\"[^\\\"]+\"' | grep -Eo '(http|https):\/\/[^\"]+' | grep "${CLEAN_VERSION}" | cut -d'?' -f1)
fi
## this is a simple script to validate a download url actaully exists
echo ${DOWNLOAD_LINK}
if [ ! -z "${DOWNLOAD_LINK}" ]; then
if curl --output /dev/null --silent --head --fail ${DOWNLOAD_LINK}; then
echo -e "link is valid."
else
echo -e "link is invalid closing out"
exit 2
fi
fi
CLEAN_VERSION=$(echo ${DOWNLOAD_LINK##*/} | cut -d'-' -f3 | cut -d'.' -f1)
echo -e "running 'curl -sSL ${DOWNLOAD_LINK} -o ${DOWNLOAD_LINK##*/}'"
curl -sSL ${DOWNLOAD_LINK} -o ${DOWNLOAD_LINK##*/}
echo -e "Unpacking server files"
unzip ${DOWNLOAD_LINK##*/}
echo -e ""
cp -R ${CLEAN_VERSION}/Linux/* ./
chmod +x TerrariaServer.bin.x86_64
echo -e "Cleaning up extra files."
rm -rf ${CLEAN_VERSION}
echo -e "Generating config file"
cat <<EOF > serverconfig.txt
worldpath=/home/container/saves/Worlds
worldname=default
world=/home/container/saves/Worlds/default.wld
difficulty=3
autocreate=1
port=7777
maxplayers=8
EOF
mkdir -p /mnt/server/saves/Worlds
echo -e "Install complete"
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
"meta": {
"update_url": "https://eggs.pterodactyl.top/eggs/252/download/egg-terraria-vanilla.json",
"version": "PTDL_v2"
},
"exported_at": "2024-06-01T00:17:13+00:00",
"name": "Terraria Vanilla",
"author": "iamkubi@gmail.com",
"description": "挖掘、战斗、探索、建造!在这个充满动作的冒险游戏中,一切皆有可能。",
"features": null,
"docker_images": {
"Debian": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:debian"
},
"file_denylist": [],
"startup": "./TerrariaServer.bin.x86_64 -config serverconfig.txt",
"config": {
"files": "{\r\n \"serverconfig.txt\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"worldpath\": \"/home/container/saves/Worlds\",\r\n \"worldname\": \"{{server.build.env.WORLD_NAME}}\",\r\n \"world\": \"/home/container/saves/Worlds/{{server.build.env.WORLD_NAME}}.wld\",\r\n \"difficulty\": \"{{server.build.env.WORLD_DIFFICULTY}}\",\r\n \"autocreate\": \"{{server.build.env.WORLD_SIZE}}\",\r\n \"port\": \"{{server.build.default.port}}\",\r\n \"maxplayers\": \"{{server.build.env.MAX_PLAYERS}}\",\r\n \"motd\": \"{{server.build.env.SERVER_MOTD}}\",\r\n \"seed\": \"{{server.build.env.WORLD_SEED}}\",\r\n \"password\": \"{{server.build.env.PASSWORD}}\",\r\n \"npcstream\": \"{{server.build.env.NPCSTREAM}}\"\r\n }\r\n }\r\n}",
"logs": "{}",
"startup": "{\r\n \"done\": \"Type 'help' for a list of commands\"\r\n}",
"stop": "exit"
},
"scripts": {
"installation": {
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
"entrypoint": "bash",
"script": "#!/bin/bash\r\n# Vanilla Installation Script\r\n#\r\n# Server Files: /mnt/server\r\n## install packages to get version and download links\r\napt update\r\napt install -y curl wget file unzip jq\r\n\r\nDOWNLOAD_LINK=invalid\r\n\r\nmkdir -p /mnt/server/\r\ncd /mnt/server/\r\n\r\nif [ \"${TERRARIA_VERSION}\" == \"latest\" ] || [ \"${TERRARIA_VERSION}\" == \"\" ] ; then\r\n V=$(curl -sSL https://terraria.org/api/get/dedicated-servers-names | jq -r .[] | head -1)\r\n DOWNLOAD_LINK=\"https://terraria.org/api/download/pc-dedicated-server/${V}\"\r\nelse\r\n CLEAN_VERSION=$(echo ${TERRARIA_VERSION} | sed 's/\\.//g')\r\n echo -e \"Downloading terraria server files\"\r\n DOWNLOAD_LINK=$(curl -sSL https://terraria.wiki.gg/wiki/Server#Downloads | grep '>Terraria Server ' | grep -Eoi '<a [^>]+>' | grep -Eo 'href=\\\"[^\\\\\\\"]+\\\"' | grep -Eo '(http|https):\\/\\/[^\\\"]+' | grep \"${CLEAN_VERSION}\" | cut -d'?' -f1)\r\nfi \r\n\r\n## this is a simple script to validate a download url actaully exists\r\necho ${DOWNLOAD_LINK}\r\n\r\nif [ ! -z \"${DOWNLOAD_LINK}\" ]; then \r\n if curl --output /dev/null --silent --head --fail ${DOWNLOAD_LINK}; then\r\n echo -e \"link is valid.\"\r\n else \r\n echo -e \"link is invalid closing out\"\r\n exit 2\r\n fi\r\nfi\r\n\r\nCLEAN_VERSION=$(echo ${DOWNLOAD_LINK##*/} | cut -d'-' -f3 | cut -d'.' -f1)\r\n\r\n\r\necho -e \"running 'curl -sSL ${DOWNLOAD_LINK} -o ${DOWNLOAD_LINK##*/}'\" \r\ncurl -sSL ${DOWNLOAD_LINK} -o ${DOWNLOAD_LINK##*/}\r\n\r\necho -e \"Unpacking server files\"\r\nunzip ${DOWNLOAD_LINK##*/}\r\n\r\necho -e \"\"\r\ncp -R ${CLEAN_VERSION}/Linux/* ./\r\nchmod +x TerrariaServer.bin.x86_64\r\n\r\necho -e \"Cleaning up extra files.\"\r\nrm -rf ${CLEAN_VERSION}\r\n\r\necho -e \"Generating config file\"\r\ncat <<EOF > serverconfig.txt\r\nworldpath=/home/container/saves/Worlds\r\nworldname=default\r\nworld=/home/container/saves/Worlds/default.wld\r\ndifficulty=3\r\nautocreate=1\r\nport=7777\r\nmaxplayers=8\r\nEOF\r\n\r\nmkdir -p /mnt/server/saves/Worlds\r\n\r\necho -e \"Install complete\""
}
},
"variables": [
{
"name": "泰拉瑞亚版本",
"description": "要使用的泰拉瑞亚版本。\n\n您可以使用完整版本号或文件编号。(例如 1.3.5.3 或 1353)\n\n在此处获取版本号 - https://terraria.wiki.gg/wiki/Server#Downloads",
"env_variable": "TERRARIA_VERSION",
"default_value": "latest",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "世界名称",
"description": "世界文件的名称。",
"env_variable": "WORLD_NAME",
"default_value": "world",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "最大玩家数",
"description": "服务器能容纳的最大玩家数量。",
"env_variable": "MAX_PLAYERS",
"default_value": "8",
"user_viewable": true,
"user_editable": true,
"rules": "required|numeric|max:255",
"field_type": "text"
},
{
"name": "世界大小",
"description": "定义世界的尺寸。3种尺寸:1(小型)、2(中型)、3(大型)。",
"env_variable": "WORLD_SIZE",
"default_value": "1",
"user_viewable": true,
"user_editable": true,
"rules": "required|numeric|in:1,2,3",
"field_type": "text"
},
{
"name": "难度",
"description": "世界难度\n\n选项:0(普通),1(专家),2(大师),3(旅途)",
"env_variable": "WORLD_DIFFICULTY",
"default_value": "3",
"user_viewable": true,
"user_editable": true,
"rules": "required|numeric|in:0,1,2,3",
"field_type": "text"
},
{
"name": "MOTD",
"description": "服务器MOTD",
"env_variable": "SERVER_MOTD",
"default_value": "Welcome!",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:128",
"field_type": "text"
},
{
"name": "世界种子",
"description": "创建世界时使用的种子",
"env_variable": "WORLD_SEED",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:20",
"field_type": "text"
},
{
"name": "密码",
"description": "应该使用的密码。",
"env_variable": "PASSWORD",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string",
"field_type": "text"
},
{
"name": "NPCStream",
"description": "减少敌人跳跃但增加带宽使用。数值越低,跳跃现象越少,但发送的数据量越大。设为0则关闭。",
"env_variable": "NPCSTREAM",
"default_value": "0",
"user_viewable": true,
"user_editable": true,
"rules": "required|int|between:0,60",
"field_type": "text"
}
]
}附属文件
暂无附属文件
Fork 关系
查看关系图暂无 Fork,成为第一个 Fork 的人吧!
统计
201
浏览
22
下载
0
星标
0
复刻
作者
飒
飒爽师叔
UID: 1
279 预设
·
2026-06