add player.get_selected_entity(...) & update docs

This commit is contained in:
MihailRis
2024-07-14 12:00:58 +03:00
parent c17f3fec54
commit e73ccaded1
5 changed files with 72 additions and 43 deletions
+12
View File
@@ -105,6 +105,18 @@ player.get_selected_block(playerid: int) -> x,y,z
Returns position of the selected block or nil
```python
player.get_selected_entity(playerid: int) -> int
```
Returns unique indentifier of the entity selected by player
```python
player.get_entity(playerid: int) -> int
```
Returns unique identifier of the player entity
## *world* library
## Библиотека *world*