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