Page 1 of 1

Emulate quick bar click

Posted: Mon Jul 31, 2023 8:57 am
by deterok
Can I use Lua to grab a stuck from the inventory (emulate quick bar click)

Re: Emulate quick bar click

Posted: Mon Jul 31, 2023 6:09 pm
by Bilka
Find the stack in the player inventory (e.g. with find_item_stack) and then swap_stack the stack and the player cursor_stack.

Re: Emulate quick bar click

Posted: Thu Aug 03, 2023 6:36 am
by deterok
Thanks