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
+4 -4
View File
@@ -86,8 +86,8 @@ Deno.test("/summon spawns a mod's entity where the player is", async () => {
// animals don't despawn
assertEquals(chicken.remove_when_far_away(1000), false);
send(1, { type: "chat", text: "/summon bworld:item" });
assertStringIncludes(take(1).find((m) => m.type === "chat").text, "There's no entity bworld:item");
send(1, { type: "chat", text: "/summon cubi:item" });
assertStringIncludes(take(1).find((m) => m.type === "chat").text, "There's no entity cubi:item");
});
Deno.test("solid blocks can't be placed where a mob or player is", async () => {
@@ -104,7 +104,7 @@ Deno.test("solid blocks can't be placed where a mob or player is", async () => {
chicken.set_position(2.1, 101, 1.5);
game.entities.add_entity(chicken);
send(1, { type: "use_block", x: 1, y: 100, z: 1, face: "top" });
assertEquals(game.world.get_block_id(1, 101, 1), "bworld:air");
assertEquals(game.world.get_block_id(1, 101, 1), "cubi:air");
chicken.set_position(2.5, 101, 1.5);
send(1, { type: "use_block", x: 1, y: 100, z: 1, face: "top" });
@@ -113,5 +113,5 @@ Deno.test("solid blocks can't be placed where a mob or player is", async () => {
// nor where a player is, the one placing it included
game.set_block(3, 100, 3, "bworld:stone");
send(1, { type: "use_block", x: 3, y: 100, z: 3, face: "top" });
assertEquals(game.world.get_block_id(3, 101, 3), "bworld:air");
assertEquals(game.world.get_block_id(3, 101, 3), "cubi:air");
});