itzg / docker-minecraft-server

Docker image that provides a Minecraft Server that will automatically download selected version at startup
https://docker-minecraft-server.readthedocs.io/
Apache License 2.0
9.55k stars 1.55k forks source link

Simulation Distance variable -e flag #1065

Closed finndo77 closed 3 years ago

finndo77 commented 3 years ago

I have not been able to set the simulation distance in server.properties via -e SIMULATION_DISTANCE= or -e CFG_SIMULATION_DISTANCE=

is this something that you need to add? it is a parity add from bedrock, it is called TICK_DISTANCE on the minecraft-bedrock-server documentation.

this was added to java in snapshot 21w38a https://www.minecraft.net/en-us/article/minecraft-snapshot-21w38a

this is the startup script i am using if needed, everything is working except simulation distance (I put each entry on a separate line, because it was hard to read in the narrow columns on github)

#! /bin/bash
echo "starting up Snapshot server"

docker run -d
-e INIT_MEMORY=1G
-e MAX_MEMORY=4G
-e PVP=TRUE
-e SPAWN_PROTECTION=30
-e ENABLE_COMMAND_BLOCK=false
-e VIEW_DISTANCE=7
-e SIMULATION_DISTANCE=3
-e NETWORK_COMPRESSION_THRESHOLD=256
-e USE_AIKAR_FLAGS=true
-e LEVEL=snapshot2
-e DIFFICULTY=hard
-e SEED="-2446887223678575115"
-e EULA=TRUE
-e MAX_WORLD_SIZE=90000
-e PLAYER_IDLE_TIMEOUT=180
-e FORCE_GAMEMODE=TRUE
-e SERVER_NAME=snapshot2
-e VERSION=snapshot
-p 45578:25565
-e ENABLE_AUTOPAUSE=FALSE
-v /mnt/minecraft-1/snapshot2:/data
-v /etc/timezone:/etc/timezone:ro
--name mc-snapshot2
itzg/minecraft-server:java16 
exit
itzg commented 3 years ago

I know they added that in the latest snapshot and I can see it in the client settings, but I'm not yet finding a definitive confirmation of the server property. Can you point me to that?

anaxios commented 3 years ago

https://www.minecraft.net/en-us/article/minecraft-snapshot-21w38a "A new simulation-distance property in dedicated server properties."

I see "simulation-distance=10" in my server.properties using 21w39a.

itzg commented 3 years ago

Thanks! For some reason my eyes had skipped over that part of the article.

itzg commented 3 years ago

The latest image now maps that server property.

anaxios commented 3 years ago

Looks like it's working for me. I tried changing it a couple times with OVERRIDE_SERVER_PROPERTIES set to true and it works. Thanks for all the work you've put into this project!

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Please add a comment describing the reason to keep this issue open.