mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +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)
|
|||
|
||||
Вызывается после разрушения блока игроком
|
||||
|
||||
```lua
|
||||
function on_block_interact(blockid, x, y, z, playerid) -> bool
|
||||
```
|
||||
|
||||
Вызывается при нажатии на блок ПКМ. Предотвращает установку блоков, если возвращает `true`
|
||||
|
||||
## События макета
|
||||
|
||||
События прописываются в файле `layouts/имя_макета.xml.lua`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue