Skip to content

Commit

Permalink
Update ftb to work with tester
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRalex committed Nov 17, 2023
1 parent dc22cd8 commit 9b364f4
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 5 deletions.
37 changes: 37 additions & 0 deletions minecraft-ftb/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[
{
"name": "minecraft-ftb",
"variables": {
"memory": "2048",
"ip": "0.0.0.0",
"port": "25565",
"eula": true,
"motd": "None",
"javaversion": "17",
"version": "1.19.2-43.2.21",
"modpack_id": "108",
"modpack_version": "6940"
},
"environment": {
"type": "host"
}
},
{
"name": "minecraft-ftb-docker",
"variables": {
"memory": "2048",
"ip": "0.0.0.0",
"port": "25565",
"eula": true,
"motd": "None",
"javaversion": "17",
"version": "1.19.2-43.2.21",
"modpack_id": "108",
"modpack_version": "6940"
},
"environment": {
"type": "docker",
"image": "eclipse-temurin:${javaversion}"
}
}
]
2 changes: 0 additions & 2 deletions minecraft-ftb/data.txt

This file was deleted.

39 changes: 36 additions & 3 deletions minecraft-ftb/minecraft-ftb.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,35 @@
"version": "${javaversion}"
},
{
"if": "os == 'windows'",
"type": "download",
"files": "https://api.modpacks.ch/public/modpack/${modpack_id}/${modpack_version}/server/linux"
"files": [
"https://api.modpacks.ch/public/modpack/${modpack_id}/${modpack_version}/server/windows"
]
},
{
"if": "os == 'linux' && arch == 'amd64'",
"type": "download",
"files": [
"https://api.modpacks.ch/public/modpack/${modpack_id}/${modpack_version}/server/linux"
]
},
{
"if": "os == 'linux' && arch == 'arm64'",
"type": "download",
"files": [
"https://api.modpacks.ch/public/modpack/${modpack_id}/${modpack_version}/server/arm/linux"
]
},
{
"if": "os == 'windows'",
"type": "command",
"commands": [
"./windows ${modpack_id} ${modpack_version} --auto --noscript"
]
},
{
"if": "os == 'linux'",
"type": "command",
"commands": [
"chmod u+x linux",
Expand Down Expand Up @@ -105,11 +130,19 @@
"command": [
{
"command": "java${javaversion} -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true @libraries/net/minecraftforge/forge/${version}/win_args.txt nogui",
"if": "os == 'windows' \u0026\u0026 file_exists('libraries/net/minecraftforge/forge/' + version + '/win_args.txt')"
"if": "env == 'host' && os == 'windows' && file_exists('libraries/net/minecraftforge/forge/' + version + '/win_args.txt')"
},
{
"command": "java${javaversion} -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true @libraries/net/minecraftforge/forge/${version}/unix_args.txt nogui",
"if": "file_exists('libraries/net/minecraftforge/forge/' + version + '/unix_args.txt')"
"if": "env == 'host' && file_exists('libraries/net/minecraftforge/forge/' + version + '/unix_args.txt')"
},
{
"command": "java -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true @libraries/net/minecraftforge/forge/${version}/win_args.txt nogui",
"if": "env != 'host' && os == 'windows' && file_exists('libraries/net/minecraftforge/forge/' + version + '/win_args.txt')"
},
{
"command": "java -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true @libraries/net/minecraftforge/forge/${version}/unix_args.txt nogui",
"if": "env != 'host' && file_exists('libraries/net/minecraftforge/forge/' + version + '/unix_args.txt')"
},
{
"command": "java${javaversion} -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true -jar server.jar",
Expand Down

0 comments on commit 9b364f4

Please sign in to comment.