Loading schematics

This commit is contained in:
2026-11-15 19:54:08 -03:00
parent 6bb2c87373
commit 0564275f58
15 changed files with 142 additions and 17 deletions
+3
View File
@@ -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>;