Rename engine to cubi
This commit is contained in:
@@ -75,7 +75,7 @@ Deno.test("a chest keeps items, shows them to everyone, and drops them when brok
|
||||
assertEquals(opened.open_data, { rows: 3 });
|
||||
assertEquals(opened.slots.length, 27 + 36);
|
||||
// nothing got placed on top
|
||||
assertEquals(t.game.world.get_block_id(1, 101, 0), "bworld:air");
|
||||
assertEquals(t.game.world.get_block_id(1, 101, 0), "cubi:air");
|
||||
|
||||
move_to_menu(t, opened, coal, 4);
|
||||
assertEquals(menu_items(t.take(1))[4], { id: "bworld:coal", count: 10 });
|
||||
@@ -213,7 +213,7 @@ Deno.test("bone meal grows wheat until it's fully grown", async () => {
|
||||
for (let i = 0; i < 7; i++) t.send(1, { type: "use_block", x: 1, y: 100, z: 0, face: "top" });
|
||||
assertEquals(age(), 7);
|
||||
assertEquals(container_items(t.take(1), "inventory")[slot]?.count, 1);
|
||||
assertEquals(t.game.world.get_block_id(1, 101, 0), "bworld:air");
|
||||
assertEquals(t.game.world.get_block_id(1, 101, 0), "cubi:air");
|
||||
});
|
||||
|
||||
Deno.test("the last bone meal is used up", async () => {
|
||||
@@ -247,7 +247,7 @@ Deno.test("items are called by their name, or by one made from their id", async
|
||||
assertEquals(display_name("bworld:iron_ingot"), "Iron Ingot");
|
||||
assertEquals(display_name("bworld:stone_pickaxe"), "Stone Pickaxe");
|
||||
assertEquals(display_name("bworld:hoed_dirt"), "Hoed Dirt");
|
||||
EverythingRegistry.register<ItemRegistry>("items", "test:thing", { texture_id: "engine:missing", name: "A Thing" });
|
||||
EverythingRegistry.register<ItemRegistry>("items", "test:thing", { texture_id: "cubi:missing", name: "A Thing" });
|
||||
assertEquals(display_name("test:thing"), "A Thing");
|
||||
});
|
||||
|
||||
@@ -410,7 +410,7 @@ Deno.test("a bucket picks up a water source but not flowing water, and a water b
|
||||
|
||||
t.send(1, { type: "use_block", x: 1, y: 100, z: 0, face: "top" });
|
||||
assertEquals(held(), "bworld:water_bucket");
|
||||
assertEquals(t.game.world.get_block_id(1, 100, 0), "bworld:air");
|
||||
assertEquals(t.game.world.get_block_id(1, 100, 0), "cubi:air");
|
||||
|
||||
t.send(1, { type: "use_block", x: -2, y: 99, z: 0, face: "top" });
|
||||
assertEquals(held(), "bworld:bucket");
|
||||
@@ -432,7 +432,7 @@ Deno.test("only an empty bucket picks up water, and from a stack the water bucke
|
||||
player.inventory.set_item(0, undefined);
|
||||
t.game.give(player, "bworld:bucket", 3);
|
||||
t.send(1, { type: "use_block", x: 1, y: 100, z: 0, face: "top" });
|
||||
assertEquals(t.game.world.get_block_id(1, 100, 0), "bworld:air");
|
||||
assertEquals(t.game.world.get_block_id(1, 100, 0), "cubi:air");
|
||||
assertEquals(slots(), [["bworld:bucket", 2], ["bworld:water_bucket", 1]]);
|
||||
});
|
||||
|
||||
@@ -443,7 +443,7 @@ Deno.test("a bucket picks up a lava source too, and a lava bucket puts one back"
|
||||
|
||||
t.send(1, { type: "use_block", x: 1, y: 100, z: 0, face: "top" });
|
||||
assertEquals(held(), "bworld:lava_bucket");
|
||||
assertEquals(t.game.world.get_block_id(1, 100, 0), "bworld:air");
|
||||
assertEquals(t.game.world.get_block_id(1, 100, 0), "cubi:air");
|
||||
|
||||
t.send(1, { type: "use_block", x: -2, y: 99, z: 0, face: "top" });
|
||||
assertEquals(held(), "bworld:bucket");
|
||||
|
||||
Reference in New Issue
Block a user