SuperFactoryManager icon indicating copy to clipboard operation
SuperFactoryManager copied to clipboard

Feature Request: Redstone querying

Open TheKrumpet opened this issue 1 year ago • 2 comments

It'd be nice if we could have a way of tagging and querying redstone sources to allow us to only take actions depending on these signals.

Main use case is for things such as ME level emitters, which would allow us to take action to deal with item overflow or maintaining minimum levels.

I'm thinking something along the lines of

if redstone source ge 2 then
    -- some action
end

I can also envisage use cases where you could turn on and off item transfer with an array of levers on a cable.

TheKrumpet avatar Dec 08 '23 17:12 TheKrumpet

been thinking a bit about this, might try and make redstone a resource type which would let us reuse existing constructs

proposal:

EVERY 20 TICKS DO
  IF myBlock HAS > 0 redstone:: THEN
  -- idk
 END
END

TeamDman avatar Jan 29 '25 22:01 TeamDman

Maybe consider naming it redstone_signal? It would remove ambiguity with redstone dust and make intention more clear

target-san avatar Jul 01 '25 11:07 target-san