mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 15:31:49 +00:00
Updated Скриптинг (markdown)
parent
3a1bc3104a
commit
102beac64c
1 changed files with 7 additions and 0 deletions
|
|
@ -299,6 +299,13 @@ function on_blocks_tick(tps)
|
||||||
|
|
||||||
## События предметов
|
## События предметов
|
||||||
|
|
||||||
|
(v0.20+)
|
||||||
|
```lua
|
||||||
|
function on_use(playerid)
|
||||||
|
```
|
||||||
|
|
||||||
|
Вызывается при нажатии ПКМ. Предотвращает установку блока, прописанного в `placing-block` если возвращает `true`
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
function on_use_on_block(x, y, z, playerid)
|
function on_use_on_block(x, y, z, playerid)
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue