Scrap Mechanic Logic Gates: Step-by-Step Setup Guide - Guides

Scrap Mechanic Logic Gates: Step-by-Step Setup Guide

Master Scrap Mechanic logic gates with this step-by-step tutorial. Learn AND, OR, XOR, and NOR configurations for advanced automated creations.

2026-07-16
scrap mechanic Wiki Team
Quick Guide
  • Logic Gates: Mastering scrap mechanic logic gates is the key to automating complex vehicles and machines.
  • Key Mechanic: Logic blocks reduce tick-calculation delays and physical space compared to old sensor setups.
  • Best Strategy: Use XOR gates for dual pilot-copilot switch controls and OR gates for shared button inputs.
  • Critical Tip: A NOR gate with no inputs acts as a default-ON power source when your creation leaves the lift.
  • Top Choice: The XOR gate is the most versatile block for toggle-based mechanics like retractable landing gear.

Introduction to Scrap Mechanic Logic Gates

In the sandbox world of Scrap Mechanic, building moving vehicles is only the first step. To truly elevate your creations, mastering scrap mechanic logic gates is essential. Before the developers officially introduced the dedicated logic block and timer, builders had to rely on complex arrangements of sensors and controllers to replicate basic logical operations. While those methods worked, they introduced significant tick-calculation delays and occupied massive amounts of physical space on vehicles.

The dedicated logic block solved these issues, allowing players to build highly compact, instantaneous electrical systems. Whether you are designing a dual-control cockpit for a cargo plane, a secure combination lock for your base, or an automated piston engine, understanding how these six digital gates interact is crucial for advanced engineering.

Video Highlights:

  • Core Gate Overview: A detailed look at the six primary logic gates and their real-world equivalents.
  • Dual-Control Systems: How to combine OR and XOR gates to allow multiple players to control the same vehicle functions.
  • The Power of NOR: Using the NOR gate to establish default-ON states and memory loops.
  • Timer Integration: Utilizing the 0-to-60-second timer block to sequence automated actions.
Why Logic Blocks Matter

Logic blocks process signals instantly within the game's physics engine. Replacing mechanical sensor loops with logic blocks drastically improves game performance and prevents physical collisions on complex builds.

Understanding the Six Scrap Mechanic Logic Gates

The logic block in Scrap Mechanic features six distinct settings: three basic gates (AND, OR, XOR) and three inverted gates (NAND, NOR, XNOR). By configuring these gates and connecting them with the Connection Tool, you can program complex conditional behaviors.

Gate TypeInput ConditionOutput BehaviorPrimary Use Case
ANDAll inputs must be ONOutputs ONCombination locks, safety switches
ORAny input is ONOutputs ONDual-cockpit button controls, thruster arrays
XORAn odd number of inputs are ONOutputs ONMulti-point light switches, landing gear toggles
NANDAny input is OFFOutputs ONFailsafe systems, automated shutoffs
NORAll inputs are OFFOutputs ONDefault-ON systems, memory cells
XNOREven number of inputs are ON (or none)Outputs ONAgreement switches, status indicators

The Basic Gates: AND, OR, and XOR

The AND gate is a strict gate that requires every single connected input to be active before it will output a signal. If you have three switches connected to an AND gate, the connected component (such as a light or thruster) will only turn on when all three switches are flipped.

The OR gate is highly flexible. It outputs a signal if at least one input is active. It does not matter if one, two, or all inputs are turned on; the OR gate remains active. This is highly useful for wiring up pilot and copilot seats to the same mechanical parts.

The XOR (Exclusive OR) gate outputs a signal only when one input is active, but not both (or more generally, when an odd number of inputs are active). This unique behavior makes it the perfect tool for creating toggle switches that can be operated from multiple locations.

The Inverted Gates: NAND, NOR, and XNOR

The NAND gate is the exact opposite of the AND gate. It outputs a constant ON signal unless every single input connected to it is turned on, at which point it shuts off.

The NOR gate is one of the most powerful utility blocks in Scrap Mechanic. It outputs an ON signal only when all inputs are completely OFF. If even one input turns on, the NOR gate shuts off. This is the primary block used to create a NOT gate (inversion) or to build compact memory latches.

The XNOR gate acts as an agreement gate. It outputs an ON signal when all inputs match in state (either all are ON, or all are OFF). If there is a mismatch among the inputs, the gate shuts off.

Creating a NOT Gate

Scrap Mechanic does not have a dedicated NOT gate. You can easily create one by using a NOR gate with a single input. When the input is OFF, the NOR gate outputs ON. When the input is ON, the NOR gate outputs OFF.

Step-by-Step Logic Setup: Dual Cockpit Controls

One of the most practical applications of scrap mechanic logic gates is setting up dual cockpit controls. This system allows a pilot and a copilot to control the same functions (such as landing gear or thrusters) without overriding or breaking each other's switches.

Depending on whether you are using momentary buttons or toggle switches, you must use different gate configurations to achieve seamless control.

Input DeviceRecommended GateOperational Behavior
Momentary ButtonsOR GateEither player can hold the button to activate the system.
Toggle SwitchesXOR GateFlipping either switch toggles the state, regardless of the other switch's position.
1

Place the Controls and Logic Block

Mount two seats or two independent switches on your vehicle. Place a single logic block nearby and use the upgrade tool to set its type to XOR.

2

Connect Inputs to the XOR Gate

Equip the Connection Tool. Drag a connection from the Pilot's Switch to the XOR gate. Next, drag a connection from the Copilot's Switch to the same XOR gate.

3

Link the Gate to the Output Component

Connect the output of the XOR gate directly to your mechanical component, such as a controller operating retractable landing gear or a piston engine clutch.

4

Test the Toggle Loop

Flip the pilot's switch to deploy the gear. Go to the copilot's station and flip their switch; the gear will retract. Flipping either switch again will continue to toggle the state cleanly.

Avoid Double Wiring

Do not connect both cockpit switches directly to the controller. Doing so will cause conflicting signals, locking the controller in an active state if one switch is left on. Always route inputs through an XOR gate first.

Advanced Logic Tricks and Timer Mechanics

To build truly automated machines, you must combine logic gates with the Timer block. The Timer block allows you to delay signals anywhere from 0.1 to 60 seconds, which is essential for sequencing actions like multi-stage rocket boosters or automatic doors.

The Timer Pulse Generator

By connecting a Timer back into a logic gate, you can create a clock generator that emits continuous electrical pulses. This is the foundation of automated mechanical engines and flashing warning lights.

The Default-ON NOR Gate Trick

When building vehicles on the Lift, all logic blocks start in a deactivated state. If you want a system (like headlights or stabilization thrusters) to be active immediately when you drop the vehicle off the lift, use an empty NOR gate. Because an empty NOR gate has zero active inputs, it defaults to an ON state instantly.

Component TypeSignal Processing DelayMaximum Time LimitPrimary Function
Logic BlockInstantaneous (1 tick)N/AConditional routing and binary math
Timer BlockAdjustable60.0 SecondsSignal delay, pulsing, and memory storage
Compact Memory Cell

You can lock a signal in place by connecting two NOR gates to each other in a loop. Activating one gate will shut off the second, which permanently holds the first gate in an active state until a reset signal is sent to the loop.

Logic Progression and Mastery Goals

To help you track your engineering progress, we have classified common logic builds into three distinct tiers. Use this progression system to test your understanding of Boolean operations within the game.

Tier 1: Basic Systems

  • Dual Pilot Controls
  • Headlight Toggle Circuits
  • Simple Button Delays
  • Uses: OR, XOR, Timers

Tier 2: Automation

  • Sequential Door Openers
  • Auto-Deploying Thrusters
  • 3-Digit Combination Locks
  • Uses: AND, NOR, NAND

Tier 3: Advanced Computing

  • Binary Adders & Calculators
  • Self-Stabilizing Gyroscopes
  • Complex Memory Latches
  • Uses: Multi-gate arrays

Logic Gate Mastery Milestones:

  • Build a working pilot-copilot toggle system using XOR gates.
  • Create a 3-switch combination lock that only opens when the correct sequence is active.
  • Design a self-pulsing circuit using a Timer and a NOR gate.
  • Construct a default-ON system that automatically activates headlights at spawn.
Color-Code Your Wiring

When building complex logic arrays, use the Paint Tool to color-code your logic blocks. For example, paint all AND gates blue, OR gates green, and NOR gates red. This makes troubleshooting large circuits much faster.

Frequently Asked Questions

Q: How do I create a NOT gate using scrap mechanic logic gates?

You can easily create a NOT gate by placing a NOR gate and connecting a single input source (like a switch) to it. When the switch is OFF, the NOR gate outputs ON. When the switch is ON, the NOR gate outputs OFF.

Q: Why does my logic circuit lag or flicker?

Flickering usually occurs when you create an infinite loop without a delay. If two gates constantly turn each other on and off in a single tick, it creates a feedback loop. Introduce a Timer block with a 0.1-second delay to stabilize the circuit.

Q: What is the practical difference between XOR and OR gates?

An OR gate outputs ON if any connected input is active, including when multiple inputs are active. An XOR gate outputs ON only when an odd number of inputs are active. If two switches connected to an XOR gate are both turned ON, the XOR gate turns OFF.

Q: Can I connect sensors directly to logic gates?

Yes, sensors output standard binary signals (ON/OFF) and can be connected directly to any logic block. This is highly useful for building automated defense turrets or obstacle-detecting vehicles.

Need More Help?

If your circuit still isn't working, double-check your connections with the Connection Tool. Active signals are represented by bright yellow lines, while inactive signals are represented by dark blue lines.