Send block data to clients
This commit is contained in:
@@ -69,8 +69,9 @@ component.
|
||||
| `on_second(block, params, dt)` | Every second, near a player. | |
|
||||
| `on_new_day(block, params, day)` | Every morning at 06:00. See [Ticking](#ticking) for where. | |
|
||||
|
||||
`block` is `{ id, x, y, z, biome, season, data, set_ticking }`, where `data` is the block's [tile data](tiledata.md),
|
||||
`biome` and `season` are its column's (see [Seasons](../worldgen/biomes.md#seasons)) and `set_ticking` turns its
|
||||
`block` is `{ id, x, y, z, biome, season, data, get_client_data, set_client_data, set_ticking }`, where `data` is the
|
||||
block's [tile data](tiledata.md) and the client data functions its [part clients see](tiledata.md#client-data), `biome`
|
||||
and `season` are its column's (see [Seasons](../worldgen/biomes.md#seasons)) and `set_ticking` turns its
|
||||
[ticking](#ticking) off and on. `params` is what the block's JSON lists for this component, and `dt` is in seconds.
|
||||
|
||||
## Rules
|
||||
|
||||
Reference in New Issue
Block a user