ZenScript
ZenScript copied to clipboard
As title, write local variable table to the compile output in order to support debug. (The debug is provided by a vscode plugin I'm developing) https://github.com/warmthdawn/zs-debug-adapter
https://github.com/CraftTweaker/ZenScript/blob/f4f0ebce5f3413a4501fd6e909a31b0ee2527b46/src/main/java/stanhebben/zenscript/compiler/TypeRegistry.java#L58
This can reduce ambiguity and possibly allow for function arrays, or associatives with function values, if `ZenTypeFunctionCallable#toJavaClass` ever gets implemented.
Looking at the [CraftTweaker documentation for `IOreDictEntry`](https://docs.blamejared.com/1.12/en/Vanilla/OreDict/IOreDictEntry/#add-remove-items), the example for adding items indicates that varargs functions _exist_, as shown here: ```zenscript //oreDictEnt.add(IItemStack... item_items); oreDictEnt.add(); oreDictEnt.add(, ); ``` However, nowhere in...
Creating a custom function that accepts a function causes a java.lang.ArrayIndexOutOfBoundsException **Example Script** ``` function test(callback as function(int)bool) { if(callback(3)) { print("callback success"); } } //Note: The below is unnecessary...
ZenScript doesn't require a typename for declaring a variable, but is still very strict with types. However, the documentation sometimes does not describe the types accurately. I suggest adding a...
**Bug description** Hey guys, Maybe you can help us figure out what's wrong here. We're essentially trying to change recipes introduced by Biomes O' Plenty, but they do not occur...