
CircuitSim
CircuitSim is a Minecraft Forge mod for version 1.20.1 that lets you build and simulate real electronic circuits inside the game. Place component blocks in the world, connect them with wires, and run a full SPICE simulation powered by ngspice.
Screenshots



About this Mod
CircuitSim — A Minecraft Circuit Simulation Mod
This mod was built entirely with AI assistance.
CircuitSim is a Minecraft Forge mod for version 1.20.1 that lets you build and simulate real electronic circuits inside the game. Place component blocks in the world, connect them with wires, and right-click the Simulate Block to run a full SPICE simulation powered by ngspice.



Features
Passive & basic components
- Resistor, Capacitor, Inductor
- Voltage sources: DC, sinusoidal (SIN), pulse (PULSE)
- Current source
- Diode
- Wire and Ground
Controlled (dependent) sources
- VCVS — voltage-controlled voltage source (E)
- VCCS — voltage-controlled current source (G)
- CCVS — current-controlled voltage source (H)
- CCCS — current-controlled current source (F)
IC / PDK components
- IC Resistor, IC Capacitor
- IC NMOS4, IC PMOS4 (4-terminal MOSFETs)
- SKY130A PDK support with
.libpath configuration, plus a generic placeholder PDK and a free-form.includemode for custom libraries
Multi-cell blocks
- Amplifier — 5×5 op-amp subcircuit with selectable 5-pin or 7-pin (offset-null) variants and a vertical-mirror toggle for swapping inverting/non-inverting inputs and supply rails
Measurement
- Voltage Probe — labelled, measures node voltage
- Current Probe — placed in series to measure branch current
Simulation control
- Simulate Block — runs the analysis. Supported types:
.OP— DC operating point.AC— frequency sweep (start/stop/points-per-decade, log-frequency axis).TRAN— transient analysis (time step, stop time)
- Temperature — single value (e.g.
27) or sweep spec (e.g.20:40:5or20,30,40) for one run per temperature - ngspice compat modes:
hsa,psa,lt,ki,va - Parametric Block — sweeps a target component's parameter (value, W, L, mult, nf) across runs
- Commands Block — multi-line block of raw ngspice commands injected verbatim into the netlist
.controlsection - Sim Link Block — bridges two physically-disconnected sub-circuits into the same netlist without unioning their nodes (useful for routing a CCVS/CCCS controlling source from a remote region)
Output
- Graph screen — plot up to two probes simultaneously (stacked), with hover tooltips showing exact values; log10 X axis for AC sweeps
- SPICE simulation via ngspice as a subprocess — real node voltages and branch currents
.OPresults printed to the in-game chat- In-game GUI for every component to configure values with SI-suffix parsing (p, n, u, m, k, M, …)
Requirements
- Minecraft 1.20.1
- Minecraft Forge 47.3.0
- Java 17
- ngspice installed and available on your system
PATH
Installation
Method 1: Just take it
- Install Java 17 and Minecraft Forge 47.3.0 for Minecraft 1.20.1.
- Install ngspice and make sure
ngspice_con(Windows) orngspice(Linux/Mac) is accessible from your terminal. - Grab the Latest Release
- Put the mod into your Minecraft
mods/folder
Method 2: Build it yourself
- Install Java 17 and Minecraft Forge 47.3.0 for Minecraft 1.20.1.
- Install ngspice and make sure
ngspice_con(Windows) orngspice(Linux/Mac) is accessible from your terminal. - Clone this repository:
git clone https://github.com/Dank0v/circuitsim.git cd circuitsim - Build the mod using the Gradle wrapper:
# Windows gradlew.bat build # Linux / Mac ./gradlew build - Find the compiled
.jarinbuild/libs/— it will be named something likecircuitsim-x.x.x.jar. - Drop that
.jarinto your Minecraftmods/folder. - Launch the game.
How to Use
- Open the Circuit Simulator creative tab to find all blocks.
- Place component blocks and connect them with Wire blocks. Every circuit needs at least one Ground block.
- Right-click any component to open its configuration GUI and set its value.
- Place a Simulate Block anywhere connected to the circuit.
- Right-click the Simulate Block to run the simulation. Results appear in chat.
Probes
- Voltage Probe — place adjacent to a wire node. Right-click to give it a label. The simulation will report the voltage at that node.
- Current Probe — place in series (between two wires) to measure current through that branch.
Known Issues / TODO
License
GPL-3.0 — see LICENSE.
Available Versions
How to Install CircuitSim on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set forge Loader
In the panel under "Egg", select the forge loader and matching Minecraft version (1.20.6).
Install Mod
Open the mod browser in the dashboard and search for "CircuitSim". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.20.6, 1.20.5, 1.20.4 (+3 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
CircuitSim server crashes on startup – what to do?
Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.6). You can switch loaders with one click in the panel.
Is CircuitSim compatible with forge?
CircuitSim officially supports forge for Minecraft 1.20.6, 1.20.5, 1.20.4. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with CircuitSim – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if CircuitSim consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Rent Modded Server
Install CircuitSim with just one click on your server.