跳到正文

Luafy

作者:DiamondDev

Adding the Lua Scripting language to datapacks

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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.

常见问题

Luafy 支持哪些 Minecraft 版本?

Luafy 支持 Minecraft Java 版 1.20.4–1.20.6,共 3 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。

Luafy 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

DiamondDev 的其他作品

查看全部 →