Predict interactions with blocks
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user