Logic Gate

From Scrap Mechanic Wiki
Jump to: navigation, search
Logic Gate

Logic Gate is part of the Program Node family in Scrap Mechanic.

Overview[edit | edit source]

Logic Gate Blocks.png

Logic Gates are used to process binary signals (1 - ON or 0 - OFF). Logic Gates can receive input from Buttons, Switches, Sensors, Timers, and other Logic Gates. A Logic Gate processes one or more inputs to produce an output. The face of the Logic Gate indicates the state of its output: when the output of a Logic Gate is ON, the face of the block is illuminated.

Usage[edit | edit source]

Logic Gates in Scrap Mechanic act like real-world logic gates, allowing for simple and complex electrical engineering.

Logic Gate UI.png

Logic Gates can be used to make creations ranging from simple two-button doors (as shown in the Handbook) to functioning computers. The Logic Gate block offers a selection of six gates, and the selected gate is displayed on the face of the block. The included gates are AND, OR, and XOR and their inverses: NAND, NOR, and XNOR.

The connection path is critical on these blocks because they receive inputs and produce outputs. Inputs must be connected into a Logic Gate; outputs must be connected from the Logic Gate. Using two Logic Gate blocks as an example, connecting block two to block one means that the signal will be sent from block two to block one.

Advanced Use[edit | edit source]

  • Logic Gates can be looped together to create latches or flip-flops. This means that Logic Gates can form memory circuits, storing a state (1 or 0).
  • A Logic Gate has an output delay of 1 tick (0.025 sec).

Crafting[edit | edit source]

MetalBlock1.png CircuitBoard.png Glue.png
1 1 1

History[edit | edit source]

Beta[edit | edit source]

  • 0.4.0
    • Updated texture.
  • 0.1.31
    • Added Logic Gate
    • Added Logic Gate page to Handbook