Curios and artifacts !

This commit is contained in:
2026-09-30 15:22:32 -03:00
parent 342b45d593
commit 3af5f6e54b
45 changed files with 729 additions and 43 deletions
+5 -5
View File
@@ -26,13 +26,13 @@ A mod is built from up to three layers. Most mods only need the first one or two
server and worldgen scripts), delivery to clients (hashed downloads, the confirm screen for other sites, credits), the
data layer (blocks, block models with variants, items, recipes including mods' own types, entities and entity models,
ores), server scripts (components, events, commands, timers, storage, recipes, containers, container screens, displayed
items), client scripts (item and recipe lookups, inventory overlays with `Graphics`), worldgen features and ores, the
base game's block behavior as a mod, and world time.
items), client scripts (item and recipe lookups, inventory overlays with `Graphics`), mod channels, worldgen features
and ores, the base game's block behavior as a mod, and world time.
The code is in `common/mod_loader.ts`, `common/mod_data.ts`, `common/mod_check.ts`, `common/bmod.ts`,
`server/game/mod_runtime.ts`, `server/load_bmods.ts`, `client/mods.ts` and `common/worldgen_loader.ts`.
**In the API types but throwing:** forms, custom screens, HUD elements, keybinds, mod channels, `g.slider`, `g.slots`,
**In the API types but throwing:** forms, custom screens, HUD elements, keybinds, `g.slider`, `g.slots`,
`register_terrain`.
**Not built at all:** common scripts, the registry freeze and hash, overrides, engine access.
@@ -315,8 +315,8 @@ manifest and its checks, and making the engine hookable where mods will want it.
client and a worldgen method, hooks on one method run in priority order, and a throwing hook is logged without breaking
the game.
**Phase 4: the rest of the Game API.** Mod channels, keybinds, forms, custom screens and HUD elements. More events:
items picked up and dropped, containers clicked, players moving between chunks, entities.
**Phase 4: the rest of the Game API.** Keybinds, forms, custom screens and HUD elements. More events: items picked up
and dropped, containers clicked, players moving between chunks, entities.
**Phase 5: gameplay out of the engine.** Everything marked phase 5 in the table above moves into `mods/bworld`. Mining
rules become something `mods/bworld` sets, with the engine asking it on both sides so clients still predict breaking.