Change how ticking works a little

This commit is contained in:
2026-10-10 20:11:03 -03:00
parent f4cf1d8fa8
commit be05f70fb5
6 changed files with 96 additions and 15 deletions
+2 -1
View File
@@ -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