How to create a new combinator?

Place to get help with not working mods / modding interface.
Xeon257
Inserter
Inserter
Posts: 40
Joined: Wed Sep 24, 2025 6:25 pm
Contact:

How to create a new combinator?

Post by Xeon257 »

I want to create a combinator that represents sine and cosine functions.

Is there a better way to build a machine that performs this kind of circuit processing, other than using the tick event?

And to implement this, do I have to keep track of every combinator entity and run a loop on each tick?
I am not able to write in English myself, so I am using ChatGPT for help. Please excuse any awkward phrasing.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3750
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: How to create a new combinator?

Post by DaveMcW »

Yes, you must use the on_tick event to get input from a circuit network.

Output must be a constant-combinator where you set your processed signals.
User avatar
Osmo
Fast Inserter
Fast Inserter
Posts: 191
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: How to create a new combinator?

Post by Osmo »

DaveMcW wrote: Sun Nov 09, 2025 9:24 pm Output must be a constant-combinator where you set your processed signals.
Must is a wrong word, constant combinators are a common option, but decider combinator can also be a good choice if your entity has input and output sides, since decider's outputs can also be freely manipulated.
Post Reply

Return to “Modding help”