Rotbeast and muncher

This commit is contained in:
2026-09-30 22:45:06 -03:00
parent a6fd508529
commit 6fb7a423cb
9 changed files with 519 additions and 1 deletions
+3
View File
@@ -12,6 +12,7 @@ import {
import { LightRegion, REGION_LAYER, REGION_SIZE, REGION_VOID } from "$/client/workers/lighting.ts";
import { create_entity } from "$/server/game/entity/entity_types.ts";
import { Mob } from "$/server/game/entity/mob.ts";
import { NaturalSpawner } from "$/server/game/natural_spawner.ts";
import { test_game } from "./helpers.ts";
// chunk 6, 6: a closed stone room with its floor at y 60 and its roof at y 64, and alice standing 40 blocks away
@@ -31,6 +32,8 @@ async function setup(roof = "bworld:stone") {
for (let y = FLOOR + 1; y < ROOF; y++) world.set_block(x, y, z, wall ? "bworld:stone" : "bworld:air");
}
}
// only the rotwalker, so what else the undergarden spawns doesn't change what can spawn here
t.game.spawner = new NaturalSpawner(t.game.spawner.spawns.filter((s) => s.entity === "undergarden:rotwalker"));
t.join(1, "alice");
const alice = t.game.players()[0];
world.set_block(x0 + 48, FLOOR, x0 + 8, "bworld:stone");