docker-compose.yaml:
services:
mc:
image: itzg/minecraft-server:latest
container_name: mc-fabric
restart: unless-stopped
ports:
- "0.0.0.0:25565:25565"
- "127.0.0.1:25575:25575"
environment:
EULA: "TRUE"
TYPE: "FABRIC"
VERSION: "1.21.10"
MEMORY: "22G"
USE_AIKAR_FLAGS: "true"
ENABLE_ROLLING_LOGS: "true"
TZ: "Etc/UTC"
volumes:
- ./server-data:/data:ZCopy in mods and config dir from exported prism bundle or whatever mods are needed.
Start and stop server to create default configs.
Edit server.properties to taste.
Key changes in config/DistantHorizons.toml:
distantGeneratorMode = "INTERNAL_SERVER" and probably playerBandwidthLimit = 0.
This will make pregen create the actual chunks as well as the LODs.
Nuke the world dir and start server.
Use DH's pregen on the server before players connect:
$ mcrcon # (or use /commands while in-game as op)
Logged in.
Type 'Q' or press Ctrl-D / Ctrl-C to disconnect.
>dh pregen start overworld 0 0 256
Starting pregen. Progress will be in the server console.
>dh pregen start the_nether 0 0 128
Starting pregen. Progress will be in the server console.
>dh pregen start the_end 0 0 128
Players can connect with default DH settings and it will stream the pregenerated LODs pretty quickly for a large view distance.