mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
Add on_entity_spawned and on_entity_despawned events
This commit is contained in:
parent
936a5c8525
commit
518d5d5ae4
8 changed files with 75 additions and 1 deletions
|
|
@ -156,6 +156,18 @@ function on_block_interact(blockid, x, y, z, playerid) -> bool
|
|||
|
||||
Вызывается при нажатии на блок ПКМ. Предотвращает установку блоков, если возвращает `true`
|
||||
|
||||
```lua
|
||||
function on_entity_spawned(uid)
|
||||
```
|
||||
|
||||
Вызывается после спавна сущности
|
||||
|
||||
```lua
|
||||
function on_entity_despawned(uid)
|
||||
```
|
||||
|
||||
Вызывается после удаления сущности, на момент вызова события сущность с переданным uid уже удалена
|
||||
|
||||
```lua
|
||||
function on_player_tick(playerid: int, tps: int)
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue