Add natural mob spawning for rotwalker
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user