Allow setting player cursor to fluid or virtual signal
Posted: Wed May 14, 2025 7:17 pm
There are two ways to set a player's cursor:
LuaPlayer.cursor_stack.set_stack and LuaPlayer.pipette_entity
Neither of these allows the possibility to set the player cursor to a fluid or a virtual signal, but the player can do so themselves if e.g. pipetting a signal in a constant combinator, or pipetting a signal in any circuit condition.
I tried but that crashed because water is not an item.
Why?
I'm sick of having to click an empty slot and search for things. If you have 10 things to search for, doing it with a mod or by being able to pipette fluids and signals from mod UIs (see other feature request) would make the user experience sooooo much better.
LuaPlayer.cursor_stack.set_stack and LuaPlayer.pipette_entity
Neither of these allows the possibility to set the player cursor to a fluid or a virtual signal, but the player can do so themselves if e.g. pipetting a signal in a constant combinator, or pipetting a signal in any circuit condition.
I tried
Code: Select all
player.cursor_stack.set_stack({ type = "fluid", name = "water" })
Why?
I'm sick of having to click an empty slot and search for things. If you have 10 things to search for, doing it with a mod or by being able to pipette fluids and signals from mod UIs (see other feature request) would make the user experience sooooo much better.