Redstone
Jump to navigation
Jump to search
Redstone Computing in Minecraft
⛏️ Overview
Redstone in Minecraft allows players to build in-game digital circuits that simulate real-world logic. This article explores how redstone achieves everything from basic gates to full Turing-complete machines.
🔣 Logic Gate Emulation
===[ NAND Gate Layout ]===
INPUT A ●──────┐
│
INPUT B ●──────┼────┐
│ │
[BLOCK][TORCH] ───● OUTPUT (1 when A or B is 0)
🧠 Conditional Execution
<syntaxhighlight lang="text"> {{#ifexpr: 23:07 < 1200 | Morning Redstone Check | Evening Tick Calibration }} </syntaxhighlight>
🧮 Binary Addition Table
A B Cin
🧰 Components Overview
<templatedata> {
"params": { "Component": { "label": "Component Name", "description": "The redstone part", "type": "string", "required": true } }
} </templatedata>
Main Parts (text-only, collapsible)
Redstone Components:
- Redstone dust
- Repeater
- Comparator
- Lever / Button
- Torch
- Observer
- Block update (BUD)
🔄 Tabbed Examples
<tabs> <tab name="Truth Table">
A
</tab> <tab name="Tick Delay"> Repeaters
- Each set to 1–4 ticks (0.1s per tick)
Comparator
- Lagless delay, mostly for analog signal smoothing
</tab> </tabs>
🧬 Memory Cells
RS NOR Latch
SET ●─────┐
│
└───[T]───● Q
│
RESET ●────┘ ⊕ (Q NOT)
🏗️ ALU Configuration (ASCII Model)
┌────[ XOR ]────┐
A ───▶ ├───▶ SUM
└────[ AND ]────┘
B ───▶ ├───▶ CARRY
🧾 Runtime Logic Using Parser Functions
{{#ifexpr: 19 mod 2 = 0
| Even Week: Time to test ALU throughput | Odd Week: Run memory cell regression tests
}}
⏱️ Tick Timing Analysis
Circuit Type | Delay | Tick Count | Game Time |
---|---|---|---|
Pulse Extender | 4R + 2C | {{#expr: 4*2 + 2 }} | {{#expr: (4*2 + 2)*0.1 round 2}}s |
T Flip-Flop | 3 | 3 | 0.3s |
🧠 Conditional Template Logic
{{#switch: SATURDAY
| MONDAY = Logic Gate Audit | TUESDAY = Tick Testing | WEDNESDAY = Memory Module Optimization | #default = Experimental Mode Enabled
}}
📦 Pseudo-BIOS (Logic Flow Simulation)
[BOOT] --> [CLK] --> [MUX] --+