3D biomes
This commit is contained in:
@@ -31,7 +31,7 @@ Deno.test("cacti grow 1 to 3 tall on desert sand, 2 or 3 tries a chunk", async (
|
||||
// the bottom of each cactus
|
||||
if (at(x, y, z) !== cactus || at(x, y - 1, z) === cactus) continue;
|
||||
assertEquals(at(x, y - 1, z), sand, "on sand");
|
||||
assertEquals(chunk.column.biomes[z * CHUNK_SIZE + x], "bworld:desert");
|
||||
assertEquals(chunk.column.biome_at(x0 + x, y - 1, z0 + z), "bworld:desert");
|
||||
let height = 0;
|
||||
while (at(x, y + height, z) === cactus) height++;
|
||||
heights.push(height);
|
||||
|
||||
Reference in New Issue
Block a user