update events.md

This commit is contained in:
MihailRis
2024-10-23 13:38:53 +03:00
parent 37fadec007
commit b108c4710d
2 changed files with 25 additions and 0 deletions
+13
View File
@@ -89,6 +89,19 @@ function on_world_quit()
```
Вызывается при выходе из мира (после сохранения)
```lua
function on_block_placed(blockid, x, y, z, playerid)
```
Вызывается после установки блока игроком
```lua
function on_block_broken(blockid, x, y, z, playerid)
```
Вызывается после разрушения блока игроком
## События макета
События прописываются в файле `layouts/имя_макета.xml.lua`.