Minecraft Server
- https://github.com/itzg/docker-minecraft-server
- https://feedback.minecraft.net/hc/en-us/sections/360001186971-Release-Changelogs
docker-compose.yml
version: "3.9"services:minecraft:image: itzg/minecraft-serverports:- "${SERVER_PORT}:25565"environment:EULA: "TRUE"OVERRIDE_SERVER_PROPERTIES: 'false' # overwrite on every container start if trueTZ: ${TZ}TYPE: ${TYPE} # https://github.com/itzg/docker-minecraft-server#server-typesVERSION: ${VERSION} # https://feedback.minecraft.net/hc/en-us/sections/360001186971-Release-ChangelogsSERVER_NAME: ${SERVER_NAME}MOTD: ${MOTD}ENABLE_WHITELIST: ${ENABLE_WHITELIST}WHITELIST: ${WHITELIST}OPS: ${OPS}SPAWN_PROTECTION: ${SPAWN_PROTECTION}VIEW_DISTANCE: ${VIEW_DISTANCE}SEED: ${SEED}DIFFICULTY: ${DIFFICULTY}MODE: ${MODE}PVP: ${PVP}LEVEL_TYPE: ${LEVEL_TYPE}GENERATOR_SETTINGS: ${GENERATOR_SETTINGS}ONLINE_MODE: ${ONLINE_MODE}tty: truestdin_open: truerestart: unless-stoppedvolumes:- ./data:/data
.env
SERVER_PORT=0.0.0.0:25565TZ=Asia/TokyoTYPE=VANILLAVERSION=1.17.1SERVER_NAME=MyServerMOTD=A Vanilla Minecraft Server powered by DockerENABLE_WHITELIST=trueWHITELIST=user1,user2OPS=user1SPAWN_PROTECTION=0VIEW_DISTANCE=SEED=DIFFICULTY=normalMODE=survivalPVP=trueLEVEL_TYPE=GENERATOR_SETTINGS=ONLINE_MODE=true
スーパーフラット
- https://github.com/itzg/docker-minecraft-server#level-type-and-generator-settings
- https://minecraft.fandom.com/wiki/Superflat
※ 1.17.1でうまく動きませんでした(常にデフォルトのフラットワールドが生成される)。 代わりに、クライアントでワールドを生成してからサーバにコピーする方法が使えます。
LEVEL_TYPE=flat# Overworld without structure# for <1.13# GENERATOR_SETTINGS=minecraft:bedrock,59*minecraft:stone,3*minecraft:dirt,minecraft:grass_block;minecraft:plains# for 1.13+GENERATOR_SETTINGS={"biome":"minecraft:plains","lakes":false,"features":false,"layers":[{"block":"minecraft:bedrock","height":1},{"block":"minecraft:stone","height":59},{"block":"minecraft:dirt","height":3},{"block":"minecraft:grass_block","height":1}],"structures":{"structures":{}}}
- JSON生成: https://misode.github.io/world/
# https://misode.github.io/world/ で生成したjsonをsuperflat.jsonとして保存jq -c '.dimensions."minecraft:overworld".generator.settings' superflat.json
その他
統合版(Bedrock Edition)からJava版サ ーバに接続するための非公式プロキシGeyserが公開されている。