Skip to content

SiliconCraft

Versioned documentation website Β· Website build and release instructions

Documentation chapters: Getting Started Β· Assembly Β· N1 (deprecated) Β· N2

Minecraft Version Mod Loader Java

SiliconCraft is a modular personal computing, microcontroller, and custom silicon architecture mod for Minecraft (NeoForge 1.21.1).

Design your own silicon chips from raw wafers, assemble modular personal computers, write programs in the high-level N language or native assembly, render hardware-accelerated 960Γ—540 retro graphics, synthesize 8-bit PCM audio, connect physical gamepads, and automate your world with custom virtual hardwareβ€”with the virtual CPU running on background workers and world interactions handled by the server tick.


⚑ Key Features

πŸ–₯️ Modular Personal Computers

  • Custom Silicon Core: Assemble a PC by inserting a fabricated SoC (System-on-Chip) into a Computer Case.
  • Expansion Bays:
  • 8 RAM Slots: Expand memory by up to 16,384 KB (16 MB) using forged RAM modules.
  • 2 Storage Slots: Support both non-volatile Flash Storage and high-speed NVMe SSDs (up to 2,048 MB per drive).
  • Dual Display Modes:
  • Text Console Mode: Crisp 40Γ—13 retro terminal output with syntax coloring for logs, BIOS messages, and shells.
  • Framebuffer Mode: 960Γ—540 resolution with 32-bit ARGB color for games, raycasters, and animations.
  • Full State Persistence:
  • CPU registers, flags, call/data stacks, interrupt tables (IVT), and RAM contents are compressed and saved to disk.
  • Your programs keep running across world saves, reloads, and dimensional travel without losing RAM contents or resetting.
  • Easy Dismantling:
  • Sneak + Right-Click with an empty hand to cleanly dismantle a Personal Computer back into a Computer Case, safely dropping the installed SoC and addon modules.

a### πŸ”¬ Chip Forging & Architecture Design - Custom Architectures: Select instructions in the Architecture Writer, then use the resulting Architecture Writeup with silicon powder and redstone in the Chip Forge. - Bespoke Instruction Sets: - Choose which instructions your CPU supports, including arithmetic, logic, stack operations, subroutines, storage, graphics, audio, interrupts, peripherals, and networking. - Integrated BIOS / ROM: Write a program to a ROM chip with the Programmer, then combine it with your forged chip in the SoC Manufacturer.


πŸ’Ύ Memory Forge & Programmer

  • Memory Forge: Construct high-capacity RAM sticks (2,048 KB each) and solid-state drives (Flash drives and high-throughput NVMe SSDs).
  • Programmer:
  • Browse, inspect, and burn software onto removable storage drives.
  • Tooltips clearly show the program's name, description, and required CPU instructions.
  • Hold SHIFT to view the full, detailed opcode breakdown.

πŸ”Š 8-Bit PCM Audio & World Speakers

  • 8000 Hz, 8-Bit Audio: Real-time sound synthesis and music playback (APLAY, ATONE, APUSH).
  • Private vs. World Broadcast:
  • Screen Audio: Plays privately to players currently viewing the computer GUI.
  • Speaker Block: Place a Speaker block adjacent to a Personal Computer to broadcast audio across a 32-block radius in the world.
  • Instant Cutoff: Audio stops immediately when machines are powered off or dismantled.

πŸ•ΉοΈ Gamepad & Controller Support

  • 12-Button Standard Gamepad (INPAD):
  • Read input for up to 4 virtual controllers in software (PAD_UP, PAD_DOWN, PAD_LEFT, PAD_RIGHT, A, B, X, Y, L, R, START, SELECT).
  • Keyboard Emulation (Built-in):
  • Arrow Keys / WASD, Space / Z (Jump / B), X (Spin / A), C / J (Run / Y), V / K (Action / X), Q / E (Shoulders), Enter (Start), Shift (Select).
  • External Controller Integration:
  • Seamlessly connect your physical gamepad (Xbox, PlayStation, Nintendo Switch, Steam Deck) when Controlify is installed.

⚑ Threading & Performance Architecture

  • Off-Thread Execution: CPU execution is offloaded from Minecraft's main tick loop to clustered background worker threads.
  • Zero World Lag: Computers execute up to 2.5 MHz clock speeds while consuming less than 5% of a CPU core.
  • Clean Unloading: Zero hang times on game save, chunk unload, or forced server shutdown.

πŸ”Œ Optional Dependencies & Integrations

SiliconCraft works completely out-of-the-box as a standalone mod, but seamlessly unlocks enhanced features when the following optional mods are installed:

Mod Platform Type What It Unlocks
Controlify CurseForge / Modrinth Client External Controller Support: Enables physical gamepad input. Connect Xbox, PlayStation, Switch Pro, Steam Deck, or generic USB/Bluetooth controllers to play computer games directly on the screen. (Disabled if Controlify is not present).
Jade CurseForge / Modrinth Client & Server In-World HUD Tooltips: Look at any Personal Computer, Computer Case, Speaker, or Machine to see CPU state ([RUNNING], [OFF], [ERROR]), SoC opcode count, installed RAM, storage capacity, cycle count, and active error messages.
JEI (Just Enough Items) CurseForge / Modrinth Client & Server Recipe categories for Chip Forge, Memory Forge, SoC Manufacturer, and Computer Assembly.
Create Modrinth Client & Server Digital Redstone Link for named wireless redstone channels.
Create: Aeronautics + Sable Modrinth Client & Server Airship Sensor for position, orientation, pressure, and velocity readings.
Sable Modrinth Client & Server Coordinate handling for computers, peripherals, and positional speaker audio on moving structures.
Mekanism Modrinth / CurseForge Client & Server Gas Detector chemical handling and Environment Detector radiation readings.
Curios Modrinth / CurseForge Client & Server Inventory Manager access to accessory slots and item transfers.
Nature's Compass / Explorer's Compass Modrinth / CurseForge Client & Server Digital compass peripherals for biome and structure searches, respectively.

Sable Companion is included inside the mod JAR; it does not need a separate installation. Without Mekanism, the Gas Detector remains craftable but cannot handle chemicals, and radiation readings return empty text. Environment Detector world coordinates work with or without Sable. See the peripheral reference for details.


πŸ› οΈ Quick Start Guide

1. Synthesize a System-on-Chip (SoC)

  1. Choose your instructions in the Architecture Writer and create an Architecture Writeup.
  2. Forge a chip using the writeup, Silicon Powder, and Redstone Dust in the Chip Forge.
  3. Compile a program and write it to a ROM chip using the Programmer.
  4. Combine the chip and programmed ROM with the required materials in the SoC Manufacturer. See the getting started guide for the full workflow.

2. Assemble Your Computer

  1. Place a Computer Case on the ground.
  2. Right-click the case with your synthesized SoC in hand. The case will transform into a Personal Computer!
  3. Right-click the Personal Computer to open the chassis screen.
  4. Insert RAM Modules into the green RAM bays (up to 8 sticks) and Storage Drives into the blue NVMe/Flash bays.

3. Power On & Run Programs

  1. Click the ⏻ ON button to boot your computer.
  2. The computer runs the program stored in its SoC's ROM. Hardware checks and boot behavior depend on the program you wrote.
  3. Play games using your keyboard or plug in a controller with Controlify installed!

πŸ“‹ Technical Specifications

Component Specification
Architecture 16/32-Bit Register & Stack Architecture
Clock Speed ~2.5 MHz (cooperative time-sliced execution)
RAM Module Capacity 2,048 KB (2 MB) per module, up to 16,384 KB across eight expansion slots
Storage Capacity Up to 2,048 MB (2 GiB) Flash / NVMe per slot
Display (Text) 40 Columns Γ— 13 Rows CRT Phosphor Console
Display (Graphics) 960 Γ— 540 Pixels, 32-Bit ARGB Color
Audio Format 8,000 Hz, 8-Bit Unsigned PCM Mono
Audio Range Screen GUI (local) or 32-block radius (Speaker Block)
Controller Support 12-button standard gamepad (Keyboard or Controlify)
Interrupts 15 Vector Table (Div0, Illegal Op, Bounds, Stack, Timer, Keyboard, Mouse, Reset)

πŸ“œ License

SiliconCraft is licensed under the MIT License. Contributions, issues, and feature requests are welcome!

Sable compatibility

SiliconCraft computers and machines can be assembled into Sable sub-levels with their inventories intact. Adjacent peripherals stay on the same structure, and positional speaker audio follows the structure. Sable is optional.

N2 networking

N2 supports HTTP request and routing helpers, HTTP/3, WebSocket and secure WebSocket, and raw TCP and UDP sockets. The Minecraft server runs connections and controls whether guest programs can open listening ports. Network guide

Peripherals

Connect built-in peripherals to computers directly or through Serial Cables and Serial Expansions. Programs use the same peripheral instructions from Assembly and N2 DeviceKit. Assembly peripherals Β· N2 DeviceKit

The Environment Detector can report its center as JSON world coordinates using PERIPHERAL_ENV_POSITION (0x42D). It works without Sable and follows the structure's world position when mounted on a Sable sublevel. Method reference

Create peripherals

The Airship Sensor uses Create: Aeronautics and Sable for airship telemetry. The Digital Redstone Link uses Create to control named wireless redstone channels. Assembly setup and examples Β· N2 examples