Rename glass block

This commit is contained in:
2026-11-03 15:43:18 -03:00
parent c3394f69b6
commit 68b78f053a
25 changed files with 285 additions and 285 deletions
+3 -3
View File
@@ -46,7 +46,7 @@ function move_to_menu(t: Game, menu: Msg, from: number, to: number) {
Deno.test("a hoe turns grass and dirt into hoed dirt, anything else places nothing", async () => {
const t = await setup([["bworld:wood_hoe", 1]]);
t.game.set_block(1, 100, 0, "bworld:grass");
t.game.set_block(1, 100, 0, "bworld:grass_block");
t.game.set_block(2, 100, 0, "bworld:dirt");
t.send(1, { type: "select_slot", slot: slot_of(t.take(1), "bworld:wood_hoe") });
@@ -58,10 +58,10 @@ Deno.test("a hoe turns grass and dirt into hoed dirt, anything else places nothi
// hoed dirt stays hoed dirt, and the hand doesn't do it
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:hoed_dirt");
t.game.set_block(1, 100, 1, "bworld:grass");
t.game.set_block(1, 100, 1, "bworld:grass_block");
t.send(1, { type: "select_slot", slot: 8 });
t.send(1, { type: "use_block", x: 1, y: 100, z: 1, face: "top" });
assertEquals(t.game.world.get_block_id(1, 100, 1), "bworld:grass");
assertEquals(t.game.world.get_block_id(1, 100, 1), "bworld:grass_block");
});
Deno.test("a chest keeps items, shows them to everyone, and drops them when broken", async () => {