3D biomes
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user