Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/m4gnv5/mooncraft

Lua to Commandblock compiler
https://github.com/m4gnv5/mooncraft

command-block commandblock commandblock-compiler compiler language lua minecraft

Last synced: 3 months ago
JSON representation

Lua to Commandblock compiler

Awesome Lists containing this project

README

        

# MoonCraft

Lua to commandblock compiler

## [Try it in your browser](http://m4gnv5.github.io/MoonCraft-Demo/)

## Example

```lua
import("chat")

radius = 1
pi = 3.14

tellraw("Circle circumference and area for radius 1 to 19")
for radius = 1, 19 do
area = pi * radius * radius
circumference = pi * 2 * radius

tellraw("r = ", radius, " C = ", circumference, " A = ", area)
end
```

![screenshot](http://i.imgur.com/UbzM9CW.png)