Heat as energy source for Reactor / Prototype for heat input, heat output

Place to get help with not working mods / modding interface.
MrLumme
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Feb 10, 2023 11:45 am
Contact:

Heat as energy source for Reactor / Prototype for heat input, heat output

Post by MrLumme »

Hi!

I'm trying to make a mod that is essentially a pump but for heat. I think using a reactor prototype, as it is the only prototype that outputs heat, but it specifically may not have heat as the energy source.
I've also thought if I could use other prototype, but then I would have to change what it can output, which I don't know if even is possible.

Here's a description of exactly what I wanted it to do;
  • Take heat as input
  • Push heat as output
  • Signal condition to turn on / off
  • Signal read of input temperature
  • Signal read of output temperature
Can anyone help me with how to do this?

Thanks! :)
Osmo
Long Handed Inserter
Long Handed Inserter
Posts: 86
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: Heat as energy source for Reactor / Prototype for heat input, heat output

Post by Osmo »

What you could do is something that is reffered to as "compound entities"
Basically, at runtime, when your entity is placed, place another hidden entity, in your case probably an assembling machine with a heat enegy source that produces a hidden fluid, whose output is then connected with a linked pipe connection to the reactor's fluid energy source. So it goes heat -> intermediate fluid -> heat. You can then disable the reactor or assembling machine with a certain condition, or add even more entites for more functionality if needed.
MrLumme
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Feb 10, 2023 11:45 am
Contact:

Re: Heat as energy source for Reactor / Prototype for heat input, heat output

Post by MrLumme »

Got it to work :)

Thanks for the help! :D
Post Reply

Return to “Modding help”