Allow setting player cursor to fluid or virtual signal

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Zomis
Inserter
Inserter
Posts: 39
Joined: Fri Apr 21, 2017 7:01 pm
Contact:

Allow setting player cursor to fluid or virtual signal

Post by Zomis »

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

Code: Select all

player.cursor_stack.set_stack({ type = "fluid", name = "water" })
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.
Osmo
Inserter
Inserter
Posts: 47
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: Allow setting player cursor to fluid or virtual signal

Post by Osmo »

I found myself trying to pipette fluids many times, but it is not currently possible, so this should probably be a feature request.
Regardless, this gets an instant +1 from me
Post Reply

Return to “Modding interface requests”