Back to mods
MLua project artwork

Modrinth · Minecraft mod

MLua

A mod that adds a scripting library to minecraft.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which MLua release should I use?

Updated 21 days ago
beta file 0.5.0
Game version 26.1.1
Loader Fabric

MLua 0.5.0 targets 26.1.1 with Fabric. Installation on the client is optional. Installation on the dedicated server is optional. All 1 required mods have matching files.

Where it goes

Is MLua required on the client, server, or both?

Installation on the client is optional. Installation on the dedicated server is optional.

Client Optional
Dedicated server Optional
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source marks this as usable on both the client and server.

What else does MLua 0.5.0 need?

0.5.0. Change the file and its required mods may change too.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by MLua 0.5.0
required
Matching file found Matched file: 0.155.3+26.1.2

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add MLua without breaking your instance.

Built for MLua 0.5.0. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 0.5.0. It targets 26.1.1 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 0.5.0. It opens that exact file at the source.

About this project

What does MLua add?

Logo

MLua
GitHub Stars Discord Modrinth

MLua lets you write Minecraft mod scripts in Lua. Scripts can interact with the game through APIs for players, worlds, events, commands, UI, and registered content.

API reference

MLua would generate its documentation in the Minecraft client. Open run/mlua/docs/index.html after launching the game. It shows you the APIs available in that build.

Example

local Players = Minecraft:GetService("Players")
local World = Minecraft:GetService("World")

Players.PlayerAdded:Connect(function(player)
    player:SendMessage("Hello from MLua!")
    player:SetGameMode(GameMode.Creative)
end)

World:SetWeather(Weather.Clear)

Using MLua from another mod

Include MLua with your mod and declare it as a dependency.

Project description from Modrinth.

Pick your setup

MLua by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

10 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

MLua versions and loaders

30 of 30 releases match

Looking for an older file? The official Modrinth project page is in Resources.