Single module modding

This commit is contained in:
2026-11-14 12:18:41 -03:00
parent 605008f584
commit 313098892e
134 changed files with 919 additions and 924 deletions
+11 -13
View File
@@ -4,20 +4,18 @@ A bworld mod. `MODS.md` at the root of the bworld repo links to the modding docs
## Files
| Path | What it's for |
| --------------------- | ------------------------------------------------------------------------------------ |
| `manifest.json` | The mod's id, name, version, dependencies and scripts. |
| `blocks/*.json` | One block per file. Blocks get an item form with the same id unless `"item": false`. |
| `items/*.json` | Items that aren't a block's item form. |
| `recipes/*.json` | `shaped` crafting, `furnace` smelting and `fuel`. |
| `textures/*.png` | 16×16 textures, named `example_mod:<file name>`. |
| `worldgen/ores.json` | Ores to generate (optional, not included here). |
| `scripts/server.ts` | Game logic: block components, commands, events. Never sent to players. |
| `scripts/client.ts` | Sent to players: menu screens, screens, HUD, keybinds. |
| `scripts/worldgen.ts` | Terrain features. Runs on the server and every client and must be deterministic. |
| `CREDITS.md` | Licenses and thanks, shown on the About page. |
| Path | What it's for |
| -------------------- | ----------------------------------------------------------------------------------------------------------- |
| `manifest.json` | The mod's id, name, version, dependencies and script. |
| `blocks/*.json` | One block per file. Blocks get an item form with the same id unless `"item": false`. |
| `items/*.json` | Items that aren't a block's item form. |
| `recipes/*.json` | `shaped` crafting, `furnace` smelting and `fuel`. |
| `textures/*.png` | 16×16 textures, named `example_mod:<file name>`. |
| `worldgen/ores.json` | Ores to generate (optional, not included here). |
| `scripts/main.ts` | Its exports are phases: `server` for game logic, `client` for screens and the HUD, `worldgen` for features. |
| `CREDITS.md` | Licenses and thanks, shown on the About page. |
Delete what you don't use, including its entry in `manifest.json`.
Delete what you don't use. A phase you don't need is an export you leave out.
## Checking it