jmc
jmc copied to clipboard
A compiler for JMC (JavaScript-like Minecraft Function), a mcfunction extension language for making Minecraft Datapack
## Describe the bug  the above code results in the following error  ## To Reproduce try to make an `else if` statement with macros ## Expected behavior for...
``` │ main.hjmc │ main.jmc │ └───folder_name └───a_path file_name.mcfunction ``` ```c #import folder_name ``` should create `namespace:a_path/file_name` function
```js $a = ($b + $c) - 5 ```
``` "a b c \ d e f" ``` V ``` "a b c d e f" ```
This can be done by either importing it at compile time or transpiling it to JMC with command line tool
## Describe the bug unable to use macro in a line with variable operation of some sort. i get following error: ```JMCSyntaxException In src/code/arthealth/entity.jmc:67:5 Unexpected double variable sign at line...
## Description Breaking long equations over multiple lines would be nice.
Copy the `with ...` to every `function ...`generated by built-in func
```js function helloWorld(string) { $say "$(string)"; } helloWorld("hi"); ```