Minecraft: Java Edition Server

Minecraft is one of the most popular online sandbox games ever created. With more than 170 million monthly active players, there is a lot to explore, design, and create in this 3D virtual world.

Software Included

Package Version License
Minecraft: Java Edition Server 1.20.1 Minecraft End User License Agreement

Creating an App using the Control Panel

Click the Deploy to DigitalOcean button to create a Droplet based on this 1-Click App. If you aren’t logged in, this link will prompt you to log in with your DigitalOcean account.

Deploy to DO

Creating an App using the API

In addition to creating a Droplet from the Minecraft: Java Edition Server 1-Click App using the control panel, you can also use the DigitalOcean API. As an example, to create a 4GB Minecraft: Java Edition Server Droplet in the SFO2 region, you can use the following curl command. You need to either save your API access token) to an environment variable or substitute it in the command below.

curl -X POST -H 'Content-Type: application/json' \
         -H 'Authorization: Bearer '$TOKEN'' -d \
        '{"name":"choose_a_name","region":"sfo2","size":"s-2vcpu-4gb","image": "sharklabs-minecraftjavaedi-18-04"}' \
        "https://api.digitalocean.com/v2/droplets"

Getting Started After Deploying Minecraft: Java Edition Server

Minecraft

It is recommended to use 4GB RAM and 2 Cores Premium Intel Droplet size for the best experience.

NOTE: After Minecraft Droplet was created it will start world generation which can take ~5 minutes depending on the Droplet size. If you are getting Timed out errors - make sure to give your server a minute.

After a few minutes passed after droplet creation, you can access your server and play with your friends:

  1. First copy the public ipv4 address from your newly created droplet from the DigitalOcean control panel (https://cloud.digitalocean.com/projects)
  2. Then start the Minecraft application, click “Play” and then “Multiplayer”
  3. Then click “Add Server”
  4. Then paste the IP address of the Droplet into the Server Address field and then “Done” to save
  5. Finally, click “Join Server” and enjoy!

How to promote a user to an admin (Minecraft operator)

There are many reasons to have admin privileges, especially if you are sharing your Minecraft server publicly, next steps will show how to promote a player to an admin:

Login into your droplet via cloud console or SSH:

$ ssh <your Minecraft Droplet IP>

Switch to a minecraft user:

$ su - minecraft -s /bin/bash

Now, use screen to run a command on a Minecraft server terminal:

$ screen -p 0 -S minecraft -X eval 'stuff "op <user nickname>"\\015'

Make sure to change &amp;amp;amp;lt;user nickname&amp;amp;amp;gt; to a username that needs to become an admin.

Done! Now &amp;amp;amp;lt;user nickname can use admin commands on the server itself.

About Minecraft Droplet 1-Click

  • Minecraft Server version is 1.20.1.
  • Minecraft Server is installed under /opt/minecraft.
  • Minecraft Server runs on a systemd service. Read MOTD (message on the SSH) to find the name of the service.
  • Minecraft Server uses 75% of Droplet’s RAM.
  • On shutdown, Minecraft service will save the game world.

Minecraft is a trademark of Mojang Synergies AB and Microsoft Corporation, and we refer to the name for referential purposes only and not to indicate any sponsorship, endorsement or affiliation between these companies and DigitalOcean. We offer this one-click app for your convenience, but you are solely responsible for creating, using, and maintaining your server in accordance with all applicable terms and conditions. More information about setting up your server and applicable terms can be found here: https://www.minecraft.net/en-us/download/server.