MLOGX is a transpiler and toolchain for Mindustry Logic (MLOG), the scripting language of the game Mindustry. Version 2.7.2 provides validation, readability improvements (e.g., infix operators, printf), compiler constants, loops, and multi-file support. It is actively maintained with frequent releases. Unlike raw MLOG, MLOGX catches invalid commands and type mismatches at compile time. It ships TypeScript types and supports both CLI and API usage.
npm install mlogxNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles an MLOGX file to MLOG, showing the basic API usage.
Update CLI usage: `mlogx compile input.mlogx -o output.mlog`. If using the API, switch to async `compile(source, options)`.
Change `import mlogx from 'mlogx'` to `import { compile } from 'mlogx'`.Always pass the full result object from `compile()` to `writeOutput()`.
Use `mlogx convert input.mlog -o output.mlogx` instead of `mlogx port`.
Use `import mlogx from 'mlogx'` or `const { compile } = await import('mlogx')`.Replace `import { transpile } from 'mlogx'` with `import { compile } from 'mlogx'`.Run `npm install -g mlogx` or use `npx mlogx`.
No dependency data recorded yet.