Mod config

This commit is contained in:
2026-10-14 14:14:52 -03:00
parent d7f1b91c0a
commit cedc7725b5
20 changed files with 371 additions and 32 deletions
+2 -1
View File
@@ -31,7 +31,8 @@ const count = ctx.storage.get<number>("smelted") ?? 0;
ctx.storage.set("smelted", count + 1);
```
Each mod has its own, so keys don't clash between mods. It's for things like settings and totals. Data about one block
Each mod has its own, so keys don't clash between mods. It's for things like totals and settings changed in game.
Settings a server picks before it starts belong in the mod's [config](../misc/config.md), and data about one block
belongs in that block's tile data, which goes away with the block.
## What Isn't Saved