Files
Pterodactyl-Eggs/Terraria/tModLoader/tModLoader.json
2022-08-03 15:54:36 -05:00

122 lines
6.4 KiB
JSON

{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2022-08-03T15:53:38-05:00",
"name": "tModLoader",
"author": "mindfang@taco.quest",
"description": "tModLoader (TML) is an open-source, community-driven, modification and expansion of the Terraria game that makes it possible to make and play mods. TML expands your Terraria adventures with new content to explore created by the Terraria community! TML allows players to create and play Terraria mods and is designed in such a way so that you can play alone or together with friends, with one mod or with multiple mods: choose to play however you like! It is however required that all your friends also install TML if you want to play together; vanilla users can't play with TML users.",
"features": null,
"docker_images": {
"gethec\/pterodactyl-yolks:steamcmd": "gethec\/pterodactyl-yolks:steamcmd"
},
"file_denylist": [],
"startup": ".\/startServer.sh",
"config": {
"files": "{}",
"startup": "{\r\n \"done\": \"Type 'help' for a list of commands\",\r\n \"userInteraction\": []\r\n}",
"logs": "{}",
"stop": "exit"
},
"scripts": {
"installation": {
"script": "#!\/bin\/bash\r\nHOME=\/mnt\/server\r\nRED='\\033[0;31m'\r\nGREEN='\\033[0;32m'\r\n\r\nDownloadItem () {\r\n if curl --output \/dev\/null --silent --head --fail $1; then\r\n echo -e \"Downloading file: $1\"\r\n curl -sSL $1 -O\r\n else\r\n echo -e \"Specified file does not exist: $1\"\r\n echo -e \"${RED}Make sure your tModLoader version is correct, and report this error if it persists\"\r\n exit 1\r\n fi\r\n}\r\n\r\nmkdir -p $HOME\r\ncd $HOME\r\n\r\necho -e \"Creating Steam subdirectories\"\r\nmkdir -p ${HOME}\/.steam\/{root,steam} && \\\r\n\r\necho -e \"Downloading tModLoader\"\r\nif [ -z \"$VERSION\" ] || [ \"$VERSION\" == \"latest\" ]; then\r\n DownloadItem \"https:\/\/github.com\/tModLoader\/tModLoader\/releases\/latest\/download\/tModLoader.zip\"\r\nelse\r\n DownloadItem \"https:\/\/github.com\/tModLoader\/tModLoader\/releases\/download\/${VERSION}\/tModLoader.zip\"\r\nfi\r\n\r\necho -e \"Unpacking tModLoader\"\r\nunzip -o tModLoader.zip\r\n\r\necho -e \"Downloading additional files\"\r\nDownloadItem \"https:\/\/raw.githubusercontent.com\/Gethec\/Pterodactyl-Eggs\/main\/Terraria\/tModLoader\/startServer.sh\"\r\nDownloadItem \"https:\/\/raw.githubusercontent.com\/Gethec\/Pterodactyl-Eggs\/main\/Terraria\/tModLoader\/.pteroignore\"\r\n\r\necho -e \"Creating content directories\"\r\nmkdir -p mods saves\/Worlds\r\n\r\necho -e \"Setting executables\"\r\nchmod +x startServer.sh\r\n\r\necho -e \"Cleaning up\"\r\nrm tModLoader.zip\r\n\r\necho -e \"${GREEN}Server installation complete!\"",
"container": "gethec\/pterodactyl-yolks:steamcmd-installer",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "tModloader Version",
"description": "The version of tModloader that is to be used. If this is changed, make sure to go to Settings > Reinstall Server to update.",
"env_variable": "VERSION",
"default_value": "latest",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "World Name",
"description": "The name for the world file.",
"env_variable": "WORLD_NAME",
"default_value": "world",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:26",
"field_type": "text"
},
{
"name": "Max Players",
"description": "The maximum number of players allowed on the server.",
"env_variable": "MAX_PLAYERS",
"default_value": "8",
"user_viewable": true,
"user_editable": false,
"rules": "required|numeric|between:1,255",
"field_type": "text"
},
{
"name": "World Size",
"description": "Defines the worlds size. 0 = Do not autogenerate, 1 = Small, 2 = Medium, 3 = Large.",
"env_variable": "WORLD_SIZE",
"default_value": "0",
"user_viewable": true,
"user_editable": true,
"rules": "required|numeric|between:0,3",
"field_type": "text"
},
{
"name": "Server Password",
"description": "Server password for users to connect to your server.",
"env_variable": "SERVER_PASSWORD",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:20",
"field_type": "text"
},
{
"name": "MOTD",
"description": "Message of the Day for the server.",
"env_variable": "MOTD",
"default_value": "Please don\u2019t cut the purple trees!",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:40",
"field_type": "text"
},
{
"name": "World Seed",
"description": "Set the world seed for autogeneration.",
"env_variable": "WORLD_SEED",
"default_value": "AwesomeSeed",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "NPC Stream",
"description": "Reduces enemy skipping but increases bandwidth usage. The lower the number the less skipping will happen, but more data is sent. 0 is off. Recommended between 2-6.",
"env_variable": "NPC_STREAM",
"default_value": "6",
"user_viewable": true,
"user_editable": false,
"rules": "required|numeric|between:0,255",
"field_type": "text"
},
{
"name": "Secure Server",
"description": "Adds additional cheat protection to the server.",
"env_variable": "SECURE_SERVER",
"default_value": "0",
"user_viewable": true,
"user_editable": true,
"rules": "required|boolean",
"field_type": "text"
}
]
}