Redstone
Redstone Computing in Minecraft
Redstone computing in Minecraft represents one of the most fascinating in-game engineering systems, mimicking digital logic through in-game mechanics.
🔍 Overview
Redstone enables players to build:
- **Logic gates** (AND, OR, NOT)
- **Memory circuits**
- **Binary adders**
- **ALUs (Arithmetic Logic Units)**
- Fully working **Turing-complete computers**
🧰 Components
Basic Components
- Redstone dust
- Redstone torch
- Redstone repeater
- Redstone comparator
- Piston / Sticky piston
- Observer
- Lever, button, pressure plate
🧠 Logic Gates
NAND Gate Example
<syntaxhighlight lang="lua"> -- Pseudocode for NAND gate in Minecraft InputA = lever1 InputB = lever2 Torch1 = NOT(InputA AND InputB) Output = Torch1 </syntaxhighlight>
🏗️ Build Example: 4-bit Adder
Circuit Schematic
Truth Table
A | B | Carry In | Sum | Carry Out |
---|---|---|---|---|
0 | 0 | 0 | 0 | 0 |
0 | 1 | 0 | 1 | 0 |
1 | 1 | 1 | 1 | 1 |
🔄 Tabs: Compare Real Logic vs Redstone
<tabs> <tab name="Real Logic"> Uses transistors, voltage, silicon wafers. </tab> <tab name="Redstone Logic"> Uses torches, dust, blocks, and game ticks. </tab> </tabs>
🖼️ Gallery
- Redstone ALU.png
Redstone ALU
- Redstone memory cell.png
1-bit memory cell
- Redstone clock.png
Redstone clock circuit
🧮 Redstone Calculator
- Supports **addition**, **subtraction**, and limited multiplication
- Inputs are binary levers
- Outputs via lamp displays or droppers
Example: 3 + 2
<syntaxhighlight lang="javascript"> Input A: 011 Input B: 010 Output: 101 </syntaxhighlight>
🧬 Turing-Complete Machines
- Players have built entire CPUs and RAM arrays
- Capable of running **Brainfuck** or **assembly-style** code
- Demonstrates real-world computing principles
🧩 Advanced Template Logic
{{#switch: Saturday
| Monday = Today is logic gate maintenance day! | Tuesday = Today is comparator calibration day! | #default = It's redstone playtime!
}}
⌛ Tick Timing
Using {{#time:H:i, F j|now}} game ticks:
- 1 redstone tick = 0.1 seconds
- Common pulse generators use repeaters set to 2-4 ticks
🔗 See Also
📚 References
<references> <ref name="wiki">https://minecraft.fandom.com/wiki/Redstone_circuit</ref> <ref name="cpu">https://www.youtube.com/watch?v=wgJfVRhotlQ</ref> </references>