World sections

This commit is contained in:
2026-11-06 23:13:34 -03:00
parent 818ce22dd6
commit 1fa47c027d
21 changed files with 392 additions and 127 deletions
+2 -1
View File
@@ -104,7 +104,8 @@ Deno.test("data features use types and modifiers scripts register, scripts place
const glass = block_ids["bworld:glass"];
const cobble = block_ids["bworld:cobblestone"];
for (const [cx, cz] of [[0, 0], [3, -2]]) {
const { blocks } = generate_raw_chunk(cx, cz, game.world.seed, block_ids, worldgen, default_values);
const raw = generate_raw_chunk(cx, cz, game.world.seed, block_ids, worldgen, default_values);
const blocks = raw.column.to_flat();
// the pillar in the middle, which the code feature after it in its step saw
let pillar = 0;
for (let y = min_y; y < max_y; y++) if (at(blocks, 8, y, 8) === glass) pillar++;