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
+1 -1
View File
@@ -16,7 +16,7 @@ ctx.system.current_tick; // ticks since the server started
```
`run_timeout(fn, 0)` runs on the next tick, which is how a [before event](../concepts/events.md) gets something done
after it. Timers aren't saved: they're gone after a restart, so set them up again in `setup`.
after it. Timers aren't saved: they're gone after a restart, so set them up again in the server phase.
For work every tick, subscribe to the `tick` event. For work on a block, use a
[component](../blocks/components.md#ticking)'s `on_tick` or `on_second`.