
Modrinth · Minecraft mod
MLua
A mod that adds a scripting library to minecraft.
Quick answer
Which MLua release matches 1.21.1 Forge?
MLua 0.5.0 targets 1.21.1 with Forge. 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.
The source marks this as usable on both the client and server.
What else does MLua 0.5.0 need?
0.5.0 on 1.21.1 Forge. Every mod below is checked against that same setup.
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 1.21.1 Forge. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 0.5.0. It targets 1.21.1 with Forge; another release may have different loader, side or dependency requirements.
- 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.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 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?
![]()
MLua
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.
26.1.1
1 loader build26.1
2 loader builds1.21.1
3 loader builds1.20.1
2 loader buildsCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
MLua versions and loaders
0.5.0
mlua-forge-1.21.1-0.5.0.jar
25 Oct 2026
0.4.0
mlua-forge-1.21.1-0.4.0.jar
15 Sept 2026
0.3.2
mlua-forge-1.21.1-0.3.2.jar
14 Sept 2026
Looking for an older file? The official Modrinth project page is in Resources.