Up-to-date docs are here:
Finally we now have support for lua scripting in our lovely game! So now you can make mods which are not just changed 3d model… your mods now can do stuff!
Available since version 0.18.*
Before we start you need to read how to make a simple mod. If you already can make a simple mod you can continue reading this article.
To add a script to your mod you need to add a .lua file to your mods directory and reference it in your info.json file.