{"repo":"Ocelot5836/molang-compiler","free":true,"listed":false,"github":"https://github.com/Ocelot5836/molang-compiler","clone":"git clone https://github.com/Ocelot5836/molang-compiler.git","description":"⚡ High-speed compiler and executor for the MoLang language by Mojang","language":"Java","stars":25,"topics":["compiler","minecraft","mojang","molang","parser","molang-parser","render"],"license":"MIT","category":"game-templates","readme_excerpt":"Molang Compiler High Speed MoLang compiler and executor designed with per-frame execution in mind. Check the MoLang Documentation for more information on how to write MoLang expressions. How to add to your workspace There are two main ways to use this in your application. If you are writing a Minecraft Mod with NeoForge or Fabric, install Veil which already has the library shadowed. If you don't want to add another library, you can just manually shadow this library into your mod. Usage When using this library with a regular java program, you can use GlobalMolangCompiler to retrieve new instances of the standard compiler. The compiler is designed this way to allow the garbage collector to delete old expressions if they aren't needed anymore. For example When in an environment like NeoForge or Fabric a custom molang compiler instance must be created as a child of the mod class loader. If using Veil, this step is already handled. Extended Functionality MoLang compiler supports some new features that are not in the Minecraft Bedrock MoLang spec. - math.sign(value) returns 1 for positive values and -1 for negative values. - math.triangle wave(value, period) returns the position on a triangle wave from -1 to 1 with defined period. - ++ , += , -- , -= , /= , and = for mutable types. Eg: v.test += 14 - Expressions can execute java functions with float parameters. Eg: custom lib.javaFunction(param1, param2, param3) Limitations This implementation does not support the following: - Stru","default_branch":null,"files":null,"tree":[],"storefront":"/r/Ocelot5836","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Ocelot5836/molang-compiler/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}