update doc/*/scripting/events.md
This commit is contained in:
parent
61b1aa8e3d
commit
3cd3fe94de
@ -38,7 +38,13 @@ Called on random block update (grass growth)
|
|||||||
function on_blocks_tick(tps: int)
|
function on_blocks_tick(tps: int)
|
||||||
```
|
```
|
||||||
|
|
||||||
Called tps (20) times per second.
|
Called tps (20) times per second. Use 1/tps instead of `time.delta()`.
|
||||||
|
|
||||||
|
```lua
|
||||||
|
function on_player_tick(playerid: int, tps: int)
|
||||||
|
```
|
||||||
|
|
||||||
|
Called tps (20) times per second. Use 1/tps instead of `time.delta()`.
|
||||||
|
|
||||||
## Item events
|
## Item events
|
||||||
|
|
||||||
|
|||||||
@ -38,7 +38,13 @@ function on_random_update(x, y, z)
|
|||||||
function on_blocks_tick(tps: int)
|
function on_blocks_tick(tps: int)
|
||||||
```
|
```
|
||||||
|
|
||||||
Вызывается tps (20) раз в секунду
|
Вызывается tps (20) раз в секунду. Используйте 1/tps вместо `time.delta()`.
|
||||||
|
|
||||||
|
```lua
|
||||||
|
function on_player_tick(playerid: int, tps: int)
|
||||||
|
```
|
||||||
|
|
||||||
|
Вызывается tps (20) раз в секунду. Используйте 1/tps вместо `time.delta()`.
|
||||||
|
|
||||||
## События предметов
|
## События предметов
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user