Scrap Mechanic

Scrap Mechanic

Sparth Jan 26, 2021 @ 6:29pm
Switch Logic
Of all the andy tool's in our arsenal for our own creation's, I have to ask about Switch Logic, or the ability to turn thing's ON and OFF Logically.

I'm building a security system in the game to set off a light and sound if we have bot's or 'something' that come's and trip's it's detection. I got as far as setting up motion detector's, using 2 controller's, 2 logic gate's and a bearing.... Using the Bearing to act as a switch, connecting to a controller that when if detect's a physical switch being 'TURNED ON' and receive's input from a motion detector, it will set off a light if both input's are met. And resetting the setup or alarm when the danger involving it has passed.
< >
Showing 1-5 of 5 comments
MoX42 Jan 27, 2021 @ 12:06am 
What i use is a Nor to Nor to OR back to first Nor. Connect an input to each Nor and the out put on the OR. Hope this helps.
WittkopDotz Jan 27, 2021 @ 3:01am 
ummmmm. i dont know mudh about logic gates, i can make a repeating siganl for a spud gun, but you know there are sensors? they detect whenever something comes in the setted area of detection and sends a signal, i used one for an auto watering, using blocks
Jigglepin Jan 27, 2021 @ 8:18am 
hmm.....id suggest using sensors, theyd need to be upgraded to max for full ''detecting'

if you want to do it so, the threat has to go between 2 posts i guess like a trip wire etc with a sensor either side you could have it connected to a memory bit ( what mox suggested) then have that on a timer looped into that circuit.

so once the sensors have been 'tripped' the alarm will go off for 10 seconds then reset after the 10 seconds has passed. but if the threat is still at the 'door' after passing through those initial posts the alarm would still reset and go off.

you could add sensors pointing out which are connected to OR gates into the initial memory bit circuit, so depending on which sensor is activated it will still activate which will keep that memory bit on until the 'door' sensors are not detecting anything. then your timer will be allowed to count down its 10 seconds or how ever long you want the alarm sounding.

hope this makes sense ( unless i have it physically in front of me im not great at describing haha)

about 3 -4 blocks high should detect all bots except big reds, if i remember rightly, sensors dont detect bots legs. so for big reds they would need to be higher. maybe 6 - 8.

i think bots are aware of sensors and can be abit....'hesitant' going near them though.

otherwise a simpler version, id just leave it to the sensors and have them pointing outward from your base or farm wall and they can blip the light and sound every time something is in their range. if the light/sound continues for longer periods, you know something like a bot is actively close and staying close (in a raid etc) doing something

if it just blips once, could of just been a woc or bot running past

id be happy to join your world to help figure it out. or, ive done a mock up on my world and it seems to work. id be happy to show you my set up. depends how indepth you want it i guess.

Last edited by Jigglepin; Jan 27, 2021 @ 8:58am
Sparth Jan 30, 2021 @ 8:35am 
Originally posted by Jigglepin:
hmm.....id suggest using sensors, theyd need to be upgraded to max for full ''detecting'

if you want to do it so, the threat has to go between 2 posts i guess like a trip wire etc with a sensor either side you could have it connected to a memory bit ( what mox suggested) then have that on a timer looped into that circuit.

so once the sensors have been 'tripped' the alarm will go off for 10 seconds then reset after the 10 seconds has passed. but if the threat is still at the 'door' after passing through those initial posts the alarm would still reset and go off.

you could add sensors pointing out which are connected to OR gates into the initial memory bit circuit, so depending on which sensor is activated it will still activate which will keep that memory bit on until the 'door' sensors are not detecting anything. then your timer will be allowed to count down its 10 seconds or how ever long you want the alarm sounding.

hope this makes sense ( unless i have it physically in front of me im not great at describing haha)

about 3 -4 blocks high should detect all bots except big reds, if i remember rightly, sensors dont detect bots legs. so for big reds they would need to be higher. maybe 6 - 8.

i think bots are aware of sensors and can be abit....'hesitant' going near them though.

otherwise a simpler version, id just leave it to the sensors and have them pointing outward from your base or farm wall and they can blip the light and sound every time something is in their range. if the light/sound continues for longer periods, you know something like a bot is actively close and staying close (in a raid etc) doing something

if it just blips once, could of just been a woc or bot running past

id be happy to join your world to help figure it out. or, ive done a mock up on my world and it seems to work. id be happy to show you my set up. depends how indepth you want it i guess.

I've been trying to do it in Creator's mode first, as I don't want to waste any resource's in constructing the thing just yet. And I think I have an idea running it off with a timer loop you've mentioned.

That and I did the research on 'Memory Bit's as I haven't seen that term at all since I started playing; though Watching how 2 OR's and 1 XOR set's up what I've been looking for make's just wonder why we don't have basic switch logic for the logic gates? Even to do something as basic as remembering what's been 'pushed' and what hasn't.

Either case, thank you kindly, I'm going to try the setup in creator's mode, I'll post back here what I find and give a basic run of what I've done.


Now if we could only setup a radio transmitter to control our creations remotely XD.
Jigglepin Jan 30, 2021 @ 9:04am 
you are welcome.

the only way i know of, to do it wirelessly using no mods, is shooting a button or switch with a spudgun. also, the water cannon can be used to shoot the button that operates the big vacuum at the traders. not tried it with regular switches or buttons though.

check out kans vid, it explains the memory bit in more depth and why its called a 'memory' bit. which i think is the closest youll get for basic switch logic you speak of

https://www.youtube.com/watch?v=mRg47a9Th9Q&t=130s
Last edited by Jigglepin; Jan 30, 2021 @ 9:08am
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Jan 26, 2021 @ 6:29pm
Posts: 5