3D biomes

This commit is contained in:
2026-11-07 12:13:43 -03:00
parent b726ce9695
commit 22191d260c
53 changed files with 874 additions and 316 deletions
+2 -2
View File
@@ -205,7 +205,7 @@ Deno.test("/locatebiome says where the nearest biome of a kind is", async () =>
};
const answer = say("/locatebiome bworld:plains");
const [x, , z] = answer.match(/at (-?\d+) (-?\d+) (-?\d+)/)!.slice(1).map(Number);
assertEquals(game.world.estimate_biome(x, z).biome, "bworld:plains");
const [x, y, z] = answer.match(/at (-?\d+) (-?\d+) (-?\d+)/)!.slice(1).map(Number);
assertEquals(game.world.locate_biome("bworld:plains", x, z), y);
assert(say("/locatebiome bworld:nowhere").includes("There's no biome bworld:nowhere"));
});