Here you can compile a schematics definition written in Schemacode, a schema definition language, into a text representation to be pasted into Mindustry using the Import schematics... button. If your schematics contain processors, you can specify code for the processor using either Mindustry Logic or Mindcode. You can also decompile an existing schematics using the Decompiler and modify the resulting code.

Here are some examples to give you an idea how to use Schemacode:

164 lines of code

Bug reports, suggestions and questions are welcome at the project page.

  • Compiling embedded code
  • 356 instructions before optimizations.
  • 18 instructions eliminated by Temp Variables Elimination.
  • 1 instructions eliminated by Case Expression Optimization.
  • 49 instructions eliminated by Dead Code Elimination (7 iterations).
  • 1 instructions eliminated by Jump Normalization (5 iterations).
  • 16 instructions eliminated by Jump Optimization (5 iterations).
  • 18 instructions eliminated by Single Step Elimination (3 passes, 8 iterations).
  • 2 instructions modified by Expression Optimization (3 iterations).
  • 3 instructions eliminated by If Expression Optimization (3 iterations).
  • 11 instructions eliminated by Data Flow Optimization (4 passes, 13 iterations).
  • 1 instructions added by Loop Optimization (3 iterations).
  • 3 loops improved by Loop Optimization.
  • 3 function calls inlined by Function Inlining.
  • 85 instructions added by Case Switching (6 iterations).
  • 1 case expressions converted to switched jumps Case Switching.
  • 7 instructions eliminated by Jump Straightening (5 iterations).
  • 3 instructions updated by JumpThreading.
  • 25 instructions eliminated by Print Merging.
  • 293 instructions after optimizations.
  • Performance: parsed in 26 ms, compiled in 5 ms, optimized in 105 ms.
  • Created schematic 'Regulator' with dimensions ( 3, 1).