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
+7 -7
View File
@@ -32,18 +32,18 @@ The server and every client load mods the same way, in the same order:
1. **Order.** Dependencies come before the mods that need them, and otherwise mods load alphabetically. Mods that depend
on each other in a circle are an error. The server sends its order to clients, and they follow it.
2. **Data**, one mod at a time: its block models, blocks (and their items), including the ones its
[content script](sides.md#content-scripts) registers, after its `blocks/` files, items, entity models, entities,
effects and fluids. Then every mod's [tags](../resources/tags.md), merged in load order, then each mod's recipes and
ores, which can use tags.
3. **Scripts.** Server scripts' `setup` runs on the server, and client scripts' on each client. Worldgen scripts'
`setup` runs on the server before it makes chunks.
[content phase](sides.md#content) registers, after its `blocks/` files, items, entity models, entities, effects and
fluids. Then every mod's [tags](../resources/tags.md), merged in load order, then each mod's recipes and ores, which
can use tags.
3. **Scripts.** Every mod's shared phase runs, then its server phase on the server and its client phase on each client.
The worldgen phase runs wherever the server makes chunks.
Scripts read the registries but can't add to them. Content comes from data files, and from content scripts, which the
Scripts read the registries but can't add to them. Content comes from data files, and from content phases, which the
server runs when it loads mods, before anything else, and whose blocks go to players as data.
> [!IMPORTANT]
> The server and the client must end up with exactly the same blocks, items and recipes. They do as long as content is
> only data, since both load the same files in the same order. Content scripts only run on the server, and players get
> only data, since both load the same files in the same order. Content phases only run on the server, and players get
> what they made as data.
## Numeric Ids