Seasons based on a calendar
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# Biomes
|
||||
|
||||
A biome says what the ground looks like where it's picked: the blocks on top, the colors grass, leaves and water are
|
||||
tinted, which trees grow, and its season. Biomes are data, one file each in a mod's `worldgen/biomes/` folder. The base
|
||||
game's are in `mods/bworld/worldgen/biomes/`.
|
||||
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
|
||||
@@ -41,7 +41,7 @@ game's are in `mods/bworld/worldgen/biomes/`.
|
||||
| Field | What it does | When not set |
|
||||
| --------------------------- | ---------------------------------------------------------------------------------------- | ------------ |
|
||||
| `id` | in your mod's namespace | required |
|
||||
| `season` | `spring`, `summer`, `autumn` or `winter`, see [Seasons](#seasons) | `spring` |
|
||||
| `season` | `spring`, `summer`, `autumn` or `winter`, always, see [Seasons](#seasons) | the calendar |
|
||||
| `surface.top` | the block on top of the ground | required |
|
||||
| `surface.filler` | the blocks under it | required |
|
||||
| `surface.filler_depth` | how many blocks of filler, 0 to 32. Stone is below | required |
|
||||
@@ -73,7 +73,12 @@ Biome ids are what features' `biome_at` gives and what spawns list. The base gam
|
||||
|
||||
## Seasons
|
||||
|
||||
A biome's season is fixed by its json, it doesn't change over the year. Scripts read it where something is:
|
||||
Seasons follow the calendar, 49 days each: days 1 to 49 are spring, 50 to 98 summer, 99 to 147 autumn and 148 to 196
|
||||
winter, then it's spring again. Seasons change at 06:00, when `ctx.world.day` and the clock's day go up, so the first
|
||||
spring is `ctx.world.day` 0 to 48. A biome that sets `season` is always in it instead, like winter in `snowy_plains` and
|
||||
summer in `desert`.
|
||||
|
||||
Scripts read the season where something is:
|
||||
|
||||
| Where | Biome | Season |
|
||||
| ------------------------------------------------ | -------------------------- | --------------------------- |
|
||||
|
||||
Reference in New Issue
Block a user