Scrap Mechanic

Scrap Mechanic

Not enough ratings
Latches and Flip-Flops
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
4.877 MB
3 Jun, 2018 @ 3:22pm
4 Jul, 2020 @ 1:09pm
9 Change Notes ( view )

Subscribe to download
Latches and Flip-Flops

Description
Lua-Scripted Binary Logic Circuits

Latches: D (Data) and SR (Set-Reset)
Flip-Flops: D (Data), JK (Set-Reset), and T (Toggle)

All input colors are in the third row from the top in the paint tool.
Colors are classified based on their largest RGB component. (e.g. any 'green' from the paint tool will work)

Credit: I looked at the scripts from the Electromagnet mod (https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1394654240) to figure out how to use parts of the SM library.
19 Comments
Lizard Wizard  [author] 7 Dec, 2020 @ 4:45pm 
There's nothing stopping it from working in survival, but you won't be able to obtain the parts without using commands.
The Beard 7 Dec, 2020 @ 12:22pm 
does this work for survival?
Gibraltar228 30 Jul, 2020 @ 9:59pm 
very good mod, thank you!!!
Felix 5 Jul, 2020 @ 11:34am 
I can't remember exactly what it was but a few other interactive game parts didn't work.
Lizard Wizard  [author] 5 Jul, 2020 @ 11:24am 
I'm not sure whether you're referring to other parts from the game or other parts from this mod, but, as far as I know, it should now be that the parts from this mod can power/trigger anything you would expect them to.
Felix 4 Jul, 2020 @ 1:29pm 
In my testing before I found that it also affects some other parts as well, do you know if your fix would apply to those too?
Lizard Wizard  [author] 4 Jul, 2020 @ 1:12pm 
No need; I found the problem and fixed it. All of the parts should now be able to activate controllers. Thanks for bringing this to my attention!
Felix 27 Jun, 2020 @ 10:45am 
If you add me, you can join a test world I made demonstrating what works and what doesn't.
Felix 27 Jun, 2020 @ 10:45am 
It seems pistons do indeed work fine, but controllers don't.
Lizard Wizard  [author] 27 Jun, 2020 @ 10:36am 
I can't seem to re-create the issue you're describing (connecting the T Flip-Flop to a piston works fine for me). Is there anything else in the situation you're having trouble with that could be important? I have the maximum number of output connections set to 10, which might be relevant.