Rename engine to cubi

This commit is contained in:
2026-11-03 17:17:37 -03:00
parent 68b78f053a
commit 98fa45ebd1
109 changed files with 643 additions and 788 deletions
+3 -3
View File
@@ -32,7 +32,7 @@ async function setup(roof = "bworld:stone") {
for (let x = x0; x < x0 + CHUNK_SIZE; x++) {
for (let z = x0; z < x0 + CHUNK_SIZE; z++) {
for (let y = 0; y < FLOOR; y++) world.set_block(x, y, z, "bworld:stone");
for (let y = ROOF + 1; y < CHUNK_HEIGHT; y++) world.set_block(x, y, z, "bworld:air");
for (let y = ROOF + 1; y < CHUNK_HEIGHT; y++) world.set_block(x, y, z, "cubi:air");
}
}
for (let x = x0 - 1; x <= x0 + CHUNK_SIZE; x++) {
@@ -40,7 +40,7 @@ async function setup(roof = "bworld:stone") {
const wall = x < x0 || z < x0 || x >= x0 + CHUNK_SIZE || z >= x0 + CHUNK_SIZE;
world.set_block(x, FLOOR, z, "bworld:stone");
world.set_block(x, ROOF, z, wall ? "bworld:stone" : roof);
for (let y = FLOOR + 1; y < ROOF; y++) world.set_block(x, y, z, wall ? "bworld:stone" : "bworld:air");
for (let y = FLOOR + 1; y < ROOF; y++) world.set_block(x, y, z, wall ? "bworld:stone" : "cubi:air");
}
}
// only the rotwalker, so what else the undergarden spawns doesn't change what can spawn here
@@ -76,7 +76,7 @@ function try_spawning(game: Awaited<ReturnType<typeof setup>>["game"], tries: nu
Deno.test("the server's light is the same as what clients work out", async () => {
const { world, x0 } = await setup();
world.set_block(x0 + 3, FLOOR + 1, x0 + 3, "bworld:light");
world.set_block(x0 + 12, ROOF, x0 + 12, "bworld:air");
world.set_block(x0 + 12, ROOF, x0 + 12, "cubi:air");
const blocks = EverythingRegistry.get_registry<BlockRegistry>("blocks");
const opacity = new Uint8Array(REGION_VOID + 1);