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

Minecraft Neoforged template (sucessor to Forge) #295

Open
wants to merge 2 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
15 changes: 15 additions & 0 deletions minecraft-neoforged/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Template for a Minecraft Server with [NeoForged](https://neoforged.net/) installed
Template written by [Spusuf](https://github.com/spusuf
Compatible with 1.20.2 to latest (1.21.0)
Tested on Linux baremetal and using pufferpanel installed in docker, but nothing should prevent running on other platforms.
Versions older than are available on the current archive (older than 1.20.2) are hosted in a seperate location and are not compatible unless you manually download and run the installer (not recommended), anything from 1.20.2 onwards works flawlessly with no inverention needed.

# Steps
1. Download and create server using the template, give the server a name.
2. In the options tab of the server creation read and check the EULA agreement (or in the settings tab if you ignored and already created the server). No I cannot do that for you.
3. Set java version based on what is on your server (or use the default 17 to use pufferpanel's default)
4. Set Dedicated RAM amount (Default 1024 is 1 GB, 4096 (4 GB) should be fine for 4 simulatenous players and reasonable view distance (< 16), otherwise 8192 (8 GB) for higher view distance or heavier mods. Minecraft does not effectively utilise more than this, but SPECIFIC mods might)
5. Set a port. Match this to your port forward for domestic servers, or SRV record for a server behind a DNS.
6. Set neo(forged) version. This will also dictate your minecraft server's version, so choose correctly.
7. Click crete, then when the server is created click install. A wall of text should indicate downloading, if there is only a few lines you've done something wrong (probably neo version). The server will start automatically.
8. Connect and have fun. Raise an issue on github if the script stops working.
106 changes: 106 additions & 0 deletions minecraft-neoforged/minecraft-neoforged.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"name": "minecraft-neoforged",
"display": "Minecraft NeoForge",
"type": "minecraft-java",
"install": [
{
"type": "javadl",
"version": "${javaversion}"
},
{
"files": [
"https://maven.neoforged.net/releases/net/neoforged/neoforge/${version}/neoforge-${version}-installer.jar"
],
"type": "download"
},
{
"source": "neoforge-*.jar",
"target": "neoforge.jar",
"type": "move"
},
{
"commands": [
"java${javaversion} -jar neoforge.jar --installServer"
],
"type": "command"
},
{
"target": "server.properties",
"text": "server-ip=${ip}\nserver-port=${port}\nmotd=${motd}\n",
"type": "writefile"
},
{
"target": "eula.txt",
"text": "eula=${eula}",
"type": "writefile"
}
],
"run": {
"stop": "stop",
"command": "java${javaversion} -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true @libraries/net/neoforged/neoforge/${version}/unix_args.txt nogui",
"workingDirectory": "",
"pre": [],
"post": [],
"environmentVars": {}
},
"data": {
"eula": {
"type": "boolean",
"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)",
"required": true,
"value": "false"
},
"ip": {
"type": "string",
"desc": "What IP to bind the server to",
"display": "IP",
"required": true,
"value": "0.0.0.0"
},
"javaversion": {
"type": "string",
"desc": "Version of Java to use",
"display": "Java Version",
"required": true,
"value": "17"
},
"memory": {
"type": "integer",
"desc": "How much memory in MB to allocate to the Java Heap",
"display": "Memory (MB)",
"required": true,
"value": "1024"
},
"motd": {
"type": "string",
"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.wiki/w/Formatting_codes' target='_blank'>color and formatting codes</a>.",
"display": "MOTD message of the day",
"required": true,
"value": "A Neoforged Minecraft Server\\n\\u00A79 hosted on PufferPanel"
},
"port": {
"type": "integer",
"desc": "What port to bind the server to",
"display": "Port",
"required": true,
"value": "25565"
},
"version": {
"type": "string",
"desc": "Version of NeoForged to install You can find the latest neoforged package for your desired minecraft version from <a href='https://projects.neoforged.net/neoforged/neoforge/'>here</a>",
"display": "Neo Version",
"required": true,
"value": "20.4.237"
}
},
"environment": {
"type": "standard"
},
"supportedEnvironments": [
{
"type": "standard"
}
],
"requirements": {}
}
Loading