add 'normal' argument to on_use_on_block event

This commit is contained in:
MihailRis
2024-07-29 15:23:04 +03:00
parent 0f26d7c93a
commit d6696b54cb
6 changed files with 12 additions and 13 deletions
+1 -3
View File
@@ -51,9 +51,7 @@ function on_use(playerid: int)
Вызывается при нажатии ПКМ не на блок.
```lua
function on_use_on_block(x: int, y: int, z: int, playerid: int)
function on_use_on_block(x: int, y: int, z: int, playerid: int, normal: vec3)
```
Вызывается при нажатии ПКМ на блок. Предотвращает установку блока, прописанного в `placing-block` если возвращает `true`