Single module modding
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user