Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add template for latest neoforge #297

Open
wants to merge 3 commits into
base: v2.6
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions minecraft-neoforge/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## Neoforge
* This template is only for minecraft neoforge 1.21
79 changes: 79 additions & 0 deletions minecraft-neoforge/minecraft-neoforge-docker.json
Original file line number Diff line number Diff line change
@@ -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 <a href='https://account.mojang.com/documents/minecraft_eula'>Minecraft EULA?</a>",
"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"
}
}
85 changes: 85 additions & 0 deletions minecraft-neoforge/minecraft-neoforge.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"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"
}
}