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

Game will only start in survival

Open Phil-T1 opened this issue 1 year ago • 2 comments

Hi,

It could be me as I don't know Minecraft, but it only seems to start in survival mode, where zombies attack and I take damage.

I want creative mode for my 4 year old kid. If it is me then can anybody see where I've gone wrong?

version: '3.4'

services:

  minecraft:
    image: itzg/minecraft-bedrock-server
    container_name: minecraft
    restart: unless-stopped
    environment:
      TZ: Europe/London
      VERSION: LATEST
      SERVER_NAME: Minecraft World
      EULA: "TRUE"
      GAMEMODE: creative
      DIFFICULTY: easy
    ports:
        - 19132:19132/udp
    stdin_open: true
    tty: true
    volumes:
      - ./data:/data

Thanks in advance!

Phil.

Phil-T1 avatar Nov 21 '23 18:11 Phil-T1

I'll have to test this out myself, but I believe some of the settings like game mode are baked into the world data until a server command is used to change that. One option to try is stopping the container, deleting the world data, and letting it regenerate with the GAMEMODE in place.

itzg avatar Nov 21 '23 19:11 itzg

Hi Geoff,

Thanks for the speedy reply and apologies for my slow one!

Stopping the container, deleting the world file and starting it again did the job.

Thanks again, very much appreciated!

Phil.

Phil-T1 avatar Nov 30 '23 19:11 Phil-T1