mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
add on_block_interact world event
This commit is contained in:
parent
f686749ae8
commit
f6f82644d4
6 changed files with 63 additions and 37 deletions
|
|
@ -102,6 +102,12 @@ function on_block_broken(blockid, x, y, z, playerid)
|
|||
|
||||
Called on block broken by player
|
||||
|
||||
```lua
|
||||
function on_block_interact(blockid, x, y, z, playerid) -> bool
|
||||
```
|
||||
|
||||
Called on block RMB click interaction. Prevents block placing if **true** returned.
|
||||
|
||||
## Layout events
|
||||
|
||||
Script *layouts/layout_name.xml.lua* events.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue