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
+2 -2
View File
@@ -29,7 +29,7 @@ export function setup(ctx: ServerContext) {
// hangs from the block above and falls when it's gone, which only a server handler can do
ctx.components.register_block("testmod:lantern", {
on_neighbor_change(block) {
if (ctx.world.get_block(block.x, block.y + 1, block.z) === "bworld:air") {
if (ctx.world.get_block(block.x, block.y + 1, block.z) === "cubi:air") {
ctx.world.break_block(block.x, block.y, block.z);
}
},
@@ -196,7 +196,7 @@ Deno.test("a script can tell any block of a change, and one told in on_break hea
// right away, when nothing else is changing
command("/tell 2 100 0 2 100 5");
assertEquals(log(), [["neighbor", "2 100 0", "bworld:air", "2 100 5", 1]]);
assertEquals(log(), [["neighbor", "2 100 0", "cubi:air", "2 100 5", 1]]);
cleanup();
});