Minecraft ForgE server open service tutorial

tags: notes  java  Gaming program

This blog post is a person who has knowledge and skills but has not yet learned to open up.
If you have the following knowledge and skills, but you do n’t understand, it is not enough to write.

  • Proficient in the basic command of the command line, such as usingcd Switch the current folder, etc.
  • Know the meaning of Java and JVM
  • Familiar with the PIP package manager, you can install, update, and delete the Python package with PIP (McDreForget needs)
  • Basic English reading ability, at least you must cooperate with translation software to understand English documents and log files
  • Basically familiar with the name and role of the main computer hardware
  • Familiar with the basic knowledge of the TCP/IP protocol, such as IP address, port number, port mapping, etc.
  • Know how to properly use search engines such as Baidu to find a way to solve problems
  • Have enough patient reading various documents

Resource preparation

The following skills are removedMcDreForcy needs Except for the labeling, it is an essential resource for opening a Forge server. The latter notes are based on the use of McDreForget (hereinafter referred to as MCDR).
MCDR is a shell set outside the Java server. It reads and analyzes the output and plug -in of your server to achieve various functions, such as: interoperability with QQ groups, open black server, automatic thermal backup, etc.

hardware

software

  • Java 8, recommended 8U302 (except 8U321 and later versions are actually OK)
  • Python 3.9 (McDreForget needs)
  • Python library (McDreForget needs)
    • mcdreforged
  • A public network IP

Configure the forge server

1. Download

exist Forge official website Installer required to download the required version.
Forge Download

After clicking on the download link on the official website, it will automatically jump to the Adfoc.us website and wait for the "SKIP" button in the upper right corner of 5 seconds to download.

Help! I can't download it! Adfocus webpage cannot be opened / no SKIP button!

Back to the download page of your required version on the official website, right -click the Installer button, copy the link and paste the web bar, put it&url= And all the characters in the previous one are removed, and then go back to the page to start downloading.

2. Installation server

Forge Installer GUI

Open the downloaded Installer, select the Install Server option, select the folder you want to install at the three points buttons in the lower right corner, and then click OK to start the installation. Related library files need to be downloaded when installed.
If it fails halfway, you can re -run this process before the failure of the failure. The red words on the "non -empty folder" here can be ignored.
When the following prompt appears, the installation is successful.
Forge Install Succeed
Since a new version, FORGE no longer puts jar files in the server root directory, but has a startup script. At present, bloggers have not investigated which version of the change made by ForgE, and only knows that this is the 1.18.2-FORGE 40.0.36.

Write the startup script

The old version of FORGE (please forgive me for using this expression)

This is suitable for the situation where the Forge places two jar files in the server root directory.

  1. Create a new text file, name and modify the suffix name to make it an executable script (Linux changed to.sh, Windows changed to.cmd
  2. Open this file with the text editor you like, enter, enter, enter
java -xms1024M -xmx2048M -jar forge-1.12.2-14.23.5.2860.jar nogui

Explain herejava Various parameters of commands:

  • -XMS <Memory capacity>: The minimum allocated to the server's memory, the format is the number of units, such as-xms1024M It is allocated 1024 MB,-xms16G It is assigned 16GB
  • -xmx <Memory capacity>: Maximum allocation to the server, the format is the same as above, must be greater than equal to-xms Parameter given memory capacity, while smaller than server memory capacity
  • -jar <jar file path>: Select the path of the JAR file that you command Java startup; here there are two jar files, namedminecraft_server.1.xx.x.jar It is the jar file of the original server, and the other is the forge server file we want.
  • nogui: This is a startup parameter passed to the Forge server, which means that we do not need the server to open the server GUI. In general, in addition to seeing the internal memory occupation of Java, this GUI is useless, but also stuck.

The command format of the java command we use:

java [Jvm parameter...] -jar <Jar file path> [Jar startup parameter]

The parameters are separated by space, and the parameters are wrapped in English double quotes when the parameter is encountered.

The new version of FORGE (please forgive me to use this expression)

TODO

Start the server for the first time

It will almost fail when the server starts the server for the first time, because at this time the server will generate aEULAFiles, the default is that you do not accept this EULA. Only by accepting this EULA can the server run. At this time, open the server root directory generatedeula.txt,Will eula=false Change toeula=true And restart the server.

server.properties

server.properties It is a basic configuration file of your server. For specific information, please refer toMinecraft WikiEssence Here are only a few more important items.

server-port

This is the server's port number. Players will use IP address or domain name to enter the server by default.

server-ip

Please leave a short representative local server

query.port

This represents the port number that is used to access the basic information of the server, which is generally consistent with the server-port

view-distance

This determines the size of the area loaded by a player. The larger the more memory you need, the more the server needs

Server supporting facilities

MCDR

Official documentation It is already very detailed, so I won't go into details here.
MCDR official QQ group: 1101314858

MCDR plugin

Plug -in library:https://github.com/MCDReforged/PluginCatalogue

Recommended plug -in:

  • Chatbridge: For servers, QQ groups, and open black servers to chat and interoperate
    • Do not support Python 3.10 (2022 APR.2)
  • Auto Plugin Reloader: Used for automatic overload plug -in configuration file
  • Timed QBM: Used for automatic timing backup server

External login and skin station

Configure skin station

Look atTutorial

Configure external login

  1. Download Authlib Injector and put it on the root directory of the server.Download link
  2. In the JVM parameter in the server start the script, increase the parameter-javaagent: "<ATHLIB Injector Path>" = <Certificate Server URL> To
  3. In the server roots of the serverserver.properties middle online-mode Change totrue

SpongeForge

Get and install SPONGEFORGE

Official website You can choose the corresponding version and download it, and drag it directly into the server after downloadingmods The folder can be.

Configure SPONGEFORGE

Official Chinese documentation
When you look at the document, remember to select the SPONGE version used in the lower left corner

SPONGE plugin

There are many sources of sponge plug -in, with SPONGE official plug -in librariesOre,have The plug -in plate on MCBBS, Find someone else to customize plug -ins, or write a plug -in yourself.
Please refer to your own plug -inSPONGE official plug -in development document
When you look at the document, remember to select the SPONGE version used in the lower left corner

Intelligent Recommendation

[Minecraft] 1.8.9MOD development tutorial based on Forge-Lecture 2: Create an empty Mod

Create a new package under your src/main/java, and here I am net.csdn.mymod (name convention: domain name reverse + Mod name) Create a class named MainClass, the code is as follows. I don't need to un...

Minecraft open service and Linux common instructions

Note: This sudo is SUDO Install Java Install OpenJDK8 Download server core Call the wheel directly, because MOD needs to be installed, use the server recommended on this MCBBS Releases · Luohua...

Minecraft NetEase Dreamer National Service Game Tutorial

Course Directory 1. Strengthen the system mechanism Illustration of equipment enhancement system Required for strengthening Energy consumption Strengthen the consequences of failure Enhancement level ...

Minecraft server panel MCSM panel in Linux tutorial

The following is a list of steps Need software upfront Precautions Environment deployment system update Install node.js Please close the terminal and reopen it or reconnect the terminal and execute th...

[Newbie Tutorial] Build a Forge MC Server in Windows Server 2016 environment

(Pre-statement: This article is my experience from knowing nothing about the MC server to roughly mastering the server opening process. There may be errors and omissions, please spray it lightly) 0. P...

More Recommendation

Minecraft 1.12.2 Forge Development (1) Build Environment

Tools needed to develop mods IDEA: https://www.jetbrains.com/idea/download/#section=windows MDK:https://files.minecraftforge.net/ Select version 1.12.2 to download (be sure to select the dow...

Minecraft Mod Development Environment Construction | Minecraft 1.15.2 | Forge 31.1.0

Minecraft Mod Development Environment Construction | Minecraft 1.15.2 | Forge 31.1.0 1. Software Preparation   - Minecraft   - jdk  -forge and mdk   - IntelliJ IDEA 2. Environment ...

Use IPv6 Minecraft to open service (no tunnel penetration, economy, free)

Before starting, you need to confirm that you and your friends have a computer that can access the Internet, preferably high configuration. The network speed is better, and the network must support IP...

Minecraft uses Alibaba_Dragonwell11 to run 1.16.5 server [official service core]

Minecraft uses Alibaba_Dragonwell11 to run 1.16.5 server [official service core] Alibaba Dragonwell It is a free, producing Open JDK release, providing long-term support, including performance enhance...

Forge the MySQL server

Forge the MySQL server Principles The MySQL client and server communication process is implemented through the form of dialogue. The client sends an operating request, and then the server responds to ...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top