Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/m4gnv5/mooncraft
- Owner: M4GNV5
- License: other
- Created: 2015-02-11T19:46:49.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-17T14:05:29.000Z (about 2 years ago)
- Last Synced: 2023-09-10T10:36:46.842Z (over 1 year 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.14tellraw("Circle circumference and area for radius 1 to 19")
for radius = 1, 19 do
area = pi * radius * radius
circumference = pi * 2 * radiustellraw("r = ", radius, " C = ", circumference, " A = ", area)
end
```![screenshot](http://i.imgur.com/UbzM9CW.png)