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
+4 -4
View File
@@ -7,9 +7,9 @@ install anything themselves.
The base game is a mod too: `mods/bworld` is written against the same API as any other mod, so anything it does, your
mod can do, and it's the best place to look for examples.
A mod is mostly data: JSON files for blocks, items, recipes and entities, and PNG textures. Behavior comes from
TypeScript scripts: a server script for game logic, a client script for what players see, and a worldgen script for
terrain features.
A mod is mostly data: JSON files for blocks, items, recipes and entities, and PNG textures. Behavior comes from one
TypeScript script, whose exports are its phases: `server` for game logic, `client` for what players see, and `worldgen`
for terrain features.
```sh
deno task new-mod copper_tools "Copper Tools" # a new mod in mods/copper_tools, from templates/mod
@@ -35,7 +35,7 @@ deno task build && deno task server # packs the mods and starts a se
- [Blocks](docs/modding/blocks/index.md): looks, mining, drops and placement
- [Block States](docs/modding/blocks/states.md): state bits, variants and facing
- [Block Components](docs/modding/blocks/components.md): giving blocks behavior from a server script
- [Block Components](docs/modding/blocks/components.md): giving blocks behavior from the server phase
- [Tile Data](docs/modding/blocks/tiledata.md): data kept for one block, the part clients see, and blocks that hold or
show items
- [Visuals](docs/modding/blocks/visuals.md): blocks drawn with code, like a shaft that turns or the items and fluid in a