mirror of
https://github.com/parkervcp/eggs.git
synced 2026-06-12 09:03:35 +08:00
45 lines
4.0 KiB
JSON
45 lines
4.0 KiB
JSON
{
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
|
"meta": {
|
|
"version": "PTDL_v2",
|
|
"update_url": null
|
|
},
|
|
"exported_at": "2024-02-23T22:25:23+01:00",
|
|
"name": "NeoForge",
|
|
"author": "mail@invalidpanda.dev",
|
|
"description": "NeoForge is a new fork of Forge, supporting Minecraft version 1.20.1 and newer.",
|
|
"features": [
|
|
"eula"
|
|
],
|
|
"docker_images": {
|
|
"Java 17": "ghcr.io\/pterodactyl\/yolks:java_17"
|
|
},
|
|
"file_denylist": [],
|
|
"startup": "java -Xms128M -XX:MaxRAMPercentage=95.0 -Dterminal.jline=false -Dterminal.ansi=true $( [[ ! -f unix_args.txt ]] && printf %s \"-jar {{SERVER_JARFILE}}\" || printf %s \"@unix_args.txt\" )",
|
|
"config": {
|
|
"files": "{\r\n \"server.properties\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"server-ip\": \"0.0.0.0\",\r\n \"server-port\": \"{{server.build.default.port}}\",\r\n \"query.port\": \"{{server.build.default.port}}\"\r\n }\r\n }\r\n}",
|
|
"startup": "{\r\n \"done\": \")! For help, type \"\r\n}",
|
|
"logs": "{}",
|
|
"stop": "stop"
|
|
},
|
|
"scripts": {
|
|
"installation": {
|
|
"script": "#!\/bin\/bash\r\n#\r\n# NeoForge Installation script\r\n#\r\n# Files kindly mirrored by invalidpandaa\r\n# Inspired by orginal Forge install script by parkervcp (c)\r\n#\r\n# Server files: \/mnt\/server\r\napt update\r\napt install -y curl jq\r\nif [[ ! -d \/mnt\/server ]]; then\r\nmkdir \/mnt\/server\r\nfi\r\ncd \/mnt\/server\r\nDOWNLOAD_LINK=https:\/\/mirror.invalidpanda.dev\/neoforge\/${MC_VERSION}\/installer.jar\r\n# Download the installer\r\necho -e \"Downloading NeoForge installer with Minecraft version ${MC_VERSION} \\nDownload link is ${DOWNLOAD_LINK}\\n\"\r\nif curl --output \/dev\/null --silent --head --fail \"${DOWNLOAD_LINK}\"; then\r\ncurl -LO ${DOWNLOAD_LINK}\r\n# Check if file exists\r\nif [ -e \"installer.jar\" ]; then\r\necho -e \"Successfully downloaded installer.jar\"\r\nelse\r\necho -e \"Failed to download installer.jar. Exiting now! \\n\"\r\nexit 1\r\nfi\r\nelse\r\necho -e \"Couldn't reach the download server! If this error persists, please contact mail@invalidpanda.dev. \\n\"\r\nexit 1\r\nfi\r\nfunction unix_args {\r\necho -e \"Setting up Unix args...\"\r\nif [ \"$MC_VERSION\" = \"1.20.1\" ]; then\r\nln -sf libraries\/net\/neoforged\/forge\/*\/unix_args.txt unix_args.txt\r\nelse\r\nln -sf libraries\/net\/neoforged\/neoforge\/*\/unix_args.txt unix_args.txt\r\nfi\r\n}\r\n# Delete args to support downgrading\/upgrading\r\nrm -rf libraries\/net\/neoforged\/neoforge\r\nrm -rf libraries\/net\/neoforged\/forge # if on 1.20.1\r\nrm unix_args.txt\r\n# Installing NeoForge\r\necho -e \"Installing NeoForge server \\n\"\r\njava -jar installer.jar --installServer || { echo -e \"\\nFailed to install NeoForge server with Minecraft version ${MC_VERSION}! \\nMake sure to allocate enough memory and disk space.\"; exit 4; }\r\n# Check if we need a symlink for 1.17+ Forge JPMS args\r\nif [[ $MC_VERSION =~ ^1\\.(17|18|19|20|21|22|23) || $FORGE_VERSION =~ ^1\\.(17|18|19|20|21|22|23) ]]; then\r\nunix_args\r\nfi\r\necho -e \"Deleting installer.jar file.\\n\"\r\nrm -rf installer.jar\r\necho \"--------------------------------------------------------------------------------------\r\n\r\nInstallation complete!\r\n\r\nIf any issues occured during install, please contact mail@invalidpanda.dev.\r\n\r\n--------------------------------------------------------------------------------------\"",
|
|
"container": "openjdk:8-jdk-slim",
|
|
"entrypoint": "bash"
|
|
}
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "Minecraft Version",
|
|
"description": "The version of Minecraft you want to use. NeoForge supports 1.20.1+",
|
|
"env_variable": "MC_VERSION",
|
|
"default_value": "",
|
|
"user_viewable": true,
|
|
"user_editable": true,
|
|
"rules": "required|string|max:6",
|
|
"field_type": "text"
|
|
}
|
|
]
|
|
}
|