Mod config

This commit is contained in:
2026-10-14 14:14:52 -03:00
parent d7f1b91c0a
commit cedc7725b5
20 changed files with 371 additions and 32 deletions
+4
View File
@@ -12,6 +12,10 @@ export type { EventSignal, Face, Id, ItemStack, ModInfo, Position, Season, TagAp
export interface ServerContext {
mod: ModInfo;
// the mod's settings: its config.json's "config", with the server's changes from config/<mod id>.json. the same
// for the whole time the server runs. see docs/modding/misc/config.md
// deno-lint-ignore no-explicit-any
readonly config: any;
components: ComponentRegistry; // only during setup
commands: CommandRegistry; // only during setup
events: { before: ServerBeforeEvents; after: ServerAfterEvents };