Biome tags

This commit is contained in:
2026-10-11 12:13:07 -03:00
parent 1623b91ddf
commit fa969e0a96
12 changed files with 79 additions and 14 deletions
+14
View File
@@ -71,6 +71,20 @@ Biome ids are what features' `biome_at` gives and what spawns list. The base gam
`/locatebiome <id>` finds the nearest one.
## Biome Tags
Biomes have [tags](../resources/tags.md) too, in `tags/biomes/`. The base game's are like Minecraft's:
| Tag | Biomes |
| --------------------- | ----------------------------------------------------------------------------------------------- |
| `#bworld:is_ocean` | `ocean`, `deep_ocean`, `frozen_ocean`, `deep_frozen_ocean`, `warm_ocean`, `deep_lukewarm_ocean` |
| `#bworld:is_river` | `river`, `frozen_river` |
| `#bworld:is_mountain` | `meadow`, `frozen_peaks`, `jagged_peaks`, `stony_peaks`, `snowy_slopes` |
| `#bworld:is_forest` | `forest`, `dark_forest` |
A mod's biome joins one by adding itself to the tag's file, like `tags/biomes/bworld/is_forest.json`, and a script
checks a biome with `ctx.tags.has("biomes", "bworld:is_forest", ctx.world.biome_at(x, z))`.
## Seasons
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