Move farmers delight to bworld

This commit is contained in:
2026-11-01 00:49:05 -03:00
parent 4a713a85d1
commit 61693d611a
161 changed files with 403 additions and 466 deletions
+3 -3
View File
@@ -80,7 +80,7 @@ Deno.test("water flows out of a waterlogged fence, which never drains, and break
});
Deno.test("rice is only planted in a water source, holds it, and leaves it behind when broken", async () => {
const t = await setup([["farmersdelight:rice", 1]]);
const t = await setup([["bworld:rice", 1]]);
for (const x of [-2, 2, 4]) t.game.set_block(x, 99, 0, "bworld:dirt");
t.game.set_block(2, 100, 0, "bworld:water");
// not in flowing water, or out of water
@@ -91,8 +91,8 @@ Deno.test("rice is only planted in a water source, holds it, and leaves it behin
assertEquals(t.game.world.get_block_id(4, 100, 0), "bworld: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), "farmersdelight:rice");
const rice = EverythingRegistry.get<BlockRegistry>("blocks", "farmersdelight:rice")!;
assertEquals(t.game.world.get_block_id(2, 100, 0), "bworld:rice");
const rice = EverythingRegistry.get<BlockRegistry>("blocks", "bworld:rice")!;
assertEquals(get_state_value(t.game.world.get_block_value(2, 100, 0), rice, "waterlogged"), 1);
assert(t.game.entities.is_fluid(2, 100, 0));