Alright, here's another new article! Actually, there are already plenty of tutorials online that can help you achieve your goal.
But I want to write a simple tutorial to replace them (in case you forget, you can also refer to it).
Without further ado, let's get started!
Quick note: This tutorial is only applicable to Minecraft Java Edition. For Bedrock Edition, please wait for future updates.
Also, you'll need to have at least a basic understanding of English, a functioning brain, some experience playing Minecraft, and a working computer.
Steps#
Check System Requirements#
To set up a Minecraft Java Edition server, the first requirement is to have Java Runtime. If you've played Minecraft before, you should already have it.
Next, your operating system needs to be up to date, at least Windows 8.1 or a newer version of Linux.
These are the things you need to pay attention to when setting up the server. Once you've confirmed that all the requirements mentioned above are met, you can happily move on to the next step!
Download Server Core#
Every Minecraft server has a crucial component: the server core.
The server core is responsible for hosting the Minecraft server and enabling multiplayer gameplay. It is essential.
Now let's download the server core! We'll use the ZMirror server core download service provided by z0z0r4.
Website: https://mcmirror.zclubserver.top
Sponsorship: https://pay.z0z0r4.top
Open the above website, and you'll see a page like this:
Among them, "vanilla" refers to the original server core developed by Mojang, which cannot have additional features or gameplay through plugins or mods. We'll choose it for this tutorial.
Click on it, and in the list, find the version you need, such as 1.18.1.
Click on the version you want, and in the top right corner, you'll find the download button.
Please download the file with the
.jar
extension and avoid downloading files with the.jar.sha1
extension.
Once downloaded, place it in a location of your choice. In my case, I created a new folder on the desktop and placed the downloaded core inside.
Initial Configuration#
Double-click on the server core, and after a moment, you'll notice that the directory has many new files.
Now open the eula.txt
file. We need to agree to Mojang's EULA (End User License Agreement) in this file to proceed with the next configuration steps.
It is recommended that you have a general understanding of Mojang's EULA.
Change false
to true
in the file and save it.
Then double-click the server core file again, and after a while, you should see this window:
Let's close the server. You can click the close button or enter stop
in the console.
Now, create a new text document in the directory and enter the following parameters:
java -Xmx1G -Xms1G -jar minecraft_server.1.18.1.jar -nogui
pause
# If you want to use a custom version of Java
"Absolute path to your java.exe for the Java version you want to use" -Xmx1G -Xms1G -jar minecraft_server.1.18.1.jar -nogui
java
is the path to the Java version you want to use. If you have multiple versions of Java installed on your computer, you'll need to manually specify the path.
-Xmx
and-Xms
control the amount of memory allocated to the server. Set them according to your needs. Mojang recommends setting the maximum and minimum values to be the same (allocating static memory).
Now, your folder should have the following directory structure:
Folder
|_ libraries
|_ logs
|_ versions
|_ world
|_ banned-ips.json
|_ banned-players.json
|_ eula.txt
|_ minecraft_server.1.18.1.jar
|_ ops.json
|_ server.properties
|_ start.bat
|_ usercache.json
|_ whitelist.json
Open the server.properties
file. This file is the server's configuration file, where you can customize player limits, authentication, game modes, difficulty, and more. For details, refer to the Minecraft Wiki.
Once you've finished editing the file, your server is ready to go. Now you can use a port forwarding tool to allow external connections, or you can spend some money to rent a server.
Conclusion#
And that's it for this tutorial.
You now have a basic understanding of the steps to set up a server. Next, go ahead and rent a server to host your Minecraft server! Don't always be a freeloader, right...?