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.
cd Switch the current folder, etc.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.
exist Forge official website Installer required to download the required version.

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.
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.

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.

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.

This is suitable for the situation where the Forge places two jar files in the server root directory.
.sh, Windows changed to.cmd)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.
TODO
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 It is a basic configuration file of your server. For specific information, please refer toMinecraft WikiEssence Here are only a few more important items.
This is the server's port number. Players will use IP address or domain name to enter the server by default.
Please leave a short representative local server
This represents the port number that is used to access the basic information of the server, which is generally consistent with the server-port
This determines the size of the area loaded by a player. The larger the more memory you need, the more the server needs
Official documentation It is already very detailed, so I won't go into details here.
MCDR official QQ group: 1101314858
Plug -in library:https://github.com/MCDReforged/PluginCatalogue
Recommended plug -in:
Look atTutorial
-javaagent: "<ATHLIB Injector Path>" = <Certificate Server URL> Toserver.properties middle online-mode Change totrueOfficial website You can choose the corresponding version and download it, and drag it directly into the server after downloadingmods The folder can be.
Official Chinese documentation
When you look at the document, remember to select the SPONGE version used in the lower left corner
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
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...
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...
Course Directory 1. Strengthen the system mechanism Illustration of equipment enhancement system Required for strengthening Energy consumption Strengthen the consequences of failure Enhancement level ...
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...
(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...
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 1. Software Preparation - Minecraft - jdk -forge and mdk - IntelliJ IDEA 2. Environment ...
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] Alibaba Dragonwell It is a free, producing Open JDK release, providing long-term support, including performance enhance...
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 ...