An open API service indexing awesome lists of open source software.

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

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)