Minecraft 1.18.2 Create a Fabric server general tutorial (nanny level)
Foreword
I tried to build a Fabric server, the purpose is to conduct MOD online with friends who log in to the offline.The problem appears on various websites -there is always a key step stuck.Now all the problems have been resolved, and this tutorial is for the reference of later partners, and it is helpful in seeking privateness.
Read this article special attention
There is still no suitable solution to solve the necessary modules that the little partners need to install at the same time (that is, the client needs to be installed, such as the Twilight Forest MOD requires the server and the client to load at the same time) to enter the server normally;
The author of the important module MOSSFRP has the characteristics of the cards every three seconds when the non -server online is repaired.
This tutorial may apply to all versions supporting Fabric;
All mentioned in this tutorial appear in the form of Executable Jar File (that is, executable jar file) (as shown below).Many compression software list .jar as a compressed file.As a result, when double -click executable .jar files, it will be opened in the form of a compressed package.Solution: Cancel the association of jar in the default decompression software installed by the computer (as shown in the figure below, take Bandizip as an example).
The Java version used in this tutorial is Java17. Because it does not need to manually manually perform the system environment configuration and its excellent compatibility (in fact, it does not need to be replaced by other versions when the version is switched), it is deeply loved by the majority of players.
It is worth noting that after frequent switching and installing several Java versions, the starting server will report an error.The solution is to completely uninstall the Java on the computer and reinstall the corresponding version.
This tutorial is demonstrated by the Windows 10h2 system and Minecraft 1.18.2.
What?What is .jar?Why haven't you seen it?There is nothing except the name after this file?Display file extension method: Open the control panel (Windows user), check the way to select the big icon ▼ to find and click the file resource manager option, select the card on the pop -up page, find and cancel the check -up in the high -end settings: list: list: list: list: list and cancel the check -up check.Hide the expansion name of the known file type.Click below to determine.
Win key+V display shear plates (Windows8 and later versions) CTRL+C Copy Ctrl+V Paste
Prepare
1. JDK17 (https://www.oracle.com/java/technologies/downloads/#java17)))
The installation method is as follows
After jumping to the above website, download the JDK17 installer as shown in the figure.After downloading, run the download file.Click the next step (n)>, next step (n)> in the pop -up installation program, and wait for the installation to complete, click to close (C).
2. Fabric server installation device (https://fabricmc.net/use/server/)
The download method is shown in the figure (please do not run after downloading!)
This tutorial is called the Fabric server installer for this file.
process
1. Create a folder at the position of the non -system disk (that is, except the other disk of the C drive) and create its shortcut on the desktop.Even if the server is only for a few friends, this method is recommended.
The purpose of creating shortcuts on the desktop is convenient to open the server folder.
2. Put the installation of the Fabric server that earlier the downloaded, and put it in this directory (that is, copy it from the download folder to the server folder), and double -click to run.
Waiting for the files and folders as shown in the figure below (may consume 5 to 10 minutes).
It is worth noting that in many experiments, the first double -clicking occurs only. Fabric and Libraries.Solution: Double -click the Fabric server installer in the folder again.Please do not double -click repeatedly, do not need to delete the created folder, just wait patiently for a while.If it still does not change for more than 5 minutes, try double -click the Fabric server installer in the folder again.
3. Double -click to open the eula.txt file and change the eul = false to eula = true.Save and exit.4. Double -click the Fabric server installer in the folder.After waiting for a while, the window will appear below.
[HH: MM: SS Info]: Done (xx.xxxs)!For Help, Type "Help" (Hh: MM: SS refers to the current time, with xx.xxxs (XX.XXS refers to the server to start the latter time), a server with a basic GUI interface has been opened.
Type STOP and Enter at the above blank space to close the server.At this time, note that there are more files and folders in the folder.The function of the multiple files and folders is as shown in the figure (to be supplemented and corrected).
5. The next step is to add a module.Before installing the module, download and put the module Fabricapi and put it in the MODS folder (this is recommended Curseforge link, you may need to go online scientifically, please select the corresponding game version of Fabricapi to download!), Most modules depend on dependence onthis.Please find out on the module's official website or site in advance to find out the module that needs to be installed on the server, and whether the client needs to install the module.Put the module that needs to be installed in the server and put it in the MODS folder; and install the module that needs to be installed in the client to the game of yourself and your friends.
After installing the module, double -click the Fabric server installation device to observe whether the server can be successfully started.If not, check your module.
6. Change the server.properties file.Open the file with the notepad (or arbitrarily view the application of the document normally).For all of them, please modify it according to the Wiki Encyclopedia, or refer to the following possible variables to change (different versions may be different, and the order will not affect the game).
7. Create a fast startup file.Create a new text document in the server folder, edit content (example):
java-xmx4096m -xms512m -jar name .jar nogui
The -xmx follows the maximum memory limit occupied by the server. The format is digital+unit, and the unit can be M or G; -xms is the minimum memory. The method of filling in is the same as the maximum memory.Name .jar is the name of the Fabric server installer mentioned above.The suffix has been given, and the first name of the suffix has been replicated (as shown in the figure below).NOGUI refers to the startup without the GUI interface.
Save and close.Change the suffix from the .txt to .bat and double -click to run (in the future to open the server again and run this .bat file).
This window will pop up, the usage is the same as the 4th step. After loading, the Stop closes the server.
At this point, a Minecraft 1.18.2 Fabric server was made.
If you use your own computer to build a server, add the server address to the multiplayer game page and set it to 127.0.0.1.To.If you are a lease server or other (such as another computer) server, the service method is the same.
Let the friends who are far away from thousands of miles enter the server
Two good low -delay and efficient methods were collected, which were using Sakurafrp for internal network penetration and using mossfrp for inner network penetration.Before starting, please read their free statement.Both have free traffic, and sign in and receive.
1. Use sakurafrp to penetrate the internal network
Register and log in to the official website of Sakurafrp.
Operate as shown in the figure and copy the access key.Click here to download the SakuraFRP installer, and run the installer after downloading.(Sign in on the home page above can lead the traffic)
Select the pop -up page in turn. I agree with this agreement (a) and the next step (n); the next step (n); check the creation of desktop shortcuts (d); next step (n); installation (i); complete (f.Wait for the application to start.
In the application settings page, enter the access key and log in.The application will automatically jump to the tunnel page.
Start the server.
Wait [HH: MM: SS Info]: Done (xx.xxxs)!After help, after the word Type "Help" appears, go back to the application and click + beside the tunnel word.As shown in the figure, a Java word is selected (if not, check whether the server is opened normally).Fill in the tunnel name, just click through the node ▼, and select a node (as shown in the figure, the tunnel is not always available, and some tunnels are not stable. It is recommended to try a few more).Click to create.
After the figure is created, click the button to open.
Click the log page.
These two addresses are the address of the server. Generally, the former is recommended.You only need to enter this address to enter the server.When turning off the server, remember to turn off the tunnel.
2. Mossfrp
Compared to Sakurafrp, MOSSFRP is more stable.
This is a powerful module.This tutorial may not be consistent with the original post method, refer to this tutorial.
Before starting, please ensure that the server's server.properties have not been moved by other options except the recommended settings.
Bleak
(The tutorials have been written for half a year to find the problem)
In this tutorial, only MOSSFRP is used as a penetrating tool, and it is not used as a module; just as it is mentioned in the special note of this article, if it is used as a module, refer to the author's own tutorial.
Bleak
The current MOSSFRP has become increasingly mature, so there is no need to use the official group.Go to the official website MOSSFRP homepage to register account and sign in to obtain silver coins used to create penetrating code.
Get the Java version of the Java version (Mossfrpjava.jar) in the (above) software download. You can choose to put it in the same root directory as the server for future use.
Turn to the status of the service node in the left column to check the load and other states of each node. Select a suitable node and pay attention to its code (TIPS).
Turn to the list of penetrating code list creation:
In order to ensure that the game has a stuttering non -bandwidth limit, it is recommended to occupy 1 ~ 2Mbps per five players.
When you need to renew or upgrade, you can directly click on the right column button; delete some silver coins.
Copy the penetrating code.Double -click the mossfrpjava.jar file downloaded above to get the file and folder as shown in the figure.
Minecraft 1.18.2 Create a Fabric server universal tutorial (nanny level) -Am 22 picture
Double -click Run.bat.After waiting to be initialized, type (for example):
Save
Do not bring a sprout noodles when you type. Enter the car.
Show as shown in the figure, which means that the preservation is successful.
Start the server.Wait [HH: MM: SS Info]: Done (xx.xxxs)!After the word for help, after the word Type "Help" appears, return to the Mossfrp Standard Client window, type RELOAD and return to the car.
The connection address shown in the figure is the server address.When closing the server, type exit at this window to stop using the tunnel.
When replacing the penetrating code, you can directly find the .yml file named after the configuration name of the figure, open it with the notepad and fill in the new penetrating code into the token quotation marks.Just save and restart the startup program.
The above is all the contents of this tutorial.
Due to the negligence and time urgency, this tutorial may have a leak.