截图
介绍
中文介绍正在准备中,下面暂时显示原文。
Add Lua scripting to Minecraft!
Still in development.
Some notes to start with
- Don’t forget to check the source code of scripts as it could be malicious. We’re not responsible for any bans or damages caused by scripts.
- If the game crashes due to this mod, then its probably not caused by this mod, rather caused by scripts.
- If the game crashes after updating the mod, then try deleting the config at
[Minecraft folder]/config/lua_runtime_config.json
Benefits of using the mod
- Backwards compatibility: All scripts made for older versions of Minecraft will work on newer versions of Minecraft. (breaking changes are in alpha versions)
Using the mod
Adding mods
Drag and drop Lua scripts into the lua folder in your Minecraft instance folder.
Example script
print("Hello World!")
Minecraft.AddClientLoadedListener(function()
local gui = Minecraft.CreateNewGUI("Lua Screen")
gui.Display()
end)
常见问题
Lua Runtime 支持哪些 Minecraft 版本?
Lua Runtime 支持 Minecraft Java 版 1.21–1.21.8,共 8 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Lua Runtime 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。
评论
登录后评论和评分