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

Preparation neoforge #282

Open
wants to merge 6 commits into
base: v3
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"name": "minecraft-curseforge-715572",
"name": "minecraft-curseforge-forge-715572",
"variables": {
"memory": "4096",
"ip": "0.0.0.0",
Expand All @@ -15,7 +15,7 @@
}
},
{
"name": "minecraft-curseforge-389615",
"name": "minecraft-curseforge-forge-389615",
"variables": {
"memory": "4096",
"ip": "0.0.0.0",
Expand All @@ -30,7 +30,7 @@
}
},
{
"name": "minecraft-curseforge-285109",
"name": "minecraft-curseforge-forge-285109",
"variables": {
"memory": "4096",
"ip": "0.0.0.0",
Expand All @@ -45,7 +45,7 @@
}
},
{
"name": "minecraft-curseforge-876781",
"name": "minecraft-curseforge-forge-876781",
"variables": {
"memory": "4096",
"ip": "0.0.0.0",
Expand All @@ -60,7 +60,7 @@
}
},
{
"name": "minecraft-curseforge-829758",
"name": "minecraft-curseforge-forge-829758",
"variables": {
"memory": "4096",
"ip": "0.0.0.0",
Expand All @@ -75,7 +75,7 @@
}
},
{
"name": "minecraft-curseforge-520914",
"name": "minecraft-curseforge-forge-520914",
"variables": {
"memory": "4096",
"ip": "0.0.0.0",
Expand All @@ -90,7 +90,7 @@
}
},
{
"name": "minecraft-curseforge-466901",
"name": "minecraft-curseforge-forge-466901",
"variables": {
"memory": "4096",
"ip": "0.0.0.0",
Expand All @@ -105,7 +105,7 @@
}
},
{
"name": "minecraft-curseforge-887839",
"name": "minecraft-curseforge-forge-887839",
"variables": {
"memory": "4096",
"ip": "0.0.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@
"projectId": {
"type": "integer",
"value": 0,
"display": "Project Id",
"display": "Project ID",
"desc": "Project Id for the modpack desired. This is found on the modpack's webpage on the right side.",
"required": true,
"userEdit": false
},
"fileId": {
"type": "integer",
"value": 0,
"display": "File Id",
"display": "File ID",
"desc": "File Id for the modpack desired. This is found at the end of the URL for the specific file desired.",
"required": true,
"userEdit": false
Expand Down
122 changes: 122 additions & 0 deletions minecraft-curseforge-neoforge/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
[
{
"name": "minecraft-curseforge-neoforge-379757",
"variables": {
"memory": "4096",
"ip": "0.0.0.0",
"port": "25565",
"eula": true,
"javaversion": "21",
"projectId": "379757",
"fileId": "0"
},
"environment": {
"type": "host"
}
},
{
"name": "minecraft-curseforge-neoforge-574291",
"variables": {
"memory": "4096",
"ip": "0.0.0.0",
"port": "25565",
"eula": true,
"javaversion": "17",
"projectId": "574291",
"fileId": "0"
},
"environment": {
"type": "host"
}
},
{
"name": "minecraft-curseforge-neoforge-493082",
"variables": {
"memory": "4096",
"ip": "0.0.0.0",
"port": "25565",
"eula": true,
"javaversion": "17",
"projectId": "493082",
"fileId": "0"
},
"environment": {
"type": "host"
}
},
{
"name": "minecraft-curseforge-neoforge-447596",
"variables": {
"memory": "4096",
"ip": "0.0.0.0",
"port": "25565",
"eula": true,
"javaversion": "21",
"projectId": "447596",
"fileId": "0"
},
"environment": {
"type": "host"
}
},
{
"name": "minecraft-curseforge-neoforge-491512",
"variables": {
"memory": "4096",
"ip": "0.0.0.0",
"port": "25565",
"eula": true,
"javaversion": "21",
"projectId": "491512",
"fileId": "0"
},
"environment": {
"type": "host"
}
},
{
"name": "minecraft-curseforge-neoforge-572641",
"variables": {
"memory": "4096",
"ip": "0.0.0.0",
"port": "25565",
"eula": true,
"javaversion": "21",
"projectId": "572641",
"fileId": "0"
},
"environment": {
"type": "host"
}
},
{
"name": "minecraft-curseforge-neoforge-309625",
"variables": {
"memory": "4096",
"ip": "0.0.0.0",
"port": "25565",
"eula": true,
"javaversion": "17",
"projectId": "309625",
"fileId": "5181988"
},
"environment": {
"type": "host"
}
},
{
"name": "minecraft-curseforge-neoforge-854426",
"variables": {
"memory": "4096",
"ip": "0.0.0.0",
"port": "25565",
"eula": true,
"javaversion": "17",
"projectId": "854426",
"fileId": "0"
},
"environment": {
"type": "host"
}
}
]
156 changes: 156 additions & 0 deletions minecraft-curseforge-neoforge/minecraft-curseforge-neoforge.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
{
"type": "minecraft-java",
"display": "Minecraft: Java Edition (Curseforge Modpack)",
"icon": "minecraft-java",
"data": {
"eula": {
"type": "boolean",
"value": false,
"display": "EULA Agreement (true/false)",
"desc": "Do you (or the server owner) agree to the <a href='https://account.mojang.com/documents/minecraft_eula'>Minecraft EULA?</a>",
"required": true,
"userEdit": true
},
"ip": {
"type": "string",
"value": "0.0.0.0",
"display": "IP",
"desc": "What IP to bind the server to",
"required": true,
"userEdit": false
},
"javaversion": {
"type": "string",
"value": "17",
"display": "Java Version",
"desc": "Version of Java to use",
"required": true,
"userEdit": true
},
"jvmArgs": {
"type": "string",
"value": "-Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true",
"display": "JVM Arguments",
"desc": "Extra JVM arguments to pass",
"required": false,
"userEdit": false
},
"memory": {
"type": "integer",
"value": 1024,
"display": "Memory (MB)",
"desc": "How much memory in MB to allocate to the Java Heap",
"required": true,
"userEdit": false
},
"port": {
"type": "integer",
"value": 25565,
"display": "Port",
"desc": "What port to bind the server to",
"required": true,
"userEdit": false
},
"projectId": {
"type": "integer",
"value": 0,
"display": "Project ID",
"desc": "Project ID for the modpack desired. This is found on the modpack's webpage on the right side.",
"required": true,
"userEdit": false
},
"fileId": {
"type": "integer",
"value": 0,
"display": "File ID",
"desc": "File ID for the modpack desired. This is found at the end of the URL for the specific file desired.",
"required": true,
"userEdit": false
}
},
"install": [
{
"if": "javaversion != ''",
"type": "javadl",
"version": "${javaversion}"
},
{
"if": "env == 'host'",
"type": "curseforge",
"projectId": "${projectId}",
"fileId": "${fileId}",
"java": "java${javaversion}"
},
{
"if": "env != 'host'",
"type": "curseforge",
"projectId": "${projectId}",
"fileId": "${fileId}"
},
{
"if": "!file_exists(\"server.properties\")",
"type": "writefile",
"text": "server-ip=${ip}\nserver-port=${port}\n",
"target": "server.properties"
},
{
"type": "writefile",
"text": "eula=${eula}",
"target": "eula.txt"
}
],
"run": {
"command": [
{
"command": "java${javaversion} -Xmx${memory}M ${jvmArgs} @libraries/net/neoforged/neoforge/${resolvedNeoForgeVersion}/win_args.txt nogui",
"if": "env == 'host' && os == 'windows' && !file_exists('server.jar')"
},
{
"command": "java${javaversion} -Xmx${memory}M ${jvmArgs} @libraries/net/neoforged/neoforge/${resolvedNeoForgeVersion}/unix_args.txt nogui",
"if": "env == 'host' && !file_exists('server.jar')"
},
{
"command": "java -Xmx${memory}M ${jvmArgs} @libraries/net/neoforged/neoforge/${resolvedNeoForgeVersion}/win_args.txt nogui",
"if": "env != 'host' && os == 'windows' && !file_exists('server.jar')"
},
{
"command": "java -Xmx${memory}M ${jvmArgs} @libraries/net/neoforged/neoforge/${resolvedNeoForgeVersion}/unix_args.txt nogui",
"if": "env == 'host' && !file_exists('server.jar')"
},
{
"command": "java${javaversion} -Xmx${memory}M ${jvmArgs} -jar server.jar nogui",
"if": "env == 'host'"
},
{
"command": "java -Xmx${memory}M ${jvmArgs} -jar server.jar nogui"
}
],
"pre": [
{
"if": "!file_exists('server.jar')",
"type": "resolveneoforgeversion",
"outputVariable": "resolvedNeoForgeVersion"
}
],
"stop": "stop",
"stdin": {
"type": "stdin"
},
"autostart": false,
"autorecover": false,
"autorestart": false
},
"environment": {
"type": "host"
},
"supportedEnvironments": [
{
"type": "host"
},
{
"type": "docker",
"image": "eclipse-temurin:${javaversion}"
}
],
"requirements": {}
}
16 changes: 16 additions & 0 deletions minecraft/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,22 @@
"type": "host"
}
},
{
"name": "minecraft-neoforge",
"variables": {
"memory": "2048",
"ip": "0.0.0.0",
"port": "25565",
"eula": true,
"version": "1.20.1",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be better to just use 1.20.4 or something. Neo even suggests Forge for 1.20.1 instead. And, the actual changes are in the .2 onward.

"motd": "None",
"javaversion": "17",
"modlauncher": "forge"
},
"environment": {
"type": "host"
}
},
{
"name": "minecraft-paper",
"variables": {
Expand Down
Loading