Redstonecompiler
by aaa6795
Redstonecompiler is a server-side optimization mod that compiles large redstone circuits into native JVM code, targeting lag caused by heavy machines on Fabric and Quilt.
What it does
Vanilla redstone recalculates each wire and repeater separately on every update, so a large circuit can take milliseconds per tick and slow the whole server. Redstonecompiler replaces that flow for supported circuits: it generates a Java class at runtime with ASM, compiles the circuit's logic into native code, and lets the JVM's JIT compiler optimize the result. The compiled circuit is then evaluated through a single method call.
The mod covers redstone wire, repeaters, comparators and logic operations, including comparator COMPARE and SUBTRACT modes, logic inversion and GreaterThan logic. Repeater delay stays at one tick per stage, so the timing of signal propagation is preserved. Small circuits gain little, since compilation overhead roughly cancels out the speedup, so the largest benefit appears in mega-builds such as multi-bit ALUs and auto-sorters. Fabric API is required, and Cloth Config API and Mod Menu are optional. The files target Minecraft 1.20.1 only, for Fabric and Quilt, and are released under the Creative Commons Attribution Non Commercial Share Alike 4.0 license, so the code is not open source.
Key features
Runtime circuit compilation
The whole circuit's logic is turned into a native method by ASM, replacing per-component scanning with one call.
Full logic component set
Redstone wire, repeaters and comparators are supported, with COMPARE and SUBTRACT comparator modes and logic inversion.
Arithmetic and bit operations
Circuits built from ADD, SUB, AND, OR, XOR, NOT, SHL and SHR operations can be compiled as well.
Timing preservation
Repeater delay stays at one tick per stage, so signal propagation timing matches vanilla behavior.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Optional 2
Use cases
Large server builds
Multi-bit ALUs, auto-sorters and other mega-builds with hundreds of components benefit most from compilation.
Who it’s for: Server owners running redstone-heavy worlds on Fabric or Quilt, and builders whose large machines cause tick lag.
Questions
Does Redstonecompiler need to be installed on the client?
What does Redstonecompiler require?
Does the mod change how redstone behaves?
Which versions does Redstonecompiler support?
In the catalog
Redstonecompiler is one of 3,545 Optimization mods on ModsFinder, and one of 2,575 Optimization mods for Fabric. 34,764 mods support Minecraft 1.20.1.
More from aaa6795
Similar mods
What the author says
Key technique: ASM dynamically generates a Java class at runtime, compiling the entire circuit's logic into native JVM bytecode. The JVM's JIT compiler then further optimizes this into native machine code, delivering hand-written-code-level performance. Result: No significant difference. Small circuits are fast…
Official listing
- Modrinth page
- modrinth.com/mod/redstonecompiler
- Owner
- aaa6795
- Published
- 2026-06-09
- Updated on Modrinth
- 2026-06-09
- Facts verified
- 2026-10-15
