Change how ticking works a little
This commit is contained in:
@@ -27,7 +27,8 @@ Outside a handler, `ctx.world.get_block_data<T>(x, y, z)` reads it.
|
||||
- Tile data is saved with the world, and goes away when the block is broken or replaced.
|
||||
- It's **never sent to clients**. To show it to a player, open a [menu](../inventories/menus.md), or change a block
|
||||
state that the block's `variants` show.
|
||||
- Only blocks with tile data run `on_tick`, `on_second` and `on_new_day`.
|
||||
- Only blocks with tile data run `on_tick` and `on_second`. `on_new_day` runs for blocks without it too, but only near
|
||||
players, see [Ticking](components.md#ticking).
|
||||
|
||||
## Blocks With Containers
|
||||
|
||||
|
||||
Reference in New Issue
Block a user