What do you need to create a server in minecraft. How to create your own server in Minecraft

You will need the latest version of Java Java Download and Minecraft server file - the current release can be found on the official website of the developer DOWNLOAD MINECRAFT SERVER: JAVA EDITION. Java needs to be installed and the server file placed in a separate folder, for example C:/Games/Minecraft Server.

Run the server.jar file. If the Open With window appears, select the Java application. The document eula.txt will appear in the server folder - open it and in the last line change the value false to true. This will indicate that you have accepted the license agreement. Otherwise the server will not work.

Run server.jar again. The server window will appear. The box on the right is the console, which lists all the actions performed by the program. On the top left is statistics, and below it is a list of players who are currently on the server.

After Done appears in the console, close the window. Using any text editor, open the server.properties file located in the server folder. This is a list of program settings. Set the required parameters by changing the values ​​after the = sign in the corresponding lines.

Here is a description of some useful options.

Parameter Values ​​(default) Description
gamemode Number from 0 to 3 (0) Game mode:
  • 0 - survival;
  • 1 - creativity;
  • 2 - adventure;
  • 3 - observation
force-gamemode true / false (false) If true, the server switches the game mode of each new participant to the one specified in gamemode. If false - does not switch
allow-nether true / false (true) If true, players can move to the Nether, if false, they cannot
player-idle-timeout Number (0) If a player is inactive for the minutes specified here, he will be kicked from the server. A value of 0 disables this feature
difficulty Number from 0 to 3 (1) Game difficulty:
  • 0 - peaceful;
  • 1 - light;
  • 2 - normal;
  • 3 - difficult
spawn-monsters true / false (true) Controls the automatic appearance of zombies, creepers and other monsters in the game world. true - monsters appear, false - no
pvp true / false (true) true - players can damage each other, false - they cannot
level-type DEFAULT / FLAT / LARGEBIOMES / AMPLIFIED (DEFAULT) World type:
  • DEFAULT - normal;
  • FLAT - flat;
  • LARGEBIOMES - large biomes;
  • AMPLIFIED - extended
hardcore true / false (false) Activates the “Hardcore” mode. true - it is enabled, false - it is disabled
max-players Number from 0 to 2147483647 (20) Maximum number of players on the server
spawn-npcs true / false (true) Controls the automatic spawning of villagers. true - they appear, false - they don’t
allow-flight true / false (false) true - Players can fly in Survival mode if they have the appropriate plugin. false - cannot
spawn-animals true / false (true) Controls the automatic spawning of chickens, pigs and other peaceful animals. true - they appear, false - they don’t
generate-structures true / false (true) true - there are castles, villages and other buildings in the game world. false - they don't exist
online-mode true / false (true) true - players with pirated versions of Minecraft cannot connect to the server. false - possible
max-build-height Number from 64 to 256, multiple of 16 (256) Maximum building height in blocks. Above this value, blocks can neither be created nor destroyed
level-seed Any grain The grain that regulates the generation of the world. If left blank, a random world will be created

After all the settings are set, run server.jar. When “Done” appears, you can connect to the server. To do this, you need to select “Multiplayer Game” in the Minecraft main menu, click “Add Server”, enter the desired IP address and click “Launch”.

If the server is running on the same computer as the game, then in the IP field you just need to enter “localhost” or “127.0.0.1”. If not, then you need a current IP device.

4. Manage the server

To manage the server, use console commands. Here are the ones that may be useful to you.

Team Description
give name item quantity Gives the player the specified item
ban name Prevents the player from joining the server
teleport destination destination Transports a target (player, item or creature) to a destination (coordinates or player)
summon target coordinates Creates a target (item or creature) at the specified coordinates
op name Makes the player a server operator
kill name Kills the player
spawnpoint coordinate name Sets the player's spawn point
save-all Saves the server to disk. The process is gradual. If you add the parameter separated by a space, the saving will occur immediately, but the server will freeze for a few seconds
stop Shuts down the server

A complete list of available commands can be seen by entering the word help into the console.

As fun as Minecraft's single-player mode is, multiplayer, where you can play with friends, is much more fun. There are several ways to play Minecraft in multiplayer. One of them is to create a Minecraft server that you and your friends can connect to. Of course, existing servers can also be used for this purpose.
In this guide, we'll show you how to create a Minecraft server for you and your friends on your home PC.

First you need to download the .jar version of the server

Place the downloaded jar file in a folder. It doesn't matter where she is. Next, you need to prepare the file that will launch your server.

Creating a Batch File

Create a new text document and add the following lines to it:

@echo off
title run-minecraft
java -Xms1024M -Xmx2048M -jar minecraft_server.jar nogui
pause

This means we want java to run our server "minecraft_server.jar" with 1024 megabytes (1 gigabyte) of RAM. If an error appears, reduce the RAM values ​​to 512 MB, it helped me and the server started!

To run the server with more memory, simply change the -xms and -xmx values. Moreover, they must be equal to the numbers 64, 128, 256, 512, and so on.

To save a file in .bat format, click the File button in the upper left corner of the screen, select Save As, then under the “File name” field, select All files. It is very important. Name your file start or start server and click Save. Then change the file extension from .txt to .bat

Or you can download my bat file here: (to change it, right-click on the file and select “Edit”).

User agreement and server launch

After completing the previous step, start your server. First, it will close instantly as you need to accept the user agreement. To do this, open the text document with the agreement that appears in the folder, change the line eula=false to eula=true, save it and start the server again.

Your server should start normally and start generating the world and creating other important files like server.properties, whitelist, banned-players and so on.

Connecting to the server

To connect to the server we just created, you, as the owner, just need to go to multiplayer and add a server, specifying “localhost” as the IP address.

As for your friends, you can give them your external IP address, to find it out, go to the website 2ip.ru. In addition, your router should have ports 25565 through 25566 forwarded. An excellent video on port forwarding can be found below.

I hope this quick guide will help you create a Minecraft 1.8 server for you and your friends, and then have a good time together! If you still have any questions, ask them in the comments below!

Every person should at least try to play Minecraft. There is a high chance that this game will become your favorite. Of course, there will be those who won’t like it, because many people don’t like the “sandbox” genre as such, but there’s no arguing about tastes. The main thing is not to give up on this game until you try it in all variations. For example, some people mistakenly believe that Minecraft is an exclusively single-player game that cannot be played online. But this is not so - it has a fairly developed and intriguing multiplayer mode. Moreover, absolutely anyone can create a server, so this makes the game even more attractive. But in order to invite your friends, you should figure out how to make your own server in Minecraft.

Downloading the necessary files

Naturally, you cannot create a server out of thin air. You do not have the necessary files on your computer that would allow you to generate a multiplayer world and keep other players connected to it. But how to make your own server? To do this, you will need a special file that will improve your game client and allow you to make multiplayer games. It is called minecraft_server, but it can have different extensions - both .jar and .exe. When you download it, you will take the first step towards becoming a Minecraft host. But there is still a long way to go, and you will need a lot more knowledge to figure out how to make your own server.

Running a file

So, you have a downloaded file that will allow you to turn your computer into a Minecraft server. But how to achieve this? How to make your own server from one file? To do this, you need to run it, but be careful - look where you downloaded this file. It should be in the "Minecraft" folder. If it is located in any other place on your computer, then do not run it, but move it to the desired location. Just make sure that it is located in the game folder and launch it. In this case, the system may ask you for permission several times for certain functions - you will have to allow everything that is asked of you. But don't worry - this is usually only permission to run the file itself, as well as to use Java. This is all absolutely safe, since it was downloaded from the official Minecraft website, and there is no threat to your computer.

When the file is unzipped, you will find that there is much more content in your Minecraft folder. Congratulations - now you can create your own servers. But, of course, you also need to learn this. You know how to download and install a server on your computer, and now you need to understand how to make a server in Minecraft in the game itself.

Defining and setting IP

You might definitely be intimidated by the number of files that will appear after unpacking. Questions about the Minecraft folder may immediately arise: how to make a server out of all this? But you don't have to worry - you only need one file called server.properties, which is where you will make all the changes that will affect how your server will function. You can open it with regular Notepad, because the changes will be exclusively text.

The first thing you need to do is change the server IP address in this file. Since you are creating it on your computer, you need to indicate your own IP address. If you don’t know how to do this, then the problem can be solved simply - there are a large number of services on the Internet that will tell you network information about your computer for free in two seconds. Remember - you only need the IP address, you copy and paste it into the appropriate line of the file. Make sure to save your address as you will need to provide it when you start your server after setup. Minecraft servers are monitored by IP, so you should be sure to enter it correctly - moreover, an incorrect address will lead to a game error, and you will not be able to try yourself as an admin.

An important point - the map

Pay attention to the line level-name, for which the default value is World. This means that the world in which the game will take place is created randomly. This is a standard scheme that is present in both single-player and multiplayer games, and it does not matter whether you tried to find out how to make a server without Hamachi, using other software, and so on.

By default, the world is always created randomly, and if you want something different, you will have to change everything yourself. To do this, you will need a map that you created or downloaded from the Internet, which you would like to apply to your server. Having placed it in the "Minecraft" folder, you must copy its name and replace it with the world value in the level-name line. Only in this case you will not get a random world in which a multiplayer battle will take place, but a specific and specified one.

Other properties that can be changed

You should not think that these are the only two parameters you can change when interacting with this document. It contains absolutely all the properties of the Minecraft world, and you can change all of them. For example, you can enable or disable the Nether, allow or disable flight, and so on. There are quite a large number of settings, each item among which is very important. Don't skip the line that sets the maximum number of players if you don't want your server to be too busy. Enable PvP if you want players to be able to damage each other. In general, the scope for imagination is very wide, and you can customize your world as you please. You should also figure out how to make a server with mods to give your players even more options.

How to add a server to the game

You already know how to download the necessary files, install the server on your computer, and configure it. The final step remains - launch. You shouldn’t have any problems here, since everything is done extremely simply. You need to start the game, go into multiplayer mode and instead of joining other servers, select the option to create your own. There you will need two items - its name, as well as your IP address, which you should have remembered even when you edited it in a text file. After filling these two cells, you will be taken to the game world, which will become the basis of your server. Here you can already build, extract resources, hunt animals and fight mobs, that is, do everything that you can do in a standard game. But why do you need a server for one?

Adding new players

If you have already created your server and are ready to host guests on it, then you won’t need much - you just need to invite a couple of friends to create the appearance of activity. Then other players will also become interested and join. Moreover, many Minecraft fans prefer to play in those worlds where nothing has happened yet, rather than where various events have already happened. So you are unlikely to be left without players.

Common Mistakes

You should always remember that the version of the game for everyone must match the installed version of the server. If they differ, then the player simply will not be able to connect to the server. This is the most common mistake in the multiplayer environment. You will also receive an error message if you try to log into the server using a login that you have not yet registered. And, of course, do not forget to check the permissions for Java in your antivirus - without it, playing online simply will not work.

Hi all! In this article I want to tell you about how to create a server from scratch, how to configure it correctly, what is correct ( in my opinion), and what not ( in my opinion).

Also, I want to note that I will talk about everything from my own point of view, not always correctly, not always definitions from Wiki. I'm just a server developer who shares his experience with beginners.

So, you are required to:
1) Desire. Without the desire to create a server, I think little will happen.
2) Minimum finances. Without finance, you are neither in a puddle nor in a river.
3) Minimum knowledge of how things work. I'll tell you a little about this and that, the rest you'll have to do yourself
p.s I’m not going to talk about what you need to install Java, where to download Minecraft and so on. If you don’t know the basis, this article is not for you, sorry ((

So, we have a desire to create a server! Where to begin? From the plan, of course! What is the plan? Well... I think everyone puts it together differently, some think through everything, from A to Z, some make outlines and strategy, some just the name and finances, but everyone has it. You and I will do something in between all this.
Plan:
1) What do we want from the server?

I create servers for the sake of an idea that is not aimed at making money at all, I like creating servers (I get high from it). Of course, we need a so-called donation to cover at least the costs of the server, but more on that later.
What do we want? Make a server for yourself? To make money? Everyone decides for themselves, I cannot help you.

2) Decide on the choice of version.

SpoilerTarget"> Spoiler: Versions

Only after studying the basic plugins can we start working on plugins that fit our theme. Since we have an RPG vinyl, we need: quests and character leveling. There are many plugins on spigotmc.org that implement the systems we need, but most of them are either paid or do not work on the latest versions ( alas and ah). Well, let's go look...
After spending a little time in the search engine we find:
1) - plugin for implementing quests.
2) - plugin for implementing character leveling and combat ( This is a plugin from the "premium" section and costs some money. You can find alternatives from free plugins, but in this case we will use this one).
We install it on the server, reboot the server and see if everything has loaded by entering the “pl” command into the console.
DeluxeMenus is highlighted in red, which means it is not working. Let's figure out what happened. Open the server logs - "logs/latest.log" and find the moment when the plugin was enabled " Enabling DeluxeMenus v1.10.5*".
Having studied the logs, we understand that we do not have the “PlaceholderAPI” plugin installed. .
Restart and check if all plugins are loaded with the "pl" command
Great! Everything is working! What's next, boss? So what is next...

Minecraft is a popular gaming product, which, according to various estimates, has the largest number of sales around the world. The game attracts with its rich functionality and available opportunities for potential players. Among the attractive opportunities for players there is such a feature as a personal Minecraft server. Setting up your own server to play Minecraft takes time. The result is worth it, for example, to play with friends. However, how to make a server in Minecraft and configure it for Mac, Windows, Linux? Let's try to figure it out.

To cope with the task, first of all, you need to acquire the basic components of the node organization:

  1. Software for Minecraft server.
  2. Powerful desktop computer (laptop).
  3. Cable connection to the Internet.
  4. Web hosting.

The configuration of the personal computer at your disposal determines the admissibility of installing a personal Minecraft server. Meanwhile, it is recommended to use a remote hosting service as a more effective option for organizing a gaming node.

Again, the official Minecraft dealership offers a number of hosting services free of charge. As a last resort, it is always possible to find a host at reasonable rates.

Attention! A personal hosting device is fraught with attacks on your computer. Using hosting from an external provider eliminates such risks.

Setting up port forwarding

If you plan to play directly in the company of friends via a local network, you can skip the information below.

If you organize a Minecraft server via the Internet, to provide access to the node you will have to use port forwarding on the router.


An example of one of many options for configuring port forwarding on a specific router. In each specific case, you should refer to the equipment documentation

Since each individual router has a unique design, you should refer to the device's setup manual, in particular, on the issue of setting up port forwarding.

This is usually done as follows:

  • you enter the router settings page,
  • the port forwarding section opens,
  • indicate the IP address of the computer in the appropriate field,
  • UDP and TCP ports for Minecraft are indicated in the appropriate fields.

The incoming ports that need to be forwarded in the case of Minecraft are the following:

TCP: 19132, 25565

UDP: 19132, 25565

You may need to specify a protocol for working with ports. After entering all the information, the router (router) must reboot.

How to create a Minecraft server on Windows?

Initially, it is recommended to download and update the Java version to the latest release. Then the software for Minecraft server is downloaded directly (file with the extension “*.jar”).

Next, an empty folder is created in any convenient location on the computer, named arbitrarily (for example, “server-minecraft”). The previously downloaded “*.jar” file is transferred to this folder and launched in the standard way.

The first launch of the Minecraft server is often accompanied by error messages and automatic shutdown of the node. These messages can be ignored. The first launch creates configuration files in the previously created folder.

There, in the folder, you should find a text file named “eula” and open this file with the classic text editor “Notepad” or similar. The content needs to be edited, in particular, the line “ eula = false" on " eula = true».


The first attempt to start is often accompanied by a message about unsuccessful completion. This is a purely technical situation that can be corrected with some manipulations

This edition prevents automatic shutdown of the Minecraft server. With this configuration, running as administrator runs without errors.

You should re-run the “*.jar” file for execution (required from the administrator) and wait for the “Done” message.

To stop the operation of the node, use the “stop” command in the server window with the “Enter” confirmation.

Technically, the owner is free to run his own host directly. However, it is more convenient to do this by setting the default parameters, and then creating a launch file if you plan to play with other users.

It is enough to create a new launch file “run.bat” using Notepad, and add the line “ java -Xmx3G -Xms1G -jar server.jar" After this operation, the Minecraft server will be launched through the “run.bat” file in the folder or via a shortcut on the desktop.

This is the final stage of the process. All that remains is to invite other Minecraft players by providing a public IP address or a local IP address, depending on the nature of the network.

You can check access to your personal Minecraft server by entering the IP address in Minecraft Server Status Checker. Access to the host is only possible if port forwarding is previously configured.

The public IP address can be determined through various services, found by Google or in another way.

How to set up a personal Minecraft server for Mac?

Setting up a Minecraft server on Mac traditionally starts with making sure your system is up to version macOS 10.8 or later. Operating system updates are available through Apple Support.


The procedure for downloading the Minecraft server distribution for the MAC operating system. After this process, simple settings and the long-awaited launch

Through the Apple menu, “System Preferences” opens, where you need to find the Java logo. Clicking on the logo launches the Java control panel.

Here you need to go to the “Update” tab and activate the “Update now” option. Go through the OS update procedure.

#!/bin/bash

cd "$(dirname "$0″)"

exec java -Xms1G -Xmx1G -jar (server file name) nogui

where: server file name is the name of the downloaded Minecraft server file.

Edited containing a server-side ".jar" file named "start.command". Next, the Mac terminal opens, the “Applications - Utilities” transition is performed, and “Terminal” is launched.

The terminal window line is filled with the command “ chmod a+x" followed by a space. The enter key starts the command for execution.

The “start.command” file is dragged to the next window with the mouse. “Enter” is reactivated. After this operation, the Minecraft server will be launched via “start.command” in the usual way.

Minecraft server testing is carried out similarly to the Windows version.

How to set up a personal Minecraft server on Linux?

Any Linux distribution allows you to organize a Minecraft server. Let's look at the technological steps that allow you to create a Minecraft server for Ubuntu 16.04. Configuration is performed via the command terminal.

Connect to the hosting via SSH using the terminal command: “ ssh username@ipaddress", where username is the user name, ipadress is the IP address on the hosting.


Autostart screen of a server program on a computer system running the Linux operating shell. The Linux command terminal allows you to perform advanced settings for the Minecraft server

sudo apt-get update

sudo apt-get install default-jdk

If you are prompted to confirm installation, confirm. Activate the screen to ensure the operation of the node when there is no network connection with the command:

sudo apt-get install screen

Create a directory for personal server files and open with the commands:

mkdir minecraft

cd minecraft

Install wget

sudo apt-get install wget

Download the Minecraft server distribution using the wget command:

wget -O minecraft_server.jar https://s3.amazonaws.com/Minecraft.Download/versions/1.12.2/minecraft_server.1.12.2.jar

echo "eula=true" > eula.txt

screen -S "Minecraft server 1"

java -Xmx512M -Xms512M -jar minecraft_server.jar nogui

Testing is carried out in the manner described above.

How to connect to a personal Minecraft server

When using a personal Minecraft server, the program window must remain active to allow access. Open and log into your personal Minecraft account.

Select "Multiplayer" from the menu and then "Add Server" in the lower right corner of the screen. Give the game node a name. Specify the hosting IP address in the “Server Address” line.

Please note that for a personal Minecraft server, a private IP address is entered, which is different from the public IP address. At the bottom of the window, activate the “Done” option.

Potential players will only have to select the node name at the top of the screen and activate the “Join Server” option. If the router is configured correctly, the connection is successful.

You may need to disable your computer's firewall to remove the blocker on connecting to the gaming site locally. However, it is worth remembering that this action will make the computer vulnerable to hacker attacks.