Predict interactions with blocks

This commit is contained in:
2026-10-10 14:21:27 -03:00
parent 7fe9c15b67
commit 79ff6f9ad5
15 changed files with 355 additions and 73 deletions
+3 -2
View File
@@ -61,8 +61,9 @@ showed. These events fire for **every** player's actions, since they all go thro
### Order
Handlers run in the order they subscribed, and mods' `setup` functions run in [load order](registries.md#loading). For
`block_interact`, the before event runs first, then the block's own components' `on_interact`. If no component handled
the click and the held item has no `on_use`, the held block is placed, which fires `block_place`.
`block_interact`, the before event runs first, then the block's own components' `on_interact`, rules before handlers. If
no component handled the click and the held item has no `on_use`, the held block is placed, which fires `block_place`.
Cancelling it undoes what the clicking player's client guessed, like a trapdoor it showed opening.
## Errors