Add silent option to mine_tile()

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
asher_sky
Long Handed Inserter
Long Handed Inserter
Posts: 62
Joined: Sun Oct 18, 2020 7:13 pm
Contact:

Add silent option to mine_tile()

Post by asher_sky »

Hi,

I am working on allowing the tiny spidertrons from my spiderbots mod be able to deal with tiles. I would like to use LuaPlayer.character.mine_tile() to fulfill tile deconstruction requests because it seems like quite a lot to deal with mining and transferring the product(s) all from script, especially when the mine_tile() function makes it so nice and simple.

However, mine_tile() seems to always create a local flying text notification that a tile was mined. When personal robots mine tiles they don't create those flying texts, and since it can get very visually overwhelming to suddenly have the screen filled with flying texts, I don't want my spiderbots to create them either.

Is there any way that an extra parameter could be passed to mine_tile() that would make it not create the flying texts?

For now I'm just calling player.clear_local_flying_texts() every time the spiderbots mine a tile, but it would be nice if I didn't have to, in case they are manually mining tiles or transferring items from a chest at the same time.

Thanks :)
Post Reply

Return to “Modding interface requests”