docker-minecraft-bedrock-server icon indicating copy to clipboard operation
docker-minecraft-bedrock-server copied to clipboard

Recommendation on how to handle importing a world.

Open chaoscode opened this issue 3 years ago • 2 comments

Discussed in https://github.com/itzg/docker-minecraft-bedrock-server/discussions/260

Originally posted by chaoscode July 2, 2022 I am attempting to move off a VM to this docker image for my daughters mc servers. The issue I am running into is important her world levels into the docker and have it be priested. I was thinking about forking the docker but I wanted to use your image to stay up to date. priested volumes don't help because I can not tell the game where the worlds folder is located. What is the best way to handle this?

chaoscode avatar Jul 02 '22 17:07 chaoscode

also, every time the docker restarts the world is reset. How do you make the world levels priest?

chaoscode avatar Jul 02 '22 17:07 chaoscode

So I wanna share how I solved this with everyone as I was doing this in TrueNAS Scale and I figured out how to make it work. This took me hours to nail down.

1: Create a new dataset called like "minecraft-bedrock-servername" 2: Copy world directories to the new dataset "minecraft-bedrock-servername" 2: create a defined volumn for the docker: a: Host Path = "/mnt/PoolName/minecraft-bedrock-servername" b: Mount Path = "data/worlds" 3: Add Server Container Environment Variable a: Environment Variable Name = "LEVEL_NAME" b: Environment Variable Value = "levelname"

Start the Application in TrueNAS Scale.

chaoscode avatar Jul 02 '22 17:07 chaoscode