Cache ticking blocks

This commit is contained in:
2026-10-12 19:37:04 -03:00
parent c5ffc23bcd
commit 02cbeda0a0
9 changed files with 195 additions and 56 deletions
+2 -2
View File
@@ -27,8 +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` and `on_second`. `on_new_day` runs for blocks without it too, but only near
players, see [Ticking](components.md#ticking).
- Only blocks with tile data run `on_tick` and `on_second`, unless they turned it off. `on_new_day` runs for blocks
without it too, but only near players, see [Ticking](components.md#ticking).
## Blocks With Containers