MLS (Minecraft Lua Scripts) 图标

MLS (Minecraft Lua Scripts)

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 0.3-ALPHA
本资源为搬运资源,原资源地址: https://modrinth.com/mod/minecraft-lua-scripts
资源信息

Minecraft 版本: 1.16.5

平台: forge

标签: game-mechanics management technology

资源介绍

MLS (Minecraft Lua Scripts)

Minecraft Lua Scripts (MLS) is a Forge mod that lets you write and run Lua scripts in Minecraft without creating a mod.

MLS is essentially a Lua adapter for the Forge API. Instead of setting up a mod project and recompiling on every change, you write .lua files, put them in the <game_dir>/luascripts/ folder, and execute them in-game with /script run. Scripts run in named threads, can be stopped individually or all at once, and have access to the game through a straightforward API — worlds, entities, players, redstone, commands, and more.

It's primarily aimed at map and minigame development. Complex event sequences, player detection zones, score tracking, coordinated multi-system logic — things that are painful or outright impossible to build with command blocks alone become quick to write and easy to iterate on.

-- detect players entering an area and trigger a command
local corner1 = {x = 100, y = 64, z = 100}
local corner2 = {x = 120, y = 70, z = 120}

while true do
    local players = world.getPlayersInSquare(corner1, corner2)
    if #players > 0 then
        world.executeCommand("say Welcome to the arena!")
    end
    local t = os.time() + 1
    while os.time() < t do end
end

No build tools. No Java. Just scripts.

For API documentation, please refer to the Website.
WARNING

This project is currently in its ALPHA stage, meaning it may contain bugs or incomplete features. If you encounter any issues, please report them via the Issues tab on GitHub.

Contributions are welcome! Feel free to submit pull requests or suggest improvements.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Clover's Pack

价格:0 墨喵币
下载量:0

查看详情
Lesbian Pride Flag Tooltip (5-Color Turned)

价格:0 墨喵币
下载量:0

查看详情
Player Mutations

价格:0 墨喵币
下载量:0

查看详情
Ruby Gem

价格:0 墨喵币
下载量:0

查看详情