World shape for dimension

This commit is contained in:
2026-11-06 22:49:43 -03:00
parent 7458a2d42a
commit 818ce22dd6
60 changed files with 749 additions and 349 deletions
+4
View File
@@ -54,6 +54,10 @@ export interface FeatureChunk {
readonly x: number;
readonly z: number;
readonly seed: string;
// the dimension's blocks go from min_y up to max_y - 1, get_block is undefined outside them and set_block does
// nothing
readonly min_y: number;
readonly max_y: number;
// seeded from the seed, chunk and feature id
readonly rng: { next(): number };
// seeded from the seed and name alone, the same in every chunk. for things decided across chunks, like trees