https://github.com/meshiest/mlogblocks
mindustry logic from code blocks. see keybinds at bottom of the page for usage and examples folder for examples
https://github.com/meshiest/mlogblocks
blockly mindustry mindustry-logic mlog
Last synced: 2 months ago
JSON representation
mindustry logic from code blocks. see keybinds at bottom of the page for usage and examples folder for examples
- Host: GitHub
- URL: https://github.com/meshiest/mlogblocks
- Owner: Meshiest
- Created: 2021-01-29T02:26:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-05-26T03:50:15.000Z (5 months ago)
- Last Synced: 2025-05-26T05:08:58.798Z (5 months ago)
- Topics: blockly, mindustry, mindustry-logic, mlog
- Language: JavaScript
- Homepage: https://mlog.reheatedcake.io
- Size: 212 KB
- Stars: 10
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mindustry Logic Blocks
A scratch-like visual editor for Mindustry's Logic Processors available at [https://mlog.reheatedcake.io/](https://mlog.reheatedcake.io/).
No need to download anything but the code you write!
Uses [Google's Blockly](https://developers.google.com/blockly) with custom blocks and code generation.
## Notes
- Code is run from the top left.
- Placing functions above your first line will cause the function code to run before the first line.
- If you have functions and no `end` block at the end of your program, the functions will run after your code runs.
- Recursion only works if you place the recursive function call in the return statement of the function. (See below)## Features
**Variables and Inline Operators**
[
](https://i.imgur.com/kIPjpfT.png)
**If, Else If, Else, and Ternary Operators**
[
](https://i.imgur.com/qdND9e3.png)
**Multiple Flavors of Loops**
[
](https://i.imgur.com/D4731GY.png)
**Print Templating**
[
](https://i.imgur.com/k9j0Nwf.png)
**Functions and Nested Calls**
[
](https://i.imgur.com/3r2zolR.png)
**Tail Recursion** (recursive function call is in the return)
[
](https://i.imgur.com/OQ4FwWT.png)
## Screenshots
[
](https://i.imgur.com/3iQa9ES.png)
[](https://i.imgur.com/8PPVooc.png)