From 012a4ddffc30ae3e0018a58dd05e58c70cf8bd65 Mon Sep 17 00:00:00 2001 From: BraveCake Date: Wed, 4 Sep 2024 22:11:45 +0300 Subject: [PATCH 1/3] Add template for neoforge --- minecraft-neoforge/README.md | 2 + .../minecraft-neoforge-docker.json | 79 +++++++++++++++++ minecraft-neoforge/minecraft-neoforge.json | 86 +++++++++++++++++++ 3 files changed, 167 insertions(+) create mode 100644 minecraft-neoforge/README.md create mode 100644 minecraft-neoforge/minecraft-neoforge-docker.json create mode 100644 minecraft-neoforge/minecraft-neoforge.json diff --git a/minecraft-neoforge/README.md b/minecraft-neoforge/README.md new file mode 100644 index 0000000..99575aa --- /dev/null +++ b/minecraft-neoforge/README.md @@ -0,0 +1,2 @@ +## Neoforge +* This template is only for minecraft neoforge 1.21 diff --git a/minecraft-neoforge/minecraft-neoforge-docker.json b/minecraft-neoforge/minecraft-neoforge-docker.json new file mode 100644 index 0000000..eb9f991 --- /dev/null +++ b/minecraft-neoforge/minecraft-neoforge-docker.json @@ -0,0 +1,79 @@ +{ +  "type": "minecraft-java", +  "display": "Neoforge 1.21+ - Minecraft (Docker)", +  "data": { +    "memory": { +      "value": "1024", +      "required": true, +      "desc": "How much memory in MB to allocate to the Java Heap", +      "display": "Memory (MB)", +      "internal": false, +      "type": "integer" +    }, +    "ip": { +      "value": "0.0.0.0", +      "required": true, +      "desc": "What IP to bind the server to", +      "display": "IP", +      "internal": false +    }, +    "port": { +      "value": "25565", +      "required": true, +      "desc": "What port to bind the server to", +      "display": "Port", +      "internal": false, +      "type": "integer" +    }, +    "eula": { +      "value": "false", +      "required": true, +      "desc": "Do you (or the server owner) agree to the Minecraft EULA?", +      "display": "EULA Agreement (true/false)", +      "internal": false, +      "type": "boolean" +    }, +    "version": { +      "value": "21.1.23", +      "required": true, +      "display": "Version", +      "internal": false +    }, +    "motd": { +      "value": "A Minecraft Server\\n\\u00A79 hosted on PufferPanel", +      "required": true, +      "display": "MOTD message of the day", +      "internal": false +    } +  }, +  "install": [ +    { +      "type": "download", +      "files": "https://maven.neoforged.net/releases/net/neoforged/neoforge/${version}/neoforge-${version}-installer.jar" +    }, +    { +      "commands": [ +        "java -jar neoforge-${version}-installer.jar --installServer" +      ], +      "type": "command" +    }, +    { +      "type": "writefile", +      "text": "server-ip=${ip}\nserver-port=${port}\nmotd=${motd}\n", +      "target": "server.properties" +    }, +    { +      "type": "writefile", +      "text": "eula=${eula}", +      "target": "eula.txt" +    } +  ], +  "run": { +    "command": "java -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true @libraries/net/neoforged/neoforge/${version}/unix_args.txt nogui", +    "stop": "stop" +  }, +  "environment": { +    "type": "docker", +    "image": "eclipse-temurin:21" +  } +} diff --git a/minecraft-neoforge/minecraft-neoforge.json b/minecraft-neoforge/minecraft-neoforge.json new file mode 100644 index 0000000..7fc7a38 --- /dev/null +++ b/minecraft-neoforge/minecraft-neoforge.json @@ -0,0 +1,86 @@ +{ + "type": "minecraft-java", + "display": "Neoforge 1.21+ - Minecraft", + "data": { + "memory": { + "value": "1024", + "required": true, + "display": "Memory (MB)", + "internal": false, + "type": "integer" + }, + "ip": { + "value": "0.0.0.0", + "required": true, + "display": "IP", + "internal": false + }, + "port": { + "value": "25565", + "required": true, + "display": "Port", + "internal": false, + "type": "integer" + }, + "eula": { + "value": "false", + "required": true, + "display": "EULA Agreement (true/false)", + "internal": false, + "type": "boolean" + }, + "version": { + "value": "21.1.23", + "required": true, + "display": "Version", + "internal": false + }, + "javaversion": { + "value": "21", + "required": true, + "display": "Java Version" + }, + "motd": { + "value": "A Minecraft Server\\n\\u00A79 hosted on PufferPanel", + "required": true, + "display": "MOTD message of the day", + "internal": false + } + }, + "install": [ + { + "type": "javadl", + "version": "${javaversion}" + }, + { + "type": "download", + "files": "https://maven.neoforged.net/releases/net/neoforged/neoforge/${version}/neoforge-${version}-installer.jar" + }, + { + "commands": [ + "java${javaversion} -jar neoforge-${version}-installer.jar --installServer" + ], + "type": "command" + }, + { + "type": "writefile", + "text": "server-ip=${ip}\nserver-port=${port}\nmotd=${motd}\n", + "target": "server.properties" + }, + { + "type": "writefile", + "text": "eula=${eula}", + "target": "eula.txt"   + + } + ], + "run": { + "command": "java${javaversion} -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true @libraries/net/neoforged/neoforge/${version}/unix_args.txt   + nogui", + "stop": "stop" + }, + "environment": { + "type": "standard" + } +} + From 83d4f05a2e765098735a0e75762a2a60e6d229e5 Mon Sep 17 00:00:00 2001 From: Ali Elsayed <60029669+BraveCake@users.noreply.github.com> Date: Wed, 4 Sep 2024 23:15:53 +0300 Subject: [PATCH 2/3] Update minecraft-neoforge-docker.json --- .../minecraft-neoforge-docker.json | 154 +++++++++--------- 1 file changed, 77 insertions(+), 77 deletions(-) diff --git a/minecraft-neoforge/minecraft-neoforge-docker.json b/minecraft-neoforge/minecraft-neoforge-docker.json index eb9f991..514e547 100644 --- a/minecraft-neoforge/minecraft-neoforge-docker.json +++ b/minecraft-neoforge/minecraft-neoforge-docker.json @@ -1,79 +1,79 @@ { -  "type": "minecraft-java", -  "display": "Neoforge 1.21+ - Minecraft (Docker)", -  "data": { -    "memory": { -      "value": "1024", -      "required": true, -      "desc": "How much memory in MB to allocate to the Java Heap", -      "display": "Memory (MB)", -      "internal": false, -      "type": "integer" -    }, -    "ip": { -      "value": "0.0.0.0", -      "required": true, -      "desc": "What IP to bind the server to", -      "display": "IP", -      "internal": false -    }, -    "port": { -      "value": "25565", -      "required": true, -      "desc": "What port to bind the server to", -      "display": "Port", -      "internal": false, -      "type": "integer" -    }, -    "eula": { -      "value": "false", -      "required": true, -      "desc": "Do you (or the server owner) agree to the Minecraft EULA?", -      "display": "EULA Agreement (true/false)", -      "internal": false, -      "type": "boolean" -    }, -    "version": { -      "value": "21.1.23", -      "required": true, -      "display": "Version", -      "internal": false -    }, -    "motd": { -      "value": "A Minecraft Server\\n\\u00A79 hosted on PufferPanel", -      "required": true, -      "display": "MOTD message of the day", -      "internal": false -    } -  }, -  "install": [ -    { -      "type": "download", -      "files": "https://maven.neoforged.net/releases/net/neoforged/neoforge/${version}/neoforge-${version}-installer.jar" -    }, -    { -      "commands": [ -        "java -jar neoforge-${version}-installer.jar --installServer" -      ], -      "type": "command" -    }, -    { -      "type": "writefile", -      "text": "server-ip=${ip}\nserver-port=${port}\nmotd=${motd}\n", -      "target": "server.properties" -    }, -    { -      "type": "writefile", -      "text": "eula=${eula}", -      "target": "eula.txt" -    } -  ], -  "run": { -    "command": "java -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true @libraries/net/neoforged/neoforge/${version}/unix_args.txt nogui", -    "stop": "stop" -  }, -  "environment": { -    "type": "docker", -    "image": "eclipse-temurin:21" -  } +"type": "minecraft-java", +"display": "Neoforge 1.21+ - Minecraft (Docker)", +"data": { +"memory": { +"value": "1024", +"required": true, +"desc": "How much memory in MB to allocate to the Java Heap", +"display": "Memory (MB)", +"internal": false, +"type": "integer" +}, +"ip": { +"value": "0.0.0.0", +"required": true, +"desc": "What IP to bind the server to", +"display": "IP", +"internal": false +}, +"port": { +"value": "25565", +"required": true, +"desc": "What port to bind the server to", +"display": "Port", +"internal": false, +"type": "integer" +}, +"eula": { +"value": "false", +"required": true, +"desc": "Do you (or the server owner) agree to the Minecraft EULA?", +"display": "EULA Agreement (true/false)", +"internal": false, +"type": "boolean" +}, +"version": { +"value": "21.1.23", +"required": true, +"display": "Version", +"internal": false +}, +"motd": { +"value": "A Minecraft Server\\n\\u00A79 hosted on PufferPanel", +"required": true, +"display": "MOTD message of the day", +"internal": false +} +}, +"install": [ + { +"type": "download", +"files": "https://maven.neoforged.net/releases/net/neoforged/neoforge/${version}/neoforge-${version}-installer.jar" +}, +{ + "commands": [ + "java -jar neoforge-${version}-installer.jar --installServer" +], +"type": "command" +}, +{ +"type": "writefile", +"text": "server-ip=${ip}\nserver-port=${port}\nmotd=${motd}\n", +"target": "server.properties" +}, +{ +"type": "writefile", +"text": "eula=${eula}", +"target": "eula.txt" +} +], +"run": { +"command": "java -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true @libraries/net/neoforged/neoforge/${version}/unix_args.txt nogui", +"stop": "stop" +}, +"environment": { +"type": "docker", +"image": "eclipse-temurin:21" +} } From 3ff5bd5cfdaa50c60f79e0026c87a4f59078860d Mon Sep 17 00:00:00 2001 From: Ali Elsayed <60029669+BraveCake@users.noreply.github.com> Date: Wed, 4 Sep 2024 23:16:25 +0300 Subject: [PATCH 3/3] Update minecraft-neoforge.json --- minecraft-neoforge/minecraft-neoforge.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/minecraft-neoforge/minecraft-neoforge.json b/minecraft-neoforge/minecraft-neoforge.json index 7fc7a38..05ab7f5 100644 --- a/minecraft-neoforge/minecraft-neoforge.json +++ b/minecraft-neoforge/minecraft-neoforge.json @@ -70,13 +70,12 @@ { "type": "writefile", "text": "eula=${eula}", - "target": "eula.txt"   + "target": "eula.txt" } ], "run": { - "command": "java${javaversion} -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true @libraries/net/neoforged/neoforge/${version}/unix_args.txt   - nogui", + "command": "java${javaversion} -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true @libraries/net/neoforged/neoforge/${version}/unix_args.txt nogui", "stop": "stop" }, "environment": {