Move world generation outside the engine and into mods and data files
This commit is contained in:
@@ -4,10 +4,8 @@ A biome says what the ground looks like where it's picked: the blocks on top, th
|
||||
tinted, which trees grow, and whether it has a season of its own. Biomes are data, one file each in a mod's
|
||||
`worldgen/biomes/` folder. The base game's are in `mods/bworld/worldgen/biomes/`.
|
||||
|
||||
> [!NOTE]
|
||||
> Which biome a column gets is still decided by the engine (`pick_biome` in `common/worldgen/overworld.ts`), from the
|
||||
> column's climate and height. It only picks the base game's biomes, so a biome a mod adds doesn't generate anywhere
|
||||
> yet. Mods can still list it in their spawns.
|
||||
Which biome a column gets is up to the generator's biome rules, from the column's climate and height. A mod's biome
|
||||
generates where a rule it adds puts it, see [Adding Biomes](terrain.md#adding-biomes).
|
||||
|
||||
## A Biome
|
||||
|
||||
@@ -56,7 +54,9 @@ tinted, which trees grow, and whether it has a season of its own. Biomes are dat
|
||||
| `trees.wood` | the logs and leaves a kind grows here when it isn't its own, like dark oak for `big_oak` | |
|
||||
|
||||
Tree kinds are `oak`, `big_oak`, `birch`, `spruce`, `jungle`, `acacia` and `cherry`. Woods are `oak`, `spruce`, `birch`,
|
||||
`jungle`, `acacia`, `dark_oak` and `cherry`. Trees only grow on grass, dirt or snow with air above.
|
||||
`jungle`, `acacia`, `dark_oak` and `cherry`. Trees only grow on grass, dirt or snow with air above. They're the base
|
||||
game's trees feature (`mods/bworld/scripts/trees.ts`), which reads every biome's `trees`. It checks the kinds and woods
|
||||
when the server starts, so `check-mods` doesn't.
|
||||
|
||||
Above the snow line, around y 176, the top block is snow whatever the biome says.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user