Welcome to the PufferPanel community forums! If you need help please register an account and post in the Support category.

Minecraft Forge Template



  • Tested and Working.

    {
      "pufferd": {
        "type": "java",
        "display": "MinecraftForge - Minecraft",
        "install": {
          "commands": [
            {
              "type": "download",
              "files": "http://files.minecraftforge.net/maven/net/minecraftforge/forge/${version}/forge-${version}-installer.jar"
            },
            {
              "source": "forge-*.jar",
              "target": "installer.jar",
              "type": "move"
            },
            {
              "commands": [
                "java -jar 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"
            },
            {
              "source": "forge-*-universal.jar",
              "target": "server.jar",
              "type": "move"
            }
          ]
        },
        "run": {
          "stop": "stop",
          "pre": [],
          "post": [],
          "arguments": [
            "-Xmx${memory}M",
            "-jar",
            "server.jar"
          ],
          "program": "java"
        },
        "environment": {
          "type": "standard"
        },
        "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": "1.12.2-14.23.1.2555",
            "required": true,
            "desc": "Version of Forge to install (may be located <a href='http://files.minecraftforge.net/#Downloads'>here</a>",
            "display": "Version",
            "internal": false
          },
          "motd": {
            "value": "A Minecraft Server\\n\\u00A79 hosted on PufferPanel",
            "required": true,
            "desc": "This is the message that is displayed in the server list of the client, below the name. The MOTD does support <a href='https://minecraft.gamepedia.com/Formatting_codes' target='_blank'>color and formatting codes</a>.",
            "display": "MOTD message of the day",
            "internal": false
          }
        }
      }
    }
    


  • So, is the only difference here that you changed the default of a single field...?



  • @lordralex said in Minecraft Forge Template:

    So, is the only difference here that you changed the default of a single field...?

    Yep, xD and i changed the default value from Version to the latest (1.12.2-14.23.1.2555)


 

5
Online

851
Users

860
Topics

3.6k
Posts