Rename engine to cubi
This commit is contained in:
@@ -18,7 +18,7 @@ async function setup() {
|
||||
for (let x = -3; x <= 3; x++) {
|
||||
for (let z = -3; z <= 3; z++) {
|
||||
t.game.set_block(x, 99, z, "bworld:stone");
|
||||
for (let y = 100; y < 103; y++) t.game.set_block(x, y, z, "bworld:air");
|
||||
for (let y = 100; y < 103; y++) t.game.set_block(x, y, z, "cubi:air");
|
||||
}
|
||||
}
|
||||
t.send(1, { type: "move", x: 0.5, y: 100, z: 3.5, yaw: 0, pitch: 0 });
|
||||
@@ -66,7 +66,7 @@ Deno.test("right clicking a trapdoor opens and closes it, and what it's shaped l
|
||||
assertEquals(shape(), [[0, 0, 0, 1, 1, 3 / 16]]);
|
||||
assertEquals(collision_shape_at(info, t.game.world.get_block_value(0, 100, 0)), shape());
|
||||
// still one trapdoor in the world, none placed on top of it
|
||||
assertEquals(t.game.world.get_block_id(0, 101, 0), "bworld:air");
|
||||
assertEquals(t.game.world.get_block_id(0, 101, 0), "cubi:air");
|
||||
|
||||
t.send(1, { type: "use_block", x: 0, y: 100, z: 0, face: "south", hit: [0.5, 0.5, 3 / 16] });
|
||||
assertEquals(states(0, 100, 0).open, 0);
|
||||
|
||||
Reference in New Issue
Block a user