mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
hud.get_block_inventory and inventory.move
This commit is contained in:
parent
cbdc151373
commit
0dc3ab50a2
7 changed files with 79 additions and 1 deletions
|
|
@ -157,6 +157,13 @@ inventory.clone(invid: int) -> int
|
|||
|
||||
Create inventory copy. Returns the created copy ID.
|
||||
|
||||
```python
|
||||
inventory.move(invA: int, slotA: int, invB: int, slotB: int)
|
||||
```
|
||||
|
||||
Move item from slotA of invA to slotB of invB. invA may be the same as invB.
|
||||
If slotB will be chosen automaticly if argument is not specified.
|
||||
|
||||
## *block* library
|
||||
|
||||
```python
|
||||
|
|
@ -333,6 +340,13 @@ hud.close(layoutid: str)
|
|||
|
||||
Remove an element from the screen
|
||||
|
||||
|
||||
```python
|
||||
hud.get_block_inventory() -> int
|
||||
```
|
||||
|
||||
Get open block inventory ID or 0
|
||||
|
||||
## Block events
|
||||
|
||||
```lua
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue