
Luafy
Adding the Lua Scripting language to datapacks
Обновлён 14 мая 2024 г. · опубликован 4 мая 2024 г.
Luafy
Adding the Lua Scripting Language to Minecraft datapacks, entirely server sided.
What?
Lua is a easy, simple to use and easy to learn scripting language used by many games to add custom content to games. Luafy is a mod that adds that to Minecraft datapacks, entirely server sided.
For more information on the mod and how to use, please read the Documentation.
Why? (Yapping)
I've always loved the amount of extensibility datapacks give to Minecraft through the use of Functions, but I never really liked mcfunctions that much. Where in recent updates to the game they have become more and more powerful, I've always hoped for (since my own days of making datapacks before I learned to mod Minecraft) some form of complete scripting. Recently, within personal and unrelated projects I have been fiddling about with Lua, a programming language that is powerful, easy to learn and easy to integrate. Lua is commonly used within games such as Roblox or Garry's Mod to add player-generated content (including in the case of why I have been using it; I have spent the last few months working with Lua in C# using a library called Moonsharp. Like c'mon.. I just wanna make a game, but I gotta spend months hacking in file management). I figured that it would be a truly worthwhile candidate to put in Minecraft. In fact, I'm not the first to this idea: the popular mod Figura has used Lua to add support for scripting their avatar system, and Luafy actually makes use of the same libary to add Lua (Thank you FiguraMC for maintaining LuaJ!). Instead of waiting for Mojang to add a Scripting language to Minecraft other than MCFUNCTION, I did what Thanos suggested, and did it myself.
Disclaimer
Lua is a powerful language, and in its current state there is NO sandboxing in the Luafy Lua Engine. Please excercise common internet safety, and do not run any datapacks containing Lua code that you do not trust. I am not responsible for any content this mod allows to run.
Центр версий
3 версийЧенджлог
0.3.0Релиз1.20.4, 1.20.5, 1.20.6 · 14 мая 2024 г.
Luafy 0.3.0
Woo, first major update! I've chosen to start releasing this a "release" instead of a beta ; I feel the mod is stable, through all my time testing this I've yet to have a crash.
Changelog
Please see the updated documentation
Additions
- Added ContextApi for providing and obtaining context
- Added "LuaObjects" (the wiki explains this)
- Added optional 'context' parameter to
/lua - Added callback scripts
- Added about a million* new functions and stuff
- Added the ability to convert NBT Lists to Lua and vice versa
- Added a bunch of new conversions to fix some bugs
*not really, but there's alot
Changes
- Refactored, well, like everything
- Removed Her- erm, I mean Luabrine
- Fixed the version compatibilities within Fabric (and on Modrinth). Whoops!
Bug Fixes
- Fixed a couple bad conversions between NBT/Lua
Upcoming features
- Sandboxing! This is a huge priority. It will more than likely be in the next update.
0.1.0Бета1.20.4, 1.20.5, 1.20.6 · 6 мая 2024 г.
Split Luafy functions into APIs
- Full documentation coming soon, stay tuned
Added direct serialization/deserialization to data storage
Added CommandApi
Added StorageApi
Added ServerApi
0.0.2Бета1.20.4, 1.20.5, 1.20.6 · 4 мая 2024 г.
Initial Release!
- Lua function
command()now returns the value returned by the command it executes
Комментарии
Загружаем…