Can You Upload a Map to a Hosted Minecraft Server

My oldest child recently got into Minecraft. While many of his peers play Bedrock Edition on an iPad or game panel, my son plays the venerable Java Edition on an former reckoner. (And he launches it from the terminal! 🤓) To play together, I looked into running a Dockerized Minecraft server on my dwelling server, and it was much easier than I expected.

Running a Dedicated Server

The official server distribution is a single Java jar, so information technology ought to be pretty unproblematic to run. Before trying it, though, I searched for Docker images, and found a good one: itzg/minecraft-server.

You can fire up the container with an individual docker run command and/or daemonize information technology. Simply, I've been keeping it simple with docker compose upwards in a byobu session.

Here'south my current docker-compose.yml file:

          # docker-compose.yml version: "iii.3"  services:   mc:     image: itzg/minecraft-server     ports:       - 25565:25565     environment:       EULA: "TRUE"        SERVER_NAME: "Our Minecraft Server"       MOTD: "First Peaceful Earth"        DIFFICULTY: "peaceful"        # https://github.com/itzg/docker-minecraft-server#memory-limit       MEMORY: 2G        # uncomment this to import a saved game. (put your savegame directory in the saves-to-import directory)       # WORLD: "/worlds/My-World"      volumes:       - ./minecraft-data:/data       - ./saves-to-import:/worlds:ro                  

At that place are a ton of bachelor configuration options, simply I'd like to highlight ii things above:

  • The game'south persistent data is written to a volume mounted to the host so nosotros can hands admission the files.
  • The "World" option is actually handy for importing a salve that was first created on another computer.

Connecting to the Server

Later a few seconds, the server is fix to have connections, but my clients don't seem to see information technology for some reason. Minecraft will sit on the "Scanning for games on your local network" screen forever. No matter, you can "Add Server" to add together information technology manually, and voila!

Web Map

Most of my Minecraft knowledge is about a decade out of appointment. All the same, I'yard aware that third-party tools can generate a web view of a Minecraft earth similar to those in Google Maps. After searching around, it seems similar Minecraft Overviewer is the prominent ane these days.

As before, this tool's installation looks pretty straightforward, but I plant a Docker image that's even easier. This one's a 1-shot process (not a persistent service), so we'll use docker run:

docker run -e MINECRAFT_VERSION="one.17" -v `pwd`/minecraft-data/world:/dwelling/minecraft/server/globe:ro -v `pwd`/overviewer-data:/home/minecraft/render/:rw mide/minecraft-overviewer:latest        

Given read-only admission to the game data produced by the other container, and some other volume to write to, this will produce a web map using Leaflet. The directory can then exist symlinked into a web-served directory on the host like /var/world wide web or ~/public_html for access from whatsoever spider web browser.

Information technology takes a few minutes to run, but the results are pretty spectacular:

Makefile

Lastly, as is my wont, I threw a few shortcuts in a Makefile for like shooting fish in a barrel access:

          # Makefile beginning:         sudo docker-etch upward  update:         sudo docker pull itzg/minecraft-server         sudo docker pull mide/minecraft-overviewer  generate-map:         time sudo docker run \                 -e MINECRAFT_VERSION="1.17" \                 -v `pwd`/minecraft-data/earth:/habitation/minecraft/server/globe:ro \                 -5 `pwd`/overviewer-data:/abode/minecraft/return/:rw \                 mide/minecraft-overviewer:latest                  

Reasons Y'all Might Want to Build a Dockerized Minecraft Server

A DIY dedicated server is probably unnecessary for near people. If you're just looking to play multiplayer locally and one of your machines is reasonably powerful, you can merely "Open up to LAN" from within the game. If you lot're looking to play with a larger group of folks exterior your household, you're probably better off with a paid hosted server. That could exist either the official "Realms" or ane of several third-party options.

Only if you like to DIY, and yous happen to already have a headless computer running 24/7 in your basement, and so a Dockerized Minecraft server is pretty neat!

For more on self-hosting, check out posts from my colleagues Jordan and Matt.

taylorfroustommer.blogspot.com

Source: https://spin.atomicobject.com/2021/07/21/host-minecraft-server-docker/

0 Response to "Can You Upload a Map to a Hosted Minecraft Server"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel