Skip to content

Commit

Permalink
Correct fabric template, update forge to ensure it uses docker correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRalex committed Nov 16, 2023
1 parent 7b3c039 commit cc8a375
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions minecraft/minecraft.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,6 @@
"java${javaversion} -jar fabric-installer.jar server -mcversion ${version} -downloadMinecraft -noprofile"
]
},
{
"if": "modlauncher == 'fabric'",
"type": "move",
"source": "fabric-server-launch.jar",
"target": "server.jar"
},
{
"if": "modlauncher == 'forge'",
"type": "forgedl",
Expand Down Expand Up @@ -333,12 +327,28 @@
"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": "modlauncher == 'forge' \u0026\u0026 os == 'windows' \u0026\u0026 file_exists('libraries/net/minecraftforge/forge/' + version + '/win_args.txt')"
"if": "env == 'host' && modlauncher == 'forge' && 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": "modlauncher == 'forge' \u0026\u0026 file_exists('libraries/net/minecraftforge/forge/' + version+ '/unix_args.txt')"
"if": "env == 'host' && modlauncher == 'forge' && 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' && modlauncher == 'forge' && 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' && modlauncher == 'forge' && 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 fabric-server-launch.jar",
"if": "env == 'host' && modlauncher == 'fabric'"
},
{
"command": "java -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true -jar server.jar",
"if": "env != 'host' && modlauncher == 'fabric'"
},
{
"command": "java${javaversion} -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true -jar server.jar",
"if": "env == 'host'"
Expand Down

0 comments on commit cc8a375

Please sign in to comment.