mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +00:00
update doc/*/scripting/events.md
This commit is contained in:
parent
a4b2085afc
commit
219d9e5ea4
2 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ Called on block broken by player
|
||||||
function on_replaced(x, y, z, playerid)
|
function on_replaced(x, y, z, playerid)
|
||||||
```
|
```
|
||||||
|
|
||||||
Called on block replaced with other by player
|
Called before a player replaces a block
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
function on_interact(x, y, z, playerid) -> bool
|
function on_interact(x, y, z, playerid) -> bool
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ function on_broken(x, y, z, playerid)
|
||||||
function on_replaced(x, y, z, playerid)
|
function on_replaced(x, y, z, playerid)
|
||||||
```
|
```
|
||||||
|
|
||||||
Вызывается после замены блока игроком
|
Вызывается перед заменой блока игроком
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
function on_interact(x, y, z, playerid) -> bool
|
function on_interact(x, y, z, playerid) -> bool
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue