mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
add player.set_selected_slot, inventory.find_by_item
This commit is contained in:
parent
1149d5869c
commit
22d207ba28
6 changed files with 115 additions and 55 deletions
|
|
@ -84,6 +84,12 @@ player.get_name(playerid: int) -> str
|
|||
|
||||
Player name setter and getter
|
||||
|
||||
```lua
|
||||
player.set_selected_slot(playerid: int, slotid: int)
|
||||
```
|
||||
|
||||
Sets the selected slot index
|
||||
|
||||
```lua
|
||||
player.get_selected_block(playerid: int) -> x,y,z
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue