Move world generation outside the engine and into mods and data files

This commit is contained in:
2026-10-11 00:33:59 -03:00
parent afe6e03d4c
commit 3d2b235f64
118 changed files with 8250 additions and 1108 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ Deno.test("every column the overworld generates has a biome with grass, foliage
const block_ids: Record<string, number> = {};
blocks.forEach((b, nid) => block_ids[b.id] = nid);
for (const [x, z] of [[0, 0], [30, -12], [-80, 45]]) {
const { biomes } = generate_raw_chunk(x, z, game.world.seed, block_ids);
const { biomes } = generate_raw_chunk(x, z, game.world.seed, block_ids, game.world.worldgen);
assertEquals(biomes.length, CHUNK_AREA);
for (const biome of biomes) {
const { colors } = get_biome(biome)!;