From 78fd5457d4d0601e94985b696386b9564f105c78 Mon Sep 17 00:00:00 2001 From: Kezzer <57171715+ItsKezzer@users.noreply.github.com> Date: Fri, 27 Oct 2023 17:24:43 +0200 Subject: [PATCH] (server-properties): - Add YAML multiline to render `GENERATOR_SETTINGS` code more readable - Remove JSON code block above as it is now unnecessary --- docs/configuration/server-properties.md | 42 ++++++++++++------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/docs/configuration/server-properties.md b/docs/configuration/server-properties.md index f29ff748..ba2de8e4 100644 --- a/docs/configuration/server-properties.md +++ b/docs/configuration/server-properties.md @@ -318,30 +318,28 @@ Example for a superflat world: - 15x sandstone - Desert biome -```json -{ - "layers": [ - { - "block": "minecraft:bedrock", - "height": 1 - }, - { - "block": "minecraft:stone", - "height": 2 - }, - { - "block": "minecraft:sandstone", - "height": 3 - } - ], - "biome": "minecraft:desert" -} -``` - -In a docker compose, it would like like the following: ```yaml LEVEL_TYPE: FLAT -GENERATOR_SETTINGS: '{"layers": [{"block": "minecraft:bedrock","height": 1},{"block": "minecraft:stone","height": 2},{"block": "minecraft:sandstone","height": 3}]},"biome": "minecraft:desert"}' +GENERATOR_SETTINGS: >-4 + { + "layers": [ + { + "block": "minecraft:bedrock", + "height": 1 + }, + { + "block": "minecraft:stone", + "height": 2 + }, + { + "block": "minecraft:sandstone", + "height": 15 + } + ], + "biome": "minecraft:desert" + } + + ``` For more details, check the [official wiki](https://minecraft.wiki/w/Java_Edition_level_format#generatorOptions_tag_format).