Gui Library - Gorlem/ScriptIt GitHub Wiki
Key | Type | Description |
---|---|---|
gui.screen |
string |
Name of currently open screen |
gui.slot_count |
int |
Amount of slots in current screen |
gui.button_count |
int |
Amount of buttons in current screen |
gui.active_screen |
Item |
Item at stack, see Item |
gui.click_slot(int|list<int> slot, SlotAction action = "PICKUP", int button = 0) |
null |
See Slot Action |
gui.click_button(int|list<int> button) |
null |
Click on an button |
gui.find_slot(string item_id) |
int |
Returns the first slot with the given item |
gui.get_item(int slot) |
Item | Returns the Item from the slot |
Key | Description | Possible button values |
---|---|---|
PICKUP |
Simple click |
0 for left click, 1 for right click |
THROW |
Drops the item |
0 for single item, 1 for whole stack |
QUICK_MOVE |
Moves items between inventory (like shift clicking) | |
CLONE |
When in creative, clones the stack | 2 |
SWAP |
Swap item with hotbar |
0 - 8 for the 9 hotbar slots |
QUICK_CRAFT |
Distributes items across multiple slots` |
0 for evenly distribution, 1 for single item per slot |