update doc/*/scripting/events.md & add 'tps' argument

This commit is contained in:
MihailRis
2025-09-15 00:31:38 +03:00
parent b863d47d7f
commit a1177f2601
3 changed files with 18 additions and 2 deletions
+7
View File
@@ -46,6 +46,13 @@ function on_blocks_tick(tps: int)
Вызывается tps (20) раз в секунду. Используйте 1/tps вместо `time.delta()`.
```lua
function on_block_tick(x, y, z, tps: number)
```
Вызывается tps (20 / tick-interval) раз в секунду для конкретного блока.
Используйте 1/tps вместо `time.delta()`.
```lua
function on_player_tick(playerid: int, tps: int)
```