World sections
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user