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 matches 26.1?

Updated 21 days ago
beta file 0.5.0
Game version 26.1
Loader NeoForge

MLua 0.5.0 targets 26.1 with NeoForge. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.

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 NeoForge
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 on 26.1. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add MLua without breaking your instance.

Built for MLua 0.5.0 on 26.1. 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 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  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

6 of 30 releases match
Clear filters

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