add on_replaced block event and on_block_replaced world event

This commit is contained in:
MihailRis
2024-11-22 12:31:45 +03:00
parent b40c8c4b4c
commit f2e7a54180
7 changed files with 54 additions and 0 deletions
+6
View File
@@ -16,6 +16,12 @@ function on_broken(x, y, z, playerid)
Called on block broken by player
```lua
function on_replaced(x, y, z, playerid)
```
Called on block replaced with other by player
```lua
function on_interact(x, y, z, playerid) -> bool
```
+6
View File
@@ -16,6 +16,12 @@ function on_broken(x, y, z, playerid)
Вызывается после разрушения блока игроком
```lua
function on_replaced(x, y, z, playerid)
```
Вызывается после замены блока игроком
```lua
function on_interact(x, y, z, playerid) -> bool
```