mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
<doc>(server-properties):
- Add YAML multiline to render `GENERATOR_SETTINGS` code more readable - Remove JSON code block above as it is now unnecessary
This commit is contained in:
parent
2e07ba431d
commit
78fd5457d4
@ -318,30 +318,28 @@ Example for a superflat world:
|
|||||||
- 15x sandstone
|
- 15x sandstone
|
||||||
- Desert biome
|
- 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
|
```yaml
|
||||||
LEVEL_TYPE: FLAT
|
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).
|
For more details, check the [official wiki](https://minecraft.wiki/w/Java_Edition_level_format#generatorOptions_tag_format).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user