[Start] [TitleIndex] [WordIndex

Setting up a local Minecraft Server

Remember: If you start Internet services on a local system, make sure that your local router filters incoming traffic!

Vanilla Server

  1. Download the actual server JAR file from Mojang. For example the 1.8.9. version: minecraft_server.1.8.9.jar.

  2. Create a prober directory and move the server JAR to this path. For example open a terminal and type mkdir -p ~/Games/Minecraft/server and then mv ~/Downloads/minecraft_server.1.8.9.jar ~/Games/Minecraft/server

  3. CD to your new server directory. According to our example: cd ~/Games/Minecraft/server

  4. Start the server from the command line. For example: java -Xmx1024M -Xms1024M -jar minecraft_server.1.8.9.jar nogui

    • You should get the following output:
             [Server thread/INFO]: Starting minecraft server version 1.8.9
             [Server thread/INFO]: Loading properties
             [Server thread/WARN]: server.properties does not exist
             [Server thread/INFO]: Generating new properties file
             [Server thread/WARN]: Failed to load eula.txt
             [Server thread/INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info.
             [Server thread/INFO]: Stopping server
             [Server Shutdown Thread/INFO]: Stopping server
    • You also should see now the file eula.txt and server.properties in your server directory. Use the ls command for example to check this.

  5. The server asks us to agree on the EULA. This is what we do now. Use an editor and open the file ~/Games/Minecraft/server/eula.txt. Change the eula=false line to eula=true.

  6. Start the server again. For example: java -Xmx1024M -Xms1024M -jar minecraft_server.1.8.9.jar nogui

    • You should see something like this:
            [Server thread/INFO]: Starting minecraft server version 1.8.9
            [Server thread/INFO]: Loading properties
            [Server thread/INFO]: Default game type: SURVIVAL
            [Server thread/INFO]: Generating keypair
            [Server thread/INFO]: Starting Minecraft server on *:25565
            .
            .
            .
            [Server thread/INFO]: Preparing level "world"
            [Server thread/INFO]: Preparing start region for level 0
            [Server thread/INFO]: Preparing spawn area: 7%
            [Server thread/INFO]: Preparing spawn area: 16%
            [Server thread/INFO]: Preparing spawn area: 31%
            [Server thread/INFO]: Preparing spawn area: 41%
            [Server thread/INFO]: Preparing spawn area: 56%
            [Server thread/INFO]: Preparing spawn area: 70%
            [Server thread/INFO]: Preparing spawn area: 88%
            [Server thread/INFO]: Done (8,170s)! For help, type "help" or "?"
    • Don't worry about errors at this step. They are mostly harmless and disappear after the first start of the server.
  7. Now it's time for testing the server. Launch your local Minecraft client. Click on Multiplayer and then on Add server. Setting the server address field to localhost . In the server name field you can enter whatever you want. Click on Done and connect to your local server by selecting it and clicking on Join server.

  8. Congratulations! You can now wander a bit through your new local world. On the server console you should see somethin like this:
    •       [User Authenticator #1/INFO]: UUID of player PixelPi is xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
            [Server thread/INFO]: PixelPi[/127.0.0.1:57593] logged in with entity id 96 at (56.5, 70.0, -421.5)
            [Server thread/INFO]: PixelPi joined the game
            [Server thread/INFO]: PixelPi lost connection: TextComponent{text='...
            [Server thread/INFO]: PixelPi left the game
    • When you're done, you can shut down the server with the command /stop on server console. Also it is no mistake to set the file ops.json to something like this:

    •         [
                {
                  "uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
                  "name": "your-ingame-name",
                  "level": 4,
                  "bypassesPlayerLimit": false
                }
              ]
      • So you have admin privileges at your own server. Your uuid you will find in server output or in the log files.

Enable RCON

Enabling the rcon interface of the server is easy. Open the file server.properties in your server directory and set enable-rcon=true and rcon.password=<your-password> where <your-password> is a passphrase specified by you.

Install Forge and OpenComputers

  1. Stop the server first, if it is running.
  2. Download the Forge-Installer http://files.minecraftforge.net/maven/net/minecraftforge/forge/index_1.8.9.html

  3. Check the SHA Hash. For the 1.8.9. it should be 664c7753882b210bab121dbaf559af6660b94f29:

    •        shasum forge-1.8.9-11.15.0.1705-installer.jar
  4. Copy or move the Forge-Installer from the download directory to your server directory and type
    •        java -jar forge-1.8.9-11.15.0.1705-installer.jar --installServer
  5. Start the Forge Minecraft-Server for the first time:
    •        java -Xmx1024M -Xms1024M -jar forge-1.8.9-11.15.0.1705-universal.jar nogui
  6. Stop it bei typing /stop on the server console.

  7. Download the mod, for example OpenComputers-MC1.8.9-1.5.21.1.jar:

    •       http://minecraft.curseforge.com/projects/opencomputers/files/2273126/download
  8. Use shasum again to check the hash of the file:

    •         shasum OpenComputers-MC1.8.9-1.5.21.1.jar
              f3df2eccf57ad66ffec522e403c83849131d21c7  OpenComputers-MC1.8.9-1.5.21.1.jar
  9. Copy or move OpenComputers-MC1.8.9-1.5.21.1.jar from the download directory to the mod Directory within the directory of your server.

  10. Start the Forge Minecraft-Server again. See above.

2021-06-02 14:59