Building Redstone
Critical: Block Placement Order
Support blocks FIRST, then dependent blocks! Blocks drop as items if support doesn't exist.
WRONG: 1.wire 2.button 3.blocks → Wire breaks! RIGHT: 1.platform 2.walls 3.wire 4.button
Attachment Rules
Block Support Location
redstone_wire, repeater, comparator, carpet, pressure_plate Y-1 (below)
redstone_wall_torch, button, wall_sign Same Y, offset by facing
Wall attachment facing: east →block at X-1, west →X+1, north →Z+1, south →Z-1
MCP Tools
build(commands=[ "/fill X Y Z X2 Y Z2 stone", # 1. Support "/setblock X Y+1 Z redstone_wire", # 2. Redstone "/setblock X+1 Y+1 Z stone_button[facing=west,face=wall]", # 3. Attachments ])
Logic Gates
NOT: [in]→[block]→[torch]→[out] — Torch inverts signal OR: Merge two wires at same block AND: Two torches→junction block→inverting torch→output XOR: Two comparators in subtract mode, OR their outputs
See gates.md for implementations.
Memory Circuits
RS Latch: Two torches in feedback loop (Set/Reset) T Flip-Flop: [in]→[dropper↔dropper]→[comparator]→[out] — Toggles state
Timing
Repeater Clock (3 minimum):
build(commands=[ "/setblock X Y Z repeater[facing=east,delay=1]", "/setblock X+1 Y Z repeater[facing=south,delay=1]", "/setblock X+1 Y Z+1 repeater[facing=west,delay=1]", "/setblock X Y Z+1 redstone_wire", ])
Hopper Clock: [hopper→hopper] with comparator. Timing = items × 0.4s
Piston Door (2x2)
build(commands=[ "/setblock X Y Z stone_bricks", "/setblock X Y+1 Z stone_bricks", "/setblock X-1 Y Z sticky_piston[facing=east]", "/setblock X-1 Y+1 Z sticky_piston[facing=east]", "/setblock X-2 Y Z redstone_wire", "/setblock X-2 Y+1 Z redstone_wire", ])
Block States
repeater[facing=north,delay=1-4,locked=false] comparator[facing=south,mode=compare|subtract] piston[facing=up,extended=false] sticky_piston[facing=east,extended=true] observer[facing=north] # watches that direction lever[face=wall,facing=north] stone_button[face=wall,facing=east]
Signal Properties
Method Distance Speed
Dust 15 blocks 1 block/tick
Repeater chain Unlimited 1-4 ticks each
Observer chain 15+ Instant
Component Delay
Repeater 1-4 ticks
Comparator, Torch 1 tick
Piston 0-3 ticks
Observer 2 ticks
Farms
See farms.md for: sugar cane, pumpkin/melon, chicken, iron, crop, mob, item sorter, wool, honey farms.