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
+1 -1
View File
@@ -163,7 +163,7 @@ Deno.test("a fish with biomes is only caught in them, by id or #tag", async () =
const find = (matches: (biome: string) => boolean) => {
for (let x = -4096; x <= 4096; x += 64) {
for (let z = -4096; z <= 4096; z += 64) {
const biome = t.game.world.biome_at(x, z);
const biome = t.game.world.biome_at(x, 64, z);
const season = biome_season(biome, t.game.world.time);
if (matches(biome) && (season === "summer" || season === "winter")) return { x, y: 64, z };
}