Update modding docs

This commit is contained in:
2026-09-29 23:29:14 -03:00
parent f0cf4e4eeb
commit 1ac7a5c943
50 changed files with 2672 additions and 1924 deletions
+4 -10
View File
@@ -1,13 +1,7 @@
# bworld
The base game as a mod, following "The base game as a mod" in `MODS.md`. The game loads its blocks, items, recipes and
textures from here, the same way it loads any other mod.
The base game as a mod. The game loads its blocks, items, entities, recipes and textures from here, and its block and
item behavior from `scripts/server.ts`, the same way it loads any other mod.
Still built into the engine, by phase:
| Phase | What |
| ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 2 | Block behavior in `server/game/blocks.ts` (hoeing, chest, furnace) and the watering can's starting water. They become the `bworld:hoeable`, `bworld:storage`, `bworld:furnace` and `bworld:watering_can` components. |
| 3 | Terrain, biomes, trees and ores in `common/generation.ts`. |
`bworld:stick` has no texture yet, so sticks show as missing.
Some of the base game is still built into the engine: recipe types, the inventory screen and crafting grid, the HUD,
`/give` and `/time`, mining rules, and terrain generation. See "The Engine and the Base Game" in `docs/modding_plan.md`.
+1 -1
View File
@@ -305,7 +305,7 @@ interface CropDrops {
}
// a crop, like a fabric CropBlock: its "age" state is its stage, and it grows one day every morning its farmland was
// watered the day before. see "Crops" in MODS.md
// watered the day before. see docs/modding/blocks/crops.md
interface CropParams {
// watered mornings from planting to fully grown
days: number;