mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
add on_replaced block event and on_block_replaced world event
This commit is contained in:
parent
b40c8c4b4c
commit
f2e7a54180
7 changed files with 54 additions and 0 deletions
|
|
@ -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
|
||||
```
|
||||
|
|
|
|||
|
|
@ -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
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue