Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game will only start in survival #374

Open
Phil-T1 opened this issue Nov 21, 2023 · 2 comments
Open

Game will only start in survival #374

Phil-T1 opened this issue Nov 21, 2023 · 2 comments

Comments

@Phil-T1
Copy link

Phil-T1 commented Nov 21, 2023

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.

@itzg
Copy link
Owner

itzg commented Nov 21, 2023

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.

@Phil-T1
Copy link
Author

Phil-T1 commented Nov 30, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants