Luafy
Adding the Lua scripting language to Minecraft datapacks, entirely server-sided.
What is it?
Lua is a simple and intuitive scripting language widely used in many games for creating custom content. With the Luafy mod, you can integrate Lua directly into Minecraft datapacks, with all processing happening exclusively on the server side.
For complete information about the mod's operation and usage instructions, we recommend reviewing the documentation.
Why is this needed?
Datapacks offer massive opportunities for expanding Minecraft's capabilities through function usage, but I always wanted more than standard mcfunctions. Although in recent game updates they've become significantly more powerful, I've long dreamed of a full-fledged scripting system.
While working on personal projects, I became familiar with Lua - a powerful, easily learnable, and simple-to-integrate tool. This language is widely used in games like Roblox and Garry's Mod for creating user-generated content. Interestingly, I also used it in my C# projects with the Moonsharp library.
The idea of integrating Lua into Minecraft isn't new - the popular Figura mod already uses this language for avatar scripting. Moreover, Luafy utilizes the same library for working with Lua (thanks FiguraMC for maintaining LuaJ!). Instead of waiting for Mojang to add their own scripting language besides MCFUNCTION, I decided to implement this idea myself.
Important Warning
Lua is a powerful programming language, and in the current version, the Luafy engine has no security sandboxing. Please follow internet safety rules and do not run datapacks with Lua code from untrusted sources. I am not responsible for content that may be executed using this mod.