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
@@ -131,7 +131,7 @@ Deno.test("every morning a crab pot in water uses its bait to catch something, f
const column = (ocean: boolean) => {
for (let x = -2048; x <= 2048; x += 32) {
for (let z = -2048; z <= 2048; z += 32) {
if (tags.has("biomes", "bworld:is_ocean", t.game.world.biome_at(x, z)) === ocean) return [x, z];
if (tags.has("biomes", "bworld:is_ocean", t.game.world.biome_at(x, 64, z)) === ocean) return [x, z];
}
}
throw new Error("no such column near spawn");