Single module modding
This commit is contained in:
+11
-13
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user