I'm quite new to factorio modding and just writing my first mod.
At the moment I have a working entity with corresponding item which loads fine.
Now I'm at the control stage, and struggeling....
I can't find any tutorial or documentation on how to add the dialog to set the circuit network activation condition and doing calls to other functions on activation or deactivation condition.
Could someone explain it to me or give me a hint where to find more info?
About my mod: I want to implement a pipe valve which can be controlled by the circuit network for connecting / disconnecting parts of the fluid network.
As now my functions look like this:
Code: Select all
function closeValve(entity)
fb = entity.fluidbox[1]
fb.base_level = 500
entity.fluidbox[1] = fb
end
function openValve(entity)
fb = entity.fluidbox[1]
fb.base_level = 0
entity.fluidbox[1] = fb
end