Single module modding
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Saving Data
|
||||
|
||||
Server scripts have no file access, so everything a mod keeps goes through the world, and is saved with it. Pick the
|
||||
The server phase has no file access, so everything a mod keeps goes through the world, and is saved with it. Pick the
|
||||
place by what the data belongs to:
|
||||
|
||||
| Data belongs to | Keep it in | Sent to players |
|
||||
@@ -37,8 +37,8 @@ belongs in that block's tile data, which goes away with the block.
|
||||
|
||||
## What Isn't Saved
|
||||
|
||||
- Variables in a script. Everything in memory is gone when the server restarts, so rebuild it in `setup` from what was
|
||||
saved.
|
||||
- Variables in a script. Everything in memory is gone when the server restarts, so rebuild it in the server phase from
|
||||
what was saved.
|
||||
- [Timers](../misc/time.md#timers).
|
||||
- Scripted [entities](../entities/index.md#behaviors), like the fishing hook.
|
||||
- `get_lore` text, which is worked out each time a stack is sent.
|
||||
|
||||
Reference in New Issue
Block a user