World shape for dimension
This commit is contained in:
@@ -25,7 +25,8 @@ Each chunk goes through three passes:
|
||||
2. **Ores.** Every mod's `worldgen/ores.json`, in load order, the base game's first.
|
||||
3. **Features.** Every mod's features, code and data, by step and then load order, see [Order](#order).
|
||||
|
||||
The world is 256 blocks tall and the sea is at y 64.
|
||||
How tall the world is is up to its [dimension](terrain.md#height): the base game's goes from y 0 to 255, and its sea is
|
||||
at y 64.
|
||||
|
||||
## Ores
|
||||
|
||||
@@ -99,6 +100,8 @@ interface FeatureChunk {
|
||||
readonly x: number; // chunk coordinates. blocks are chunk.x * 16 to chunk.x * 16 + 15
|
||||
readonly z: number;
|
||||
readonly seed: string;
|
||||
readonly min_y: number; // the dimension's blocks go from min_y up to max_y - 1
|
||||
readonly max_y: number;
|
||||
readonly rng: { next(): number }; // 0 to 1
|
||||
random(name: string): { next(): number }; // seeded from the world's seed and name, the same in every chunk
|
||||
noise_2d(name: string): (x: number, z: number) => number;
|
||||
@@ -175,7 +178,8 @@ Built in names work with or without `minecraft:`.
|
||||
`not`, `all_of`, `any_of` and `true`. Each takes an `offset`.
|
||||
- **Numbers** (int providers): a whole number, or `constant`, `uniform` (`min_inclusive`, `max_inclusive`) or
|
||||
`weighted_list` (`distribution` of `data` and `weight`).
|
||||
- **Heights:** `{ "absolute": y }`, `{ "above_bottom": n }` or `{ "below_top": n }`.
|
||||
- **Heights:** `{ "absolute": y }`, `{ "above_bottom": n }` (`min_y + n`) or `{ "below_top": n }` (`max_y - 1 - n`),
|
||||
from the dimension's height.
|
||||
- **Blocks** (`to_place`, `provider`, `state`): an id, or Minecraft's
|
||||
`{ "type": "simple_state_provider", "state": { "Name": id } }`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user