Add the oak_ on the oak blocks

This commit is contained in:
2026-10-03 18:56:44 -03:00
parent 41fa75e864
commit cb7d655f0c
26 changed files with 40 additions and 44 deletions
+2 -4
View File
@@ -73,11 +73,9 @@ export function generate_raw_chunk(
const nid = block_ids[name];
return nid === undefined ? AIR : default_values?.[nid] ?? nid;
};
// oak's are the plain bworld:log and bworld:leaves, the others are named after their wood
// each wood's are named after it, like bworld:oak_log
const wood_ids = (part: "log" | "leaves") =>
Object.fromEntries(
WOODS.map((wood) => [wood, id(wood === "oak" ? `bworld:${part}` : `bworld:${wood}_${part}`)]),
) as Record<Wood, number>;
Object.fromEntries(WOODS.map((wood) => [wood, id(`bworld:${wood}_${part}`)])) as Record<Wood, number>;
generate_overworld(blocks, heights, biomes, chunk_x, chunk_z, seed, {
stone: id("bworld:stone"),
dirt: id("bworld:dirt"),