Loading schematics
This commit is contained in:
@@ -45,6 +45,7 @@ import type { FeatureJson } from "./worldgen/features.ts";
|
||||
import { register_block_item } from "./utils.ts";
|
||||
import { find_model, type ModelFileJson, type ModelJson, resolve_models } from "./block_models.ts";
|
||||
import { loading_mod } from "./hooks.ts";
|
||||
import type { Schematic } from "./schematic.ts";
|
||||
|
||||
// everything a mod's json files hold, merged into one file by the build (build/mods/<id>/<hash>/data.json)
|
||||
export interface ModData {
|
||||
@@ -77,6 +78,8 @@ export interface ModData {
|
||||
dimensions?: DimensionJson[];
|
||||
// data features, see common/worldgen/features.ts. server only too
|
||||
features?: FeatureJson[];
|
||||
// its schematics/<name>.cbsm files, with their ids, see common/schematic.ts. server only too
|
||||
schematics?: Schematic[];
|
||||
// the mod's settings, its config.json's "config", with the server's changes once the server loads it. server only
|
||||
// too, see docs/modding/misc/config.md
|
||||
config?: Record<string, unknown>;
|
||||
|
||||
Reference in New Issue
Block a user