Skip to content
SandustryGuide

Logic / automation assistant

Sandustry Logic Builder

What are you trying to automate?

Build the signal chain you need. Start with the factory behavior—not a wall of gate names.

Example / alternate routes

Pulse Sensor

PULSE

Toggle

MEMORY

Door A

ACTUATOR

NOT

LOGIC

Door B

ACTUATOR

Build a Sandustry logic circuit

Choose the trigger, behavior, memory and confirmed output. The circuit validates itself as you change it.

01

Detect

What should trigger the automation?

02

Process

How should the inputs behave?

03

Remember / Delay

Does the signal need memory or delay?

04

Control

What should the signal control?

Your circuit

Recommended logic

✓ Valid

Signal Sensor

CONTINUOUS

Door

ACTUATOR

Ordered signal chain

Available devices

Ordered chain

Signal Sensor
Door

Which Sensor should you use?

The area size is the same. The trigger and signal duration are not.

CONTINUOUS

Signal Sensor

ON when all 16 cells in its 4×4 area contain material.

15 / 16 → OFF

16 / 16 → ON

CONTINUOUS

Presence Sensor

ON when at least one material is present in its 4×4 area.

0 present → OFF

1+ present → ON

SHORT PULSE

Pulse Sensor

Sends one short pulse when its 4×4 area changes into the full state.

not full → full → PULSE

full → full → no pulse

Signal Sensor, Presence Sensor and Pulse Sensor comparison
SensorAreaTurns ONSignal
Signal Sensor4×4All 16 cells contain materialContinuous
Presence Sensor4×4At least one material is presentContinuous
Pulse Sensor4×4Area becomes fullShort pulse

Need a one-time event? Use Pulse Sensor. Need a state that stays ON? Use Signal or Presence Sensor.

How Sandustry Logic Gates work

Choose a gate, switch its live inputs, and see the current output. XOR and XNOR keep parity behavior beyond two inputs.

BASIC

AND / OR / NOT

AND needs every linked input ON. OR needs at least one. NOT inverts exactly one input.

INVERTED

NAND / NOR

NAND is ON unless every linked input is ON. NOR is ON only when none are ON.

PARITY

XOR / XNOR

XOR is ON for an odd number of ON inputs. XNOR needs at least one linked input and is ON for an even number.

AND live inputs

✓ Valid

OUTPUT

OFF

ON when every linked input is ON. Current output: OFF.

AND truth table

ABOUT
000
010
100
111

XOR / XNOR multi-input behavior

XOR is ON for an odd number of ON inputs. XNOR requires at least one linked input and is ON for an even number.

ON OFF OFF → XOR ON

ON ON OFF → XOR OFF

ON ON ON → XOR ON

Toggle, Buffer & Repeater

Use memory for a lasting state, a Repeater for one update of delay, or Buffer for unchanged pass-through.

MEMORY

Toggle

Flips its stored ON/OFF state only when the input goes from OFF to ON.

OFF

ON ← toggle

ON ← no second toggle

↓ OFF ↓

ON ← toggle again

DELAY

Repeater

Stores the current combined input and copies it to output one frame or update later.

input now → output next tick

PASS THROUGH

Signal Buffer

Forwards the combined input unchanged with no added tick delay.

input → same output

Common Sandustry logic setups

These are example automation patterns—not official presets or built-in Blueprints. Load one and keep editing.

Example automation pattern

Full-area shutoff

Storage or bin full

Signal Sensor → Door

Example automation pattern

Presence control

Keep a target active while material exists

Presence Sensor → Door / signal target

Example automation pattern

One-tick delay

Delay a signal by one update

Input → Repeater → Output

Example automation pattern

Toggle memory

Remember state after a pulse

Pulse → Toggle → Output

Example automation pattern

Alternating splitter

Alternate two Door routes

Pulse Sensor → Toggle → Door A / NOT → Door B

Example automation pattern

Fluxite batch reset

Fill, dump, detect end of cycle, reset

Ready A + Ready B → AND → dump; end-of-cycle → reset → fill

Read the Fluxite production guide →

How to unlock Sandustry logic

A compact path from the Door to sensors, controls and gates. Ticket costs come from the current 0.5.6b registry.

02

Signal Devices

5 Conservatory Tickets

Unlocks

Signal Sensor · Switch · Lamp · Buffer · Signal Linker

Plan Research →

03

Signal Controls

5 Conservatory Tickets

Unlocks

Toggle · Button · Pulse Sensor · Presence Sensor

Plan Research →

04

Logic Gates

5 Conservatory Tickets

Unlocks

AND · OR · NOT · NAND · NOR · XOR · XNOR · Repeater

Plan Research →

Logic not working?

Pick the symptom. The diagnosis starts with current game behavior, not an assumption that the game is bugged.

Check

Check the sensor type

Signal Sensor needs all 16 cells filled. Presence Sensor needs at least one material. Pulse Sensor only fires when the area becomes full.

Likely issue

You may be waiting for a continuous signal from a Pulse Sensor.

Show sensor comparison →

How to link signal devices

  1. 01Select Signal Linker.
  2. 02Choose the sender.
  3. 03Choose the receiver.
  4. 04Repeat the same link to remove it.

Right-click disconnect behavior also exists where supported.

Can this structure be controlled?

✓ Confirmed

Door is a confirmed direct signal actuator.

Common Logic questions

Short answers for the wiring mistakes players hit most often.

Which Sandustry Sensor should I use?

Use Signal Sensor for a continuous full-area state, Presence Sensor for any material, and Pulse Sensor for a one-time event when the area becomes full.

Why does Pulse Sensor only work once?

It only emits when the 4×4 area changes from not full to full. The area must leave the full state before it can trigger again.

How many inputs can NOT use?

Exactly one. With zero or multiple inputs, NOT is invalid and outputs OFF in the current game logic.

How do XOR and XNOR work with more than two inputs?

They use parity. XOR is ON for an odd number of ON inputs. XNOR needs at least one linked input and is ON for an even number of ON inputs.