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
@@ -54,7 +54,7 @@ Deno.test("a water bucket fills a fence and a bucket empties it, the fence stays
assertEquals(waterlogged(t.game, 2, 100, 0), 1);
assertEquals(held(), "bworld:bucket");
// nothing went on top of it
assertEquals(t.game.world.get_block_id(2, 101, 0), "bworld:air");
assertEquals(t.game.world.get_block_id(2, 101, 0), "cubi:air");
t.send(1, { type: "use_block", x: 2, y: 100, z: 0, face: "top", hit: [0.5, 1, 0.5] });
assertEquals(held(), "bworld:water_bucket");
@@ -88,7 +88,7 @@ Deno.test("rice is only planted in a water source, holds it, and leaves it behin
t.send(1, { type: "use_block", x: -2, y: 100, z: 0, face: "top", hit: [0.5, 1, 0.5] });
assertEquals(t.game.world.get_block_id(-2, 100, 0), "bworld:water");
t.send(1, { type: "use_block", x: 4, y: 99, z: 0, face: "top", hit: [0.5, 1, 0.5] });
assertEquals(t.game.world.get_block_id(4, 100, 0), "bworld:air");
assertEquals(t.game.world.get_block_id(4, 100, 0), "cubi:air");
t.send(1, { type: "use_block", x: 2, y: 100, z: 0, face: "top", hit: [0.5, 1, 0.5] });
assertEquals(t.game.world.get_block_id(2, 100, 0), "bworld:rice");