Add natural mob spawning for rotwalker

This commit is contained in:
2026-09-30 22:15:42 -03:00
parent 0052faa24d
commit a6fd508529
22 changed files with 714 additions and 7 deletions
+5
View File
@@ -14,6 +14,7 @@ import {
ModRecipeJson,
OreJson,
RecipeJson,
SpawnJson,
TagJson,
TagRegistry,
} from "./mod_data.ts";
@@ -29,6 +30,8 @@ export interface ModData {
items: ItemJson[];
recipes: RecipeJson[];
ores: OreJson[];
// natural spawns, see SpawnJson
spawns: SpawnJson[];
entities: EntityJson[];
entity_models: EntityModelJson[];
// tag files, see common/tags.ts
@@ -57,6 +60,7 @@ export class RecipeBook {
// every recipe as its json, in load order, for recipe viewers
all: RecipeJson[] = [];
ores: OreJson[] = [];
spawns: SpawnJson[] = [];
}
export class ModLoadError extends Error {
@@ -150,6 +154,7 @@ export function register_mod_data(mods: { id: string; data: ModData }[]): Recipe
}
}
recipes.ores.push(...data.ores);
recipes.spawns.push(...data.spawns);
}
return recipes;