I couldn't find a way to take an item from the player's inventory into the cursor and leave the placeholder "hand" introduced in 0.17 in its place. I would like to have either a call to place the "hand" in the inventory or for https://lua-api.factorio.com/latest/Lua ... swap_stack to place the "hand" automatically if a stack is swapped from the inventory into the clean cursor.
See also my question in "Modding Help" regarding this viewtopic.php?f=25&t=67632
API to create the "hand" placeholder in the player inventory
Re: API to create the "hand" placeholder in the player inventory
This was added at some point: https://lua-api.factorio.com/latest/Lua ... d_location
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.