Set mirroring on a foundry with no fluid recipe

Things that already exist in the current mod API
sparr
Smart Inserter
Smart Inserter
Posts: 1558
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Set mirroring on a foundry with no fluid recipe

Post by sparr »

I am using create_entity to make a duplicate of another entity with some properties changed. One of the properties I would like to keep is mirroring. I'm stuck when the source entity is a foundry that has been mirrored but doesn't currently have a fluid recipe; I can't seem to find any way to make the duplicate foundry be mirrored, without temporarily giving it some random fluid recipe which I'd really like to avoid doing.
Bilka
Factorio Staff
Factorio Staff
Posts: 3886
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Set mirroring on a foundry with no fluid recipe

Post by Bilka »

From what I can test, /c game.player.surface.create_entity{name="foundry", mirror=true, force="player", position={0,0}} produces a mirrored foundry.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Already exists”