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:

106 lines of code

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

  • Compiling embedded code
  • Main file: number of reported ambiguities: 14
  • 253 instructions before optimizations.
  • 2 instructions eliminated by Temp Variables Elimination.
  • 1 instructions eliminated by Case Expression Optimization.
  • 12 instructions eliminated by Dead Code Elimination (4 iterations).
  • 1 instructions eliminated by Jump Normalization (3 iterations).
  • 2 instructions eliminated by Jump Optimization (3 iterations).
  • 2 instructions eliminated by Single Step Elimination (4 iterations).
  • 1 instructions eliminated by If Expression Optimization (2 iterations).
  • 7 instructions eliminated by Jump Straightening (3 iterations).
  • 8 instructions updated by JumpThreading.
  • 1 instructions eliminated by Unreachable Code Elimination.
  • 52 instructions eliminated by Print Merging.
  • 172 instructions after optimizations.
  • Performance: parsed in 92 ms, compiled in 5 ms, optimized in 11 ms.
  • Created schematic 'Detector' with dimensions ( 3, 1).