Implement tags !

This commit is contained in:
2026-09-30 13:41:29 -03:00
parent dc70ada7c4
commit 342b45d593
51 changed files with 978 additions and 219 deletions
+5 -2
View File
@@ -20,6 +20,9 @@ Two namespaces are reserved:
`bworld:air` is the one exception: it's the engine's empty block, but keeps that id because every save has it.
[Tags](../resources/tags.md) aren't registered like this: they're lists that every mod can add to, their ids can have
folders (`c:ingots/iron`), and the `c` namespace is shared by every mod.
The same id can name different kinds of thing. A block registers an item with the same id unless it sets
`"item": false`, and its texture is often named the same too.
@@ -29,8 +32,8 @@ 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), items, entity models, entities, then recipes
and ores.
2. **Data**, one mod at a time: its block models, blocks (and their items), items, entity models and entities. 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.