update doc/*/scripting/events.md

This commit is contained in:
MihailRis 2026-10-15 21:30:22 +03:00
parent 6ab161a518
commit 5dd605a4f5
2 changed files with 5 additions and 5 deletions

View file

@ -137,10 +137,10 @@ function on_world_save()
Called before world save.
```lua
function on_world_tick()
function on_world_tick(tps)
```
Called 20 times per second
Called *tps* times per second
```lua
function on_world_quit()

View file

@ -124,7 +124,7 @@ function on_block_break_by(x: int, y: int, z: int, playerid: int)
Вызывается при нажатии ЛКМ на блок (в т.ч неразрушимый). Предотвращает разрушение блока, если возвращает `true`
## События мира
## События мира
События мира для контент-пака прописываются в `scripts/world.lua`
@ -141,10 +141,10 @@ function on_world_save()
Вызывается перед сохранением мира
```lua
function on_world_tick()
function on_world_tick(tps)
```
Вызывается 20 раз в секунду
Вызывается *tps* раз в секунду
```lua
function on_world_quit()