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: 4 months ago
JSON representation
Lua to Commandblock compiler
- Host: GitHub
- URL: https://github.com/m4gnv5/mooncraft
- Owner: M4GNV5
- License: other
- Created: 2015-02-11T19:46:49.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-12-17T14:05:29.000Z (about 3 years ago)
- Last Synced: 2025-03-26T09:05:04.514Z (10 months ago)
- Topics: command-block, commandblock, commandblock-compiler, compiler, language, lua, minecraft
- Language: JavaScript
- Homepage:
- Size: 193 KB
- Stars: 46
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```
