williamcorsel / hassio-addons

My homeassistant addons
MIT License
12 stars 12 forks source link

Minecraft Java: Access Server Data #10

Open TechSaiyajin opened 12 months ago

TechSaiyajin commented 12 months ago

Hello and many thanks for the great addon.

Is it possible to define the location of the Minecraft world? It would be nice if I could copy existing worlds.

Have a nice day

williamcorsel commented 12 months ago

For the bedrock version, all worlds are located in the /addons/hamc-server-bedrock/data/worlds folder. You can copy other worlds into this folder. Then, you can select the level by name in the config options or the /addons/hamc-server-bedrock/data/server.properties file.

TechSaiyajin commented 12 months ago

Thank you very much for the quick answer,

but this is not the case with the Java version?

amzaldua commented 11 months ago

Where is stored the Java version files, please?

williamcorsel commented 11 months ago

The underlying docker container has places its data in the hardcoded /data folder (https://docker-minecraft-server.readthedocs.io/en/latest/data-directory/). This directory is private to the container filesystem and thus not accessible from the outside. You could try to access the container data by using the Portainer add-on

amzaldua commented 11 months ago

Okay, I got it. Thanks for your quick response. Would it be possible to change the data folder to, for example, /addons/hamc-server-java/data?

williamcorsel commented 11 months ago

Not easily. This feature should be implemented here: https://github.com/itzg/docker-minecraft-server