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:

407 lines of code

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

  • Compiling embedded code
  • Number of reported ambiguities: 96
  • 1399 instructions before optimizations.
  • 59 instructions eliminated by Temp Variables Elimination.
  • 252 instructions eliminated by Dead Code Elimination (6 iterations).
  • 6 instructions eliminated by Jump Normalization (2 passes, 5 iterations).
  • 75 instructions eliminated by Jump Optimization (2 passes, 5 iterations).
  • 108 instructions eliminated by Single Step Elimination (3 passes, 8 iterations).
  • 2 instructions eliminated by If Expression Optimization (4 iterations).
  • 69 instructions eliminated by Data Flow Optimization (2 passes, 12 iterations).
  • 2 instructions added by Loop Optimization (4 iterations).
  • 3 loops improved by Loop Optimization.
  • 157 instructions added by Loop Unrolling (7 iterations).
  • 1 loops unrolled by Loop Unrolling.
  • 17 instructions eliminated by Jump Straightening (5 iterations).
  • 24 instructions updated by JumpThreading.
  • 16 instructions eliminated by Unreachable Code Elimination.
  • 26 instructions eliminated by Print Merging.
  • 928 instructions after optimizations.
  • Performance: parsed in 1,975 ms, compiled in 55 ms, optimized in 1,633 ms.
  • Created schematic 'Instant Overdrive Dome' with dimensions ( 3, 4).