From 4ede54de79ab66e67e608a342e1b9f8000daef0d Mon Sep 17 00:00:00 2001 From: tmunsch Date: Tue, 10 Nov 2020 04:13:51 -0500 Subject: [PATCH 1/4] Egg for Fabric Minecraft Fabric is a modular modding toolchain targeting Minecraft 1.14 and above, including snapshots. --- minecraft/java/fabric/egg-fabric.json | 48 +++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 minecraft/java/fabric/egg-fabric.json diff --git a/minecraft/java/fabric/egg-fabric.json b/minecraft/java/fabric/egg-fabric.json new file mode 100644 index 00000000..29fe81a4 --- /dev/null +++ b/minecraft/java/fabric/egg-fabric.json @@ -0,0 +1,48 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v1" + }, + "exported_at": "2020-11-10T04:10:30-05:00", + "name": "Fabric", + "author": "accounts@bofanodes.io", + "description": "Fabric is a modular modding toolchain targeting Minecraft 1.14 and above, including snapshots.", + "features": [ + "eula" + ], + "image": "quay.io\/pterodactyl\/core:java", + "startup": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}", + "config": { + "files": "{\r\n \"server.properties\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"server-ip\": \"0.0.0.0\",\r\n \"enable-query\": \"true\",\r\n \"server-port\": \"{{server.build.default.port}}\"\r\n }\r\n }\r\n}", + "startup": "{\r\n \"done\": \")! For help, type \",\r\n \"userInteraction\": [\r\n \"Go to eula.txt for more info.\"\r\n ]\r\n}", + "logs": "{\r\n \"custom\": false,\r\n \"location\": \"logs\/latest.log\"\r\n}", + "stop": "stop" + }, + "scripts": { + "installation": { + "script": "#!\/bin\/bash\r\n# Fabric MC Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\r\napt install -y curl jq unzip dos2unix wget\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\nwget https:\/\/maven.fabricmc.net\/net\/fabricmc\/fabric-installer\/$FABRIC_VERSION\/fabric-installer-$FABRIC_VERSION.jar\r\njava -jar fabric-installer-$FABRIC_VERSION.jar server -downloadMinecraft\r\necho -e \"Install Complete\"", + "container": "openjdk:8-jdk-slim", + "entrypoint": "bash" + } + }, + "variables": [ + { + "name": "Server Jar File", + "description": "The name of the server jarfile to run the server with.", + "env_variable": "SERVER_JARFILE", + "default_value": "fabric-server-launch.jar", + "user_viewable": true, + "user_editable": true, + "rules": "required|regex:\/^([\\w\\d._-]+)(\\.jar)$\/" + }, + { + "name": "Fabric Version", + "description": "The version of Fabric to install.", + "env_variable": "FABRIC_VERSION", + "default_value": "0.6.1.51", + "user_viewable": true, + "user_editable": true, + "rules": "required|string|between:3,15" + } + ] +} From f8e27e11153759877fbc1c916716c9c43220d270 Mon Sep 17 00:00:00 2001 From: tmunsch Date: Tue, 10 Nov 2020 04:19:56 -0500 Subject: [PATCH 2/4] Create README.MD Readme for Fabric --- minecraft/java/fabric/README.MD | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 minecraft/java/fabric/README.MD diff --git a/minecraft/java/fabric/README.MD b/minecraft/java/fabric/README.MD new file mode 100644 index 00000000..745eced2 --- /dev/null +++ b/minecraft/java/fabric/README.MD @@ -0,0 +1,11 @@ +# Fabric + +Fabric is a lightweight, experimental modding toolchain for Minecraft. + +## Server Ports +The fabric server requires a single port for access (default 25565) but plugins may require extra ports to enabled for the server. + + +| Port | default | +|-------|---------| +| Game | 25565 | From be605edf4273c0443ece3bf9bd43107e28a8f340 Mon Sep 17 00:00:00 2001 From: tmunsch Date: Tue, 10 Nov 2020 04:23:32 -0500 Subject: [PATCH 3/4] Added Fabric MC added Fabric Egg --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8fcfa050..77ae2547 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,7 @@ If you are reading this it looks like you are looking to add an egg to your serv * [Java](/minecraft/java/) Servers for Java Minecraft * [Cuberite](/minecraft/java/cuberite/) + * [fabric](/minecraft/java/fabric) * [feather](/minecraft/feather/) * [Feed The Beast](/minecraft/java/ftb/) * [Forge](/minecraft/java/forge/) @@ -174,4 +175,4 @@ If you are reading this it looks like you are looking to add an egg to your serv [Xonotic](/xonotic/xonotic/) -[Cryofall](/cryofall/) \ No newline at end of file +[Cryofall](/cryofall/) From b1300b310bbb4c24ae95f53a2e01b4f24df54c72 Mon Sep 17 00:00:00 2001 From: tmunsch Date: Sun, 22 Nov 2020 00:11:37 -0500 Subject: [PATCH 4/4] Added latest version curl from parker Added Parker's genius one liner --- minecraft/java/fabric/egg-fabric.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/minecraft/java/fabric/egg-fabric.json b/minecraft/java/fabric/egg-fabric.json index 29fe81a4..22bf5fe7 100644 --- a/minecraft/java/fabric/egg-fabric.json +++ b/minecraft/java/fabric/egg-fabric.json @@ -20,8 +20,7 @@ }, "scripts": { "installation": { - "script": "#!\/bin\/bash\r\n# Fabric MC Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\r\napt install -y curl jq unzip dos2unix wget\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\nwget https:\/\/maven.fabricmc.net\/net\/fabricmc\/fabric-installer\/$FABRIC_VERSION\/fabric-installer-$FABRIC_VERSION.jar\r\njava -jar fabric-installer-$FABRIC_VERSION.jar server -downloadMinecraft\r\necho -e \"Install Complete\"", - "container": "openjdk:8-jdk-slim", + "script": "#!\/bin\/bash\r\n# Fabric MC Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\r\napt install -y curl jq unzip dos2unix wget\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\nif [ -z \"$FABRIC_VERSION\" ] || [ \"$FABRIC_VERSION\" == \"latest\" ]; then\r\nFABRIC_VERSION=$(curl https:\/\/maven.fabricmc.net\/net\/fabricmc\/fabric-installer\/ | grep -Po '(?<=href=\")[^\"]*' | sort -h | tail -1 | sed 's,\/,,g')\r\nwget https:\/\/maven.fabricmc.net\/net\/fabricmc\/fabric-installer\/$FABRIC_VERSION\/fabric-installer-$FABRIC_VERSION.jar\r\nelse\r\nwget https:\/\/maven.fabricmc.net\/net\/fabricmc\/fabric-installer\/$FABRIC_VERSION\/fabric-installer-$FABRIC_VERSION.jar\r\nfi\r\njava -jar fabric-installer-$FABRIC_VERSION.jar server -downloadMinecraft\r\necho -e \"Install Complete\"", "container": "openjdk:8-jdk-slim", "entrypoint": "bash" } },