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:

73 lines of code

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

  • Compiling embedded code
  • 22 instructions before optimizations.
  • 2 instructions eliminated by Temp Variables Elimination.
  • 2 instructions eliminated by Dead Code Elimination (4 iterations).
  • 2 instructions eliminated by Single Step Elimination (2 passes, 6 iterations).
  • 1 instructions updated by JumpThreading.
  • 16 instructions after optimizations.
  • Performance: parsed in 7 ms, compiled in 5 ms, optimized in 3 ms.
  • Compiling embedded code
  • 42 instructions before optimizations.
  • 1 instructions eliminated by Temp Variables Elimination.
  • 8 instructions eliminated by Dead Code Elimination (6 iterations).
  • 2 instructions eliminated by Jump Optimization (4 iterations).
  • 3 instructions eliminated by Single Step Elimination (2 passes, 6 iterations).
  • 3 instructions updated by JumpThreading.
  • 28 instructions after optimizations.
  • Performance: parsed in 11 ms, compiled in 3 ms, optimized in 4 ms.
  • Created schematic 'Payload Hub' with dimensions (10, 6).