REDSTONEPEDIA › Circuits › Logic gates
Logic gate
NOT (A OR B) · 2 blocks
It has two inputs, A and B. The output is on only when both A and B are off.
reacts in 2 ticks (0.1 s) · made of redstone torch, redstone wire · fits in 2×1×2
Try it
Use the A and B buttons under the view to drive the inputs: the box marked OUT turns red while the output is on. Press play under the view to watch a demo on a loop; touch any other control to take over.
How this design does it: NOR gate, 2 blocks: a dust lying on input B's block points into input A's block, so A's block is powered whenever A or B is on; the wall torch hanging on A's block is the output, lit only while both are off.
Build it
Download .litematic Download the design as text
The .litematic opens in Litematica (Minecraft 26.3): every block of the design in one region. The text file is the same build written as plain text, block by block.
Blocks used: redstone torch redstone wire
Details: how it works, measurements and properties
In depth
A logic gate: the output depends only on the inputs right now. NOR: the output is on only while A and B are both off (NOT OR).
| A | B | OUT |
|---|---|---|
| off | off | on |
| off | on | off |
| on | off | off |
| on | on | off |
The output settles 2 ticks (0.1 s) after an input changes.
How to try it
Press play under the view to watch the demo on a loop (the badge reads demo with the step it is on; the same sequence is drawn as a timing diagram below). Touch any control to stop it and try the circuit yourself.
To try it: tap the A button of the bar (or the cell tagged A) to turn that input on or off (it powers the cell with a redstone block); tap the B button of the bar (or the cell tagged B) to turn that input on or off (it powers the cell with a redstone block).
Inputs are tagged in lime; the output is tagged OUT: the orange glass marker next to it glows while the output is on (the output strip by the demo badge shows its last 40 game ticks, 2 seconds). Drag to look around, pinch or scroll to zoom, step one game tick at a time with the step button.
Inputs and output over time
The inputs follow this schedule (the 3D view's demo plays the same). Lime: an input is on; orange: the output is on (taller = a stronger signal, 1 to 15). Time runs left to right in game ticks (20 ticks = 1 s).
Swipe the diagram sideways: the whole sequence lasts 281 ticks (14.05 s).
Step by step (13 lines)
00 (rest): output 1 -> 01: output 0 after 2 ticks (0.1 s) -> 00: output 1 after 2 ticks (0.1 s) -> 10: output 0 after 2 ticks (0.1 s) -> 00: output 1 after 2 ticks (0.1 s) -> 11: output 0 after 2 ticks (0.1 s) -> 01: output 0 -> 10: output 0 -> 01: output 0 -> 11: output 0 -> 10: output 0 -> 11: output 0 -> 00: output 1 after 2 ticks (0.1 s)
Measurements
| metric | value | what it means |
|---|---|---|
| function | nor | the logic function the truth table names |
| latency | 2 ticks (0.1 s) | the worst time from an input change to the output's change |
| tileable | every 2 (0 0 2) |
Notes from its designer
NOR gate, 2 blocks: a dust lying on input B's block points into input A's block, so A's block is powered whenever A or B is on; the wall torch hanging on A's block is the output, lit only while both are off.
Properties
| Study | Logic gates |
|---|---|
| Kind | Logic gate |
| Blocks placed | 2 (not counting the input levers or buttons the view adds) |
| Box | 2×1×2 (4 blocks of space) |
| Made of (the blocks that change state) | redstone torch, redstone wire |
| Inputs / outputs | A (repeater), B (repeater) / OUT |
| Design file | gate-nor |
The design file
Design file (15 lines)
# Logic gate: NOT (A OR B) · 2 blocks # https://vjeux.github.io/redstonepedia/circuits/gates/gate-nor.html name: gate-nor circuit: gate nor port input.b: 0 0 0 port input.a: 1 1 0 port output: 1 1 1 tile: 0 0 2 origin: 0 0 0 palette: d minecraft:redstone_wire[east=side,north=side,power=0,south=side,west=side] W minecraft:redstone_wall_torch[facing=south,lit=true] layer 1: d. .W