hud.get_block_inventory and inventory.move

This commit is contained in:
MihailRis
2024-04-03 20:50:26 +03:00
parent cbdc151373
commit 0dc3ab50a2
7 changed files with 79 additions and 1 deletions
+14
View File
@@ -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